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