1468N/A#
1468N/A# CDDL HEADER START
1468N/A#
1468N/A# The contents of this file are subject to the terms of the
1468N/A# Common Development and Distribution License (the "License").
1468N/A# You may not use this file except in compliance with the License.
1468N/A#
1468N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1468N/A# or http://www.opensolaris.org/os/licensing.
1468N/A# See the License for the specific language governing permissions
1468N/A# and limitations under the License.
1468N/A#
1468N/A# When distributing Covered Code, include this CDDL HEADER in each
1468N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1468N/A# If applicable, add the following below this CDDL HEADER, with the
1468N/A# fields enclosed by brackets "[]" replaced with your own identifying
1468N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1468N/A#
1468N/A# CDDL HEADER END
1468N/A#
1468N/A
1468N/A#
5633N/A# Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.
1468N/A#
1468N/A
1468N/Ainclude ../../../make-rules/shared-macros.mk
1468N/A
1468N/ACOMPONENT_NAME= pep8
5633N/ACOMPONENT_VERSION= 1.7.0
1468N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1468N/ACOMPONENT_PROJECT_URL= http://pypi.python.org/pypi/pep8
1468N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1468N/ACOMPONENT_ARCHIVE_HASH= \
5633N/A sha256:a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900
1468N/ACOMPONENT_ARCHIVE_URL= http://pypi.python.org/packages/source/p/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1468N/ACOMPONENT_BUGDB= python-mod/pep8
1468N/A
5633N/ATPNO= 27399
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
1468N/A
1468N/A# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
1468N/ACOMPONENT_PRE_BUILD_ACTION = \
1468N/A /usr/bin/find $(SOURCE_DIR) -name *.py \
1468N/A -exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
1468N/A
1543N/A# Put the correct pep8 version number on the .TH line in the man page in
1543N/A# the proto area.
1543N/ACOMPONENT_POST_INSTALL_ACTION += \
1543N/A ($(MKDIR) $(PROTO_DIR)/usr/share/man/man1; \
1543N/A $(GSED) -e 's/XXX/$(COMPONENT_VERSION)/' \
1543N/A $(COMPONENT_DIR)/files/pep8.1 > \
1543N/A $(PROTO_DIR)/usr/share/man/man1/pep8.1);
1543N/A
1543N/ACOMPONENT_POST_INSTALL_ACTION += \
1468N/A (cd $(PROTO_DIR)/usr/bin ; $(MV) -f pep8 pep8-$(PYTHON_VERSION))
1468N/A
3582N/A# Master test results are the same for all versions of Python, so override
3582N/A# here, rather than create multiple identical master files.
3582N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
3582N/A
3080N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)
3080N/ACOMPONENT_TEST_ARGS = pep8.py --testsuite testsuite
3080N/A
4586N/ACOMPONENT_SYSTEM_TEST_DIR = $(SOURCE_DIR)
4586N/ACOMPONENT_SYSTEM_TEST_ENV =
4586N/ACOMPONENT_SYSTEM_TEST_ARGS = pep8.py --testsuite testsuite
4586N/A
1938N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
1938N/A
1716N/Abuild: $(BUILD_NO_ARCH)
1468N/A
1716N/Ainstall: $(INSTALL_NO_ARCH)
1468N/A
3080N/Atest: $(TEST_NO_ARCH)
1468N/A
4586N/Asystem-test: $(SYSTEM_TEST_NO_ARCH)
4337N/A
3817N/AREQUIRED_PACKAGES += library/python/setuptools-27
3817N/AREQUIRED_PACKAGES += library/python/setuptools-34