4597N/A#
4597N/A# CDDL HEADER START
4597N/A#
4597N/A# The contents of this file are subject to the terms of the
4597N/A# Common Development and Distribution License (the "License").
4597N/A# You may not use this file except in compliance with the License.
4597N/A#
4597N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4597N/A# or http://www.opensolaris.org/os/licensing.
4597N/A# See the License for the specific language governing permissions
4597N/A# and limitations under the License.
4597N/A#
4597N/A# When distributing Covered Code, include this CDDL HEADER in each
4597N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4597N/A# If applicable, add the following below this CDDL HEADER, with the
4597N/A# fields enclosed by brackets "[]" replaced with your own identifying
4597N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4597N/A#
4597N/A# CDDL HEADER END
4597N/A#
5680N/A
4597N/A#
5680N/A# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
5680N/A#
5680N/ABUILD_BITS= NO_ARCH
4597N/Ainclude ../../make-rules/shared-macros.mk
4597N/A
4597N/ACOMPONENT_NAME= scons
5877N/ACOMPONENT_VERSION= 2.5.0
4597N/ACOMPONENT_PROJECT_URL= http://www.scons.org/
4597N/ACOMPONENT_ARCHIVE_HASH= \
5877N/A sha256:eb296b47f23c20aec7d87d35cfa386d3508e01d1caa3040ea6f5bbab2292ace9
4597N/ACOMPONENT_ARCHIVE_URL= http://sourceforge.net/projects/$(COMPONENT_NAME)/files/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)/download
4597N/A
5877N/ATPNO= 28026
4597N/A
4597N/A# Per Q1.1.4 of the SCons FAQ, SCons is written to work with any Python
4597N/A# version >= 2.4 and < 3.0. Versions 3.0 and above are not supported at
4597N/A# this time.
4597N/APYTHON_VERSIONS = 2.7
4597N/A
5680N/ABUILD_STYLE= setup.py
5680N/ATEST_TARGET= $(NO_TESTS)
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
4597N/A
4597N/A# pkgdepend doesn't like the first line of a Python script to be:
4597N/A# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python$(PYTHON_VERSION)'
4597N/ACOMPONENT_POST_INSTALL_ACTION += \
4597N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5877N/A $(PROTOUSRBINDIR)/scons-$(COMPONENT_VERSION);
4597N/ACOMPONENT_POST_INSTALL_ACTION += \
4597N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5877N/A $(PROTOUSRBINDIR)/scons-time-$(COMPONENT_VERSION);
4597N/ACOMPONENT_POST_INSTALL_ACTION += \
4597N/A $(GSED) -i -e 's?env python?python$(PYTHON_VERSION)?' \
5877N/A $(PROTOUSRBINDIR)/sconsign-$(COMPONENT_VERSION);
4597N/A
4597N/APKG_PROTO_DIRS += $(PROTO_DIR)/$(PYTHON_VENDOR_PACKAGES)
4597N/A
4597N/AREQUIRED_PACKAGES += library/python/setuptools-27
4597N/AREQUIRED_PACKAGES += runtime/python-27