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