Makefile revision 4982
98N/A#
98N/A# CDDL HEADER START
98N/A#
98N/A# The contents of this file are subject to the terms of the
935N/A# Common Development and Distribution License (the "License").
98N/A# You may not use this file except in compliance with the License.
98N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A
919N/A#
919N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
919N/A#
98N/A
98N/Ainclude ../../../make-rules/shared-macros.mk
98N/A
235N/ACOMPONENT_NAME= Django
156N/ACOMPONENT_VERSION= 1.4.22
156N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
156N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
156N/ACOMPONENT_ARCHIVE_HASH= \
98N/A sha256:d0e2c9d772fcab2cf9c09e1c05e711cf5fe5eb93225762b29f0739d65e0d1784
98N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
98N/ACOMPONENT_PROJECT_URL= http://www.djangoproject.com/
98N/ACOMPONENT_BUGDB= python-mod/django
493N/A
493N/ATPNO= 24189
98N/A
911N/A# Syntax issues: not Python 3 ready.
952N/APYTHON_VERSIONS= $(PYTHON2_VERSIONS)
952N/A
911N/Ainclude $(WS_MAKE_RULES)/prep.mk
98N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
235N/Ainclude $(WS_MAKE_RULES)/ips.mk
493N/A
98N/A# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
916N/ACOMPONENT_POST_BUILD_ACTION = \
916N/A /usr/bin/find $(BUILD_DIR)/$(MACH)-$(PYTHON_VERSION)/lib/django -name *.py \
916N/A -exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
916N/A
970N/ACOMPONENT_POST_INSTALL_ACTION = \
970N/A (cd $(PROTO_DIR)/usr/bin ; $(MV) -f django-admin.py django-admin-$(PYTHON_VERSION))
970N/A
970N/A# add 1 extra transform to get rid of the facet created on
970N/A# locale/__init__.py
970N/APUBLISH_TRANSFORMS += $(COMPONENT_DIR)/django-locale-transform
970N/A
970N/A# reset the test environment to only contain PATH and PYTHONPATH
970N/ACOMPONENT_TEST_DIR= $(SOURCE_DIR)/tests
970N/ACOMPONENT_TEST_ARGS += --settings test_sqlite
970N/ACOMPONENT_TEST_ENV= PYTHONPATH=$(SOURCE_DIR)
970N/ACOMPONENT_TEST_ENV += PATH=$(PATH)
970N/A
970N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
970N/A
970N/A# common targets
970N/Abuild: $(BUILD_NO_ARCH)
970N/A
970N/Ainstall: $(INSTALL_NO_ARCH)
970N/A
970N/A#
970N/A# tests require:
970N/A#
970N/A# docutils Markdown PIL py-bcrypt python-memcached pytz PyYAML
970N/A# selenium and Textile, some of which haven't been integrated yet.
1029N/A# The tests will run, but there are errors.
1029N/A#
970N/Atest: $(TEST_NO_ARCH)
98N/A
98N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
98N/A
606N/A
98N/AREQUIRED_PACKAGES += text/gnu-gettext
98N/A