components/python/cheetah/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 6404 776ac4e2d089
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1568
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     1
#
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     3
#
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     7
#
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    12
#
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    18
#
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    20
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4984
diff changeset
    21
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 4984
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6404
diff changeset
    23
# Copyright (c) 2012, 2017, Oracle and/or its affiliates. All rights reserved.
1568
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    24
#
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    25
include ../../../make-rules/shared-macros.mk
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    26
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    27
COMPONENT_NAME=		Cheetah
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    28
COMPONENT_VERSION=	2.4.4
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    29
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    30
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    32
    sha256:be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_URL=	$(call pypi_url)
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    34
COMPONENT_PROJECT_URL=	http://www.cheetahtemplate.org/
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    35
COMPONENT_BUGDB=	python-mod/cheetah
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6404
diff changeset
    36
COMPONENT_ANITYA_ID=	13246
1568
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    37
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1907
diff changeset
    38
TPNO=			14503
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1907
diff changeset
    39
1907
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1568
diff changeset
    40
# Syntax issues: not Python 3 ready.
4984
7145b15b7f0d PSARC 2014/190 Python 2.6 EOF
John Beck <John.Beck@Oracle.COM>
parents: 4339
diff changeset
    41
PYTHON_VERSIONS=	$(PYTHON2_VERSIONS)
1907
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1568
diff changeset
    42
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3497
diff changeset
    43
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3497
diff changeset
    44
include $(WS_MAKE_RULES)/setup.py.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3497
diff changeset
    45
include $(WS_MAKE_RULES)/ips.mk
1568
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    46
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    47
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    48
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    49
COMPONENT_POST_INSTALL_ACTION = \
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    50
        (cd $(PROTO_DIR)/usr/bin ; \
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    51
	 $(MV) -f cheetah cheetah-$(PYTHON_VERSION) ; \
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    52
	 $(MV) -f cheetah-analyze cheetah-analyze-$(PYTHON_VERSION) ; \
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    53
	 $(MV) -f cheetah-compile cheetah-compile-$(PYTHON_VERSION))
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    54
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    55
COMPONENT_TEST_ARGS=	cheetah/Tests/Test.py
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    56
COMPONENT_TEST_DIR=	$(SOURCE_DIR)
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    57
COMPONENT_TEST_ENV=	PATH=$(PROTO_DIR)/usr/bin
6404
776ac4e2d089 backout 23763310 - needs more work
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 6399
diff changeset
    58
COMPONENT_TEST_ENV +=	PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
1568
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    59
COMPONENT_TEST_ENV +=	PYTHON_VERSION=$(PYTHON_VERSION)
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    60
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    61
# common targets
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    62
build:		$(BUILD_32_and_64)
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    63
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    64
install:	$(INSTALL_32_and_64)
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    65
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    66
test:		$(TEST_32_and_64)
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    67
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    68
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    69
1568
b73d1dab3340 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    70
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3497
diff changeset
    71
REQUIRED_PACKAGES += runtime/python-27/tests
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3497
diff changeset
    72
REQUIRED_PACKAGES += system/library