Makefile revision 1468
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#
1468N/A# Copyright (c) 2013, 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
1468N/ACOMPONENT_VERSION= 1.3.3
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= \
1468N/A sha256:2033a40515a52068dd719857b38ecca651ce84dc9837b99fe500f314cadab634
1468N/ACOMPONENT_ARCHIVE_URL= http://pypi.python.org/packages/source/p/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
1468N/ACOMPONENT_BUGDB= python-mod/pep8
1468N/A
1468N/Ainclude $(WS_TOP)/make-rules/prep.mk
1468N/Ainclude $(WS_TOP)/make-rules/setup.py.mk
1468N/Ainclude $(WS_TOP)/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
1468N/ACOMPONENT_POST_INSTALL_ACTION = \
1468N/A (cd $(PROTO_DIR)/usr/bin ; $(MV) -f pep8 pep8-$(PYTHON_VERSION))
1468N/A
1468N/A# common targets
1468N/Abuild: $(BUILD_32)
1468N/A
1468N/Ainstall: $(INSTALL_32)
1468N/A
1468N/Atest: $(NO_TESTS)
1468N/A
1468N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1468N/A
1468N/Ainclude $(WS_TOP)/make-rules/depend.mk