Makefile revision 3996
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen#
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# CDDL HEADER START
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen#
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# The contents of this file are subject to the terms of the
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# Common Development and Distribution License (the "License").
e074ffeaee1ce283bd42f167c6810e3d013f8218Timo Sirainen# You may not use this file except in compliance with the License.
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen#
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenberger# or http://www.opensolaris.org/os/licensing.
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# See the License for the specific language governing permissions
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# and limitations under the License.
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen#
08d6658a4e2ec8104cd1307f6baa75fdb07a24f8Mark Washenberger# When distributing Covered Code, include this CDDL HEADER in each
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
78ed6a99e980228a75fa59cff84327dc0ea82857Timo Sirainen#
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# CDDL HEADER END
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen#
97c339398f1aba6f315b55a9b6ee6b020e33bea4Timo Sirainen# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen#
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Siraineninclude ../../../make-rules/shared-macros.mk
97c339398f1aba6f315b55a9b6ee6b020e33bea4Timo Sirainen
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo SirainenCOMPONENT_NAME= Django
97c339398f1aba6f315b55a9b6ee6b020e33bea4Timo SirainenCOMPONENT_VERSION= 1.4.11
49e513d090753ccbf95560b2f3a21f081a5b6c51Timo SirainenCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
e80203675151ef9d4f3f850cf02041042eb13096Timo SirainenCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo SirainenCOMPONENT_ARCHIVE_HASH= \
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen sha256:4819d8b37405b33f4f0d156f60918094d566249f52137c5e6e0dbaa12995c201
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo SirainenCOMPONENT_ARCHIVE_URL= $(call pypi_url)
78ed6a99e980228a75fa59cff84327dc0ea82857Timo SirainenCOMPONENT_PROJECT_URL= http://www.djangoproject.com/
78ed6a99e980228a75fa59cff84327dc0ea82857Timo SirainenCOMPONENT_BUGDB= python-mod/django
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo SirainenTPNO= 17445
462b8c71015b2483cff3c59fa3668246dc72dfceAndrey Panin
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# Syntax issues: not Python 3 ready.
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo SirainenPYTHON_VERSIONS= 2.7 2.6
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Siraineninclude $(WS_MAKE_RULES)/prep.mk
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Siraineninclude $(WS_MAKE_RULES)/setup.py.mk
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Siraineninclude $(WS_MAKE_RULES)/ips.mk
1e3a608d8d0e08cb7d549718fbfbcc148fdb236fTimo Sirainen
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo SirainenCOMPONENT_POST_BUILD_ACTION = \
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen /usr/bin/find $(BUILD_DIR)/$(MACH)-$(PYTHON_VERSION)/lib/django -name *.py \
1e3a608d8d0e08cb7d549718fbfbcc148fdb236fTimo Sirainen -exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
1e3a608d8d0e08cb7d549718fbfbcc148fdb236fTimo Sirainen
1e3a608d8d0e08cb7d549718fbfbcc148fdb236fTimo SirainenCOMPONENT_POST_INSTALL_ACTION = \
1e3a608d8d0e08cb7d549718fbfbcc148fdb236fTimo Sirainen (cd $(PROTO_DIR)/usr/bin ; $(MV) -f django-admin.py django-admin-$(PYTHON_VERSION))
1e3a608d8d0e08cb7d549718fbfbcc148fdb236fTimo Sirainen
1e3a608d8d0e08cb7d549718fbfbcc148fdb236fTimo Sirainen# add 1 extra transform to get rid of the facet created on
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# locale/__init__.py
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo SirainenPUBLISH_TRANSFORMS += $(COMPONENT_DIR)/django-locale-transform
4ac5448461b63de9637de839fbc611a3d503287cTimo Sirainen
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# reset the test environment to only contain PATH and PYTHONPATH
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo SirainenCOMPONENT_TEST_DIR= $(SOURCE_DIR)/tests
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo SirainenCOMPONENT_TEST_ARGS += --settings test_sqlite
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo SirainenCOMPONENT_TEST_ENV= PYTHONPATH=$(SOURCE_DIR)
e03ec0b7b9d92551331bc509bcd86920544171d1Timo SirainenCOMPONENT_TEST_ENV += PATH=$(PATH)
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo SirainenASLR_MODE = $(ASLR_NOT_APPLICABLE)
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# common targets
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainenbuild: $(BUILD_NO_ARCH)
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Siraineninstall: $(INSTALL_NO_ARCH)
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen#
7bafda1813454621e03615e83d55bccfa7cc56bdTimo Sirainen# tests require:
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen#
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainen# docutils Markdown PIL py-bcrypt python-memcached pytz PyYAML
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen# selenium and Textile, some of which haven't been integrated yet.
73bfdbe28c2ce6d143eadf0bab8ccfbe4cab0faeTimo Sirainen# The tests will run, but there are errors.
e70d5895795732b8247ab9abb045b438e954bc46Timo Sirainen#
33c6d5807b449463e9b81db5ec99fe027cc1b984Timo Sirainentest: $(TEST_NO_ARCH)