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