Makefile revision 4982
0ad489b182ebb3789322345e22cf750f88ae167and#
0ad489b182ebb3789322345e22cf750f88ae167and# CDDL HEADER START
0ad489b182ebb3789322345e22cf750f88ae167and#
9a58dc6a2b26ec128b1270cf48810e705f1a90dbsf# The contents of this file are subject to the terms of the
0ad489b182ebb3789322345e22cf750f88ae167and# Common Development and Distribution License (the "License").
0ad489b182ebb3789322345e22cf750f88ae167and# You may not use this file except in compliance with the License.
031b91a62d25106ae69d4693475c79618dd5e884fielding#
031b91a62d25106ae69d4693475c79618dd5e884fielding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
031b91a62d25106ae69d4693475c79618dd5e884fielding# or http://www.opensolaris.org/os/licensing.
031b91a62d25106ae69d4693475c79618dd5e884fielding# See the License for the specific language governing permissions
031b91a62d25106ae69d4693475c79618dd5e884fielding# and limitations under the License.
031b91a62d25106ae69d4693475c79618dd5e884fielding#
0ad489b182ebb3789322345e22cf750f88ae167and# When distributing Covered Code, include this CDDL HEADER in each
0ad489b182ebb3789322345e22cf750f88ae167and# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0ad489b182ebb3789322345e22cf750f88ae167and# If applicable, add the following below this CDDL HEADER, with the
0ad489b182ebb3789322345e22cf750f88ae167and# fields enclosed by brackets "[]" replaced with your own identifying
0ad489b182ebb3789322345e22cf750f88ae167and# information: Portions Copyright [yyyy] [name of copyright owner]
0ad489b182ebb3789322345e22cf750f88ae167and#
0ad489b182ebb3789322345e22cf750f88ae167and# CDDL HEADER END
0ad489b182ebb3789322345e22cf750f88ae167and#
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167and#
0ad489b182ebb3789322345e22cf750f88ae167and# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
0ad489b182ebb3789322345e22cf750f88ae167and#
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andinclude ../../../make-rules/shared-macros.mk
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_NAME= Django
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_VERSION= 1.4.22
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_ARCHIVE_HASH= \
0ad489b182ebb3789322345e22cf750f88ae167and sha256:d0e2c9d772fcab2cf9c09e1c05e711cf5fe5eb93225762b29f0739d65e0d1784
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_ARCHIVE_URL= $(call pypi_url)
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_PROJECT_URL= http://www.djangoproject.com/
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_BUGDB= python-mod/django
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andTPNO= 24189
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167and# Syntax issues: not Python 3 ready.
0ad489b182ebb3789322345e22cf750f88ae167andPYTHON_VERSIONS= $(PYTHON2_VERSIONS)
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andinclude $(WS_MAKE_RULES)/prep.mk
0ad489b182ebb3789322345e22cf750f88ae167andinclude $(WS_MAKE_RULES)/setup.py.mk
0ad489b182ebb3789322345e22cf750f88ae167andinclude $(WS_MAKE_RULES)/ips.mk
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167and# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_POST_BUILD_ACTION = \
0ad489b182ebb3789322345e22cf750f88ae167and /usr/bin/find $(BUILD_DIR)/$(MACH)-$(PYTHON_VERSION)/lib/django -name *.py \
0ad489b182ebb3789322345e22cf750f88ae167and -exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_POST_INSTALL_ACTION = \
0ad489b182ebb3789322345e22cf750f88ae167and (cd $(PROTO_DIR)/usr/bin ; $(MV) -f django-admin.py django-admin-$(PYTHON_VERSION))
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167and# add 1 extra transform to get rid of the facet created on
0ad489b182ebb3789322345e22cf750f88ae167and# locale/__init__.py
0ad489b182ebb3789322345e22cf750f88ae167andPUBLISH_TRANSFORMS += $(COMPONENT_DIR)/django-locale-transform
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167and# reset the test environment to only contain PATH and PYTHONPATH
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_TEST_DIR= $(SOURCE_DIR)/tests
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_TEST_ARGS += --settings test_sqlite
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_TEST_ENV= PYTHONPATH=$(SOURCE_DIR)
0ad489b182ebb3789322345e22cf750f88ae167andCOMPONENT_TEST_ENV += PATH=$(PATH)
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andASLR_MODE = $(ASLR_NOT_APPLICABLE)
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167and# common targets
0ad489b182ebb3789322345e22cf750f88ae167andbuild: $(BUILD_NO_ARCH)
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andinstall: $(INSTALL_NO_ARCH)
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167and#
0ad489b182ebb3789322345e22cf750f88ae167and# tests require:
0ad489b182ebb3789322345e22cf750f88ae167and#
0ad489b182ebb3789322345e22cf750f88ae167and# docutils Markdown PIL py-bcrypt python-memcached pytz PyYAML
0ad489b182ebb3789322345e22cf750f88ae167and# selenium and Textile, some of which haven't been integrated yet.
0ad489b182ebb3789322345e22cf750f88ae167and# The tests will run, but there are errors.
0ad489b182ebb3789322345e22cf750f88ae167and#
0ad489b182ebb3789322345e22cf750f88ae167andtest: $(TEST_NO_ARCH)
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andsystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167and
0ad489b182ebb3789322345e22cf750f88ae167andREQUIRED_PACKAGES += text/gnu-gettext
0ad489b182ebb3789322345e22cf750f88ae167and