Makefile revision 3080
0N/A#
2273N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
1472N/A# CDDL HEADER END
1472N/A#
1472N/A
0N/A#
0N/A# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
0N/A#
1879N/A
1879N/Ainclude ../../../make-rules/shared-macros.mk
1879N/A
1879N/ACOMPONENT_NAME= pep8
1879N/ACOMPONENT_VERSION= 1.4.6
1879N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1879N/ACOMPONENT_PROJECT_URL= http://pypi.python.org/pypi/pep8
1879N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1879N/ACOMPONENT_ARCHIVE_HASH= \
1879N/A sha256:603a46e5c358ce20ac4807a0eeafac7505d1125a4c1bd8378757ada06f61bed8
0N/ACOMPONENT_ARCHIVE_URL= http://pypi.python.org/packages/source/p/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB= python-mod/pep8
0N/A
0N/ATPNO= 16771
0N/A
0N/Ainclude $(WS_TOP)/make-rules/prep.mk
0N/Ainclude $(WS_TOP)/make-rules/setup.py.mk
0N/Ainclude $(WS_TOP)/make-rules/ips.mk
0N/A
0N/A# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
0N/ACOMPONENT_PRE_BUILD_ACTION = \
0N/A /usr/bin/find $(SOURCE_DIR) -name *.py \
0N/A -exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
0N/A
0N/A# Put the correct pep8 version number on the .TH line in the man page in
0N/A# the proto area.
0N/ACOMPONENT_POST_INSTALL_ACTION += \
113N/A ($(MKDIR) $(PROTO_DIR)/usr/share/man/man1; \
0N/A $(GSED) -e 's/XXX/$(COMPONENT_VERSION)/' \
0N/A $(COMPONENT_DIR)/files/pep8.1 > \
0N/A $(PROTO_DIR)/usr/share/man/man1/pep8.1);
0N/A
0N/ACOMPONENT_POST_INSTALL_ACTION += \
0N/A (cd $(PROTO_DIR)/usr/bin ; $(MV) -f pep8 pep8-$(PYTHON_VERSION))
113N/A
0N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)
0N/ACOMPONENT_TEST_ARGS = pep8.py --testsuite testsuite
895N/A
113N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2062N/A
0N/A# common targets
0N/Abuild: $(BUILD_NO_ARCH)
0N/A
0N/Ainstall: $(INSTALL_NO_ARCH)
0N/A
0N/Atest: $(TEST_NO_ARCH)
0N/A
0N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
0N/A
0N/Ainclude $(WS_TOP)/make-rules/depend.mk
0N/A