Makefile revision 4337
1331N/A#
1331N/A# CDDL HEADER START
1331N/A#
1331N/A# The contents of this file are subject to the terms of the
1331N/A# Common Development and Distribution License (the "License").
1331N/A# You may not use this file except in compliance with the License.
1331N/A#
1331N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1331N/A# or http://www.opensolaris.org/os/licensing.
1331N/A# See the License for the specific language governing permissions
1331N/A# and limitations under the License.
1331N/A#
1331N/A# When distributing Covered Code, include this CDDL HEADER in each
1331N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1331N/A# If applicable, add the following below this CDDL HEADER, with the
1331N/A# fields enclosed by brackets "[]" replaced with your own identifying
1331N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1331N/A#
1331N/A# CDDL HEADER END
1331N/A#
1331N/A
1331N/A#
3817N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1331N/A#
1331N/A
1331N/Ainclude ../../../make-rules/shared-macros.mk
1331N/A
1331N/ACOMPONENT_NAME= cssutils
1331N/ACOMPONENT_VERSION= 0.9.6
2818N/ACOMPONENT_PROJECT_URL= https://pypi.python.org/pypi/cssutils/
1331N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1331N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
1331N/ACOMPONENT_ARCHIVE_HASH= \
1331N/A sha256:18f3cffb2ff413e0796d0c9192db3a56f18fe57524cc54edc57d20239614eb87
2818N/ACOMPONENT_ARCHIVE_URL= https://pypi.python.org/packages/source/c/cssutils/$(COMPONENT_ARCHIVE)
1331N/ACOMPONENT_BUGDB= python-mod/cssutils
1331N/A
2899N/ATPNO= 7908
2899N/A
2818N/A# This module is not Python 3 ready: syntax issues.
2818N/APYTHON_VERSIONS = 2.7 2.6
2818N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
1331N/A
1699N/ACOMPONENT_TEST_DIR= $(COMPONENT_SRC)
1699N/ACOMPONENT_TEST_ARGS= ./setup.py test
1699N/A
1331N/A# Remove the trailing Control-M's from the Python source files.
1331N/ACOMPONENT_PRE_BUILD_ACTION = \
1331N/A /usr/bin/find $(SOURCE_DIR)/src \
1331N/A -name *.py -exec $(GSED) -i -e 's/
1331N/A//g' "{}" \; ;
1331N/A
1331N/A# After we have done each Python build, copy it to its own version specific
1331N/A# source hierarchy and then adjust the shebang lines as needed, before we
1331N/A# build for Python 2.6. Note that this assumes we are only doing Python 2.7
1331N/A# and Python 2.6, and we are doing them in that order.
1331N/ACOMPONENT_POST_BUILD_ACTION = \
1331N/A (cd $(SOURCE_DIR); cp -rp src src-$(PYTHON_VERSION) ; \
1331N/A cd $(SOURCE_DIR)/src ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/__init__.py ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/codec.py ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/errorhandler.py ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/parse.py ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/scripts/csscapture.py ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/scripts/csscombine.py ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/scripts/cssparse.py ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/serialize.py ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/tokenize2.py ; \
1331N/A $(GSED) -i -e 's/2[.]7/2.6/g' encutils/__init__.py )
1331N/A
1331N/A# Copy over the source hierarchy for the appropriate Python build before
1331N/A# installing it.
1331N/ACOMPONENT_PRE_INSTALL_ACTION = \
1331N/A (cd $(SOURCE_DIR); $(RM) -r src ; $(CP) -rp src-$(PYTHON_VERSION) src )
1938N/A
1938N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
1716N/A
1331N/Abuild: $(BUILD_NO_ARCH)
1716N/A
1331N/Ainstall: $(INSTALL_NO_ARCH)
1716N/A
1331N/Atest: $(TEST_NO_ARCH)
4337N/A
4337N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)