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