Makefile revision 2426
140N/A#
140N/A# CDDL HEADER START
140N/A#
140N/A# The contents of this file are subject to the terms of the
140N/A# Common Development and Distribution License (the "License").
140N/A# You may not use this file except in compliance with the License.
140N/A#
140N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
140N/A# or http://www.opensolaris.org/os/licensing.
140N/A# See the License for the specific language governing permissions
140N/A# and limitations under the License.
140N/A#
140N/A# When distributing Covered Code, include this CDDL HEADER in each
140N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
140N/A# If applicable, add the following below this CDDL HEADER, with the
140N/A# fields enclosed by brackets "[]" replaced with your own identifying
140N/A# information: Portions Copyright [yyyy] [name of copyright owner]
140N/A#
140N/A# CDDL HEADER END
140N/A#
140N/A# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
140N/A#
140N/Ainclude ../../../make-rules/shared-macros.mk
140N/A
140N/ACOMPONENT_NAME= Django
140N/ACOMPONENT_VERSION= 1.4.10
140N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
140N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
140N/ACOMPONENT_ARCHIVE_HASH= \
140N/A sha256:3d1f083c039fdab1400c32b5406a60891c9dd16f880999c4a53d054742ac29de
140N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
140N/ACOMPONENT_PROJECT_URL= http://www.djangoproject.com/
140N/ACOMPONENT_BUGDB= python-mod/django
140N/A
140N/Ainclude $(WS_TOP)/make-rules/prep.mk
140N/Ainclude $(WS_TOP)/make-rules/setup.py.mk
140N/Ainclude $(WS_TOP)/make-rules/ips.mk
140N/A
140N/A# Replace "#!/usr/bin/env ..." shebang lines with properly versioned ones.
140N/ACOMPONENT_POST_BUILD_ACTION = \
140N/A /usr/bin/find $(BUILD_DIR)/$(MACH)-$(PYTHON_VERSION)/lib/django -name *.py \
140N/A -exec $(GSED) -i -e 's/env python/python$(PYTHON_VERSION)/' "{}" \; ;
140N/A
140N/ACOMPONENT_POST_INSTALL_ACTION = \
140N/A (cd $(PROTO_DIR)/usr/bin ; $(MV) -f django-admin.py django-admin-$(PYTHON_VERSION))
140N/A
140N/A# add 1 extra transform to get rid of the facet created on
140N/A# locale/__init__.py
140N/APUBLISH_TRANSFORMS += $(COMPONENT_DIR)/django-locale-transform
140N/A
140N/A# reset the test environment to only contain PATH and PYTHONPATH
140N/ACOMPONENT_TEST_DIR= $(SOURCE_DIR)/tests
140N/ACOMPONENT_TEST_ARGS += --settings test_sqlite
140N/ACOMPONENT_TEST_ENV= PYTHONPATH=$(SOURCE_DIR)
140N/ACOMPONENT_TEST_ENV += PATH=$(PATH)
140N/A
140N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
140N/A
140N/A# common targets
140N/Abuild: $(BUILD_NO_ARCH)
140N/A
140N/Ainstall: $(INSTALL_NO_ARCH)
140N/A
#
# 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