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