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