Makefile revision 4337
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engelen# CDDL HEADER START
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engelen#
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engelen# The contents of this file are subject to the terms of the
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engelen# Common Development and Distribution License (the "License").
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# You may not use this file except in compliance with the License.
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# or http://www.opensolaris.org/os/licensing.
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# See the License for the specific language governing permissions
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# and limitations under the License.
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# When distributing Covered Code, include this CDDL HEADER in each
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# If applicable, add the following below this CDDL HEADER, with the
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# fields enclosed by brackets "[]" replaced with your own identifying
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# information: Portions Copyright [yyyy] [name of copyright owner]
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# CDDL HEADER END
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engelen
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engeleninclude ../../../make-rules/shared-macros.mk
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakCOMPONENT_NAME= Django
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakCOMPONENT_VERSION= 1.4.20
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. EngelenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. EngelenCOMPONENT_ARCHIVE_HASH= \
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engelen sha256:58ac719464c4c8b13d664ded6770450602528bf4c36f9fd5daabdae8d410ebb1
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. EngelenCOMPONENT_ARCHIVE_URL= $(call pypi_url)
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. EngelenCOMPONENT_PROJECT_URL= http://www.djangoproject.com/
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. EngelenCOMPONENT_BUGDB= python-mod/django
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. EngelenTPNO= 22010
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen# Syntax issues: not Python 3 ready.
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. EngelenPYTHON_VERSIONS= 2.7 2.6
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engeleninclude $(WS_MAKE_RULES)/prep.mk
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engeleninclude $(WS_MAKE_RULES)/setup.py.mk
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engeleninclude $(WS_MAKE_RULES)/ips.mk
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. EngelenCOMPONENT_POST_BUILD_ACTION = \
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen /usr/bin/find $(BUILD_DIR)/$(MACH)-$(PYTHON_VERSION)/lib/django -name *.py \
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen -exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. EngelenCOMPONENT_POST_INSTALL_ACTION = \
b49365c42b99e3cc135dcde0077aad31d930f6c1Johan B. C. Engelen (cd $(PROTO_DIR)/usr/bin ; $(MV) -f django-admin.py django-admin-$(PYTHON_VERSION))
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engelen
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engelen# add 1 extra transform to get rid of the facet created on
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. Engelen# locale/__init__.py
8d61fd74732665bf55186c56721245c1770c6db7Johan B. C. EngelenPUBLISH_TRANSFORMS += $(COMPONENT_DIR)/django-locale-transform
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# reset the test environment to only contain PATH and PYTHONPATH
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakCOMPONENT_TEST_DIR= $(SOURCE_DIR)/tests
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakCOMPONENT_TEST_ARGS += --settings test_sqlite
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakCOMPONENT_TEST_ENV= PYTHONPATH=$(SOURCE_DIR)
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakCOMPONENT_TEST_ENV += PATH=$(PATH)
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakASLR_MODE = $(ASLR_NOT_APPLICABLE)
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# common targets
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakbuild: $(BUILD_NO_ARCH)
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakinstall: $(INSTALL_NO_ARCH)
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# tests require:
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# docutils Markdown PIL py-bcrypt python-memcached pytz PyYAML
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# selenium and Textile, some of which haven't been integrated yet.
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak# The tests will run, but there are errors.
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak#
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyaktest: $(TEST_NO_ARCH)
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyaksystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyakREQUIRED_PACKAGES += text/gnu-gettext
c169f6cddd2da06cfb761339f445bbd8866f72a8buliabyak