Makefile revision 844
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# CDDL HEADER START
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# The contents of this file are subject to the terms of the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Common Development and Distribution License (the "License").
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# You may not use this file except in compliance with the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# or http://www.opensolaris.org/os/licensing.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# See the License for the specific language governing permissions
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# and limitations under the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# When distributing Covered Code, include this CDDL HEADER in each
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# If applicable, add the following below this CDDL HEADER, with the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# fields enclosed by brackets "[]" replaced with your own identifying
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# information: Portions Copyright [yyyy] [name of copyright owner]
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# CDDL HEADER END
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi#
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinclude ../../make-rules/shared-macros.mk
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiPATH=/usr/bin:/usr/gnu/bin:/usr/sbin
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_NAME= mercurial
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_VERSION= 1.8.4
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_PROJECT_URL= http://mercurial.selenic.com/
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_ARCHIVE_HASH= \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi sha256:4c9d7b8eeb5968592602795f6e67e4cf6ddf0a0e8cfc7eeda7d1a3996a3eab8f
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_ARCHIVE_URL= http://www.selenic.com/mercurial/release/$(COMPONENT_ARCHIVE)
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiinclude $(WS_TOP)/make-rules/prep.mk
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiinclude $(WS_TOP)/make-rules/setup.py.mk
0eb822a1c0c2bea495647510b75f77f0e57633ebcindiinclude $(WS_TOP)/make-rules/ips.mk
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiCOMPONENT_POST_INSTALL_ACTION = \
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi (cd $(PROTO_DIR)/usr/bin ; $(MV) -f hg hg-$(PYTHON_VERSION))
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiPKG_PROTO_DIRS += $(COMPONENT_SRC)/contrib
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiPKG_PROTO_DIRS += $(COMPONENT_SRC)/doc
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# Set mod time of patched file from patch. Use this to ensure that the .py
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# file consistently gets the same timestamp.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi$(SOURCE_DIR)/.https_proxy.patched: GPATCH_FLAGS += -Z
724365f7556fc4201fdb11766ebc6bd918523130sethg
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi# common targets
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindibuild: $(BUILD_32)
724365f7556fc4201fdb11766ebc6bd918523130sethg
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiinstall: $(INSTALL_32)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
724365f7556fc4201fdb11766ebc6bd918523130sethgtest: $(INSTALL_32)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi (cd $(COMPONENT_SRC)/tests ; \
724365f7556fc4201fdb11766ebc6bd918523130sethg PYTHONPATH=$(PROTO_DIR)/$(PYTHON_LIB) $(PYTHON) ./run-tests.py)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindiBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
724365f7556fc4201fdb11766ebc6bd918523130sethginclude $(WS_TOP)/make-rules/depend.mk
724365f7556fc4201fdb11766ebc6bd918523130sethg