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