Makefile revision 1882
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# CDDL HEADER START
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# The contents of this file are subject to the terms of the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Common Development and Distribution License (the "License").
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You may not use this file except in compliance with the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# See the License for the specific language governing permissions
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and limitations under the License.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# When distributing Covered Code, include this CDDL HEADER in each
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# If applicable, add the following below this CDDL HEADER, with the
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# fields enclosed by brackets "[]" replaced with your own identifying
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# information: Portions Copyright [yyyy] [name of copyright owner]
a9478106a12424322498e53cf7cd75bd8a4d6004Yuri Pankov# CDDL HEADER END
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_PROJECT_URL= http://code.google.com/p/cssutils/
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe sha256:18f3cffb2ff413e0796d0c9192db3a56f18fe57524cc54edc57d20239614eb87
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCOMPONENT_ARCHIVE_URL= http://cssutils.googlecode.com/files/$(COMPONENT_ARCHIVE)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Remove the trailing Control-M's from the Python source files.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# After we have done each Python build, copy it to its own version specific
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# source hierarchy and then adjust the shebang lines as needed, before we
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# build for Python 2.6. Note that this assumes we are only doing Python 2.7
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# and Python 2.6, and we are doing them in that order.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe (cd $(SOURCE_DIR); cp -rp src src-$(PYTHON_VERSION) ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/__init__.py ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/codec.py ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/errorhandler.py ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/parse.py ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/scripts/csscapture.py ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/scripts/csscombine.py ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/scripts/cssparse.py ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/serialize.py ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' cssutils/tokenize2.py ; \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(GSED) -i -e 's/2[.]7/2.6/g' encutils/__init__.py )
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copy over the source hierarchy for the appropriate Python build before
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# installing it.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe (cd $(SOURCE_DIR); $(RM) -r src ; $(CP) -rp src-$(PYTHON_VERSION) src )