components/python/simplejson/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Wed, 21 Jan 2015 07:59:43 -0800
changeset 3659 2110c4baed8f
parent 3639 f8449ec64ef3
child 3817 30b42c38bbc4
permissions -rw-r--r--
20373716 Cleanup regexp expressions for normalizing cc / libtool lines in test files
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1105
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
3639
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    23
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1105
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		simplejson
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	2.1.2
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://undefined.org/python/#simplejson
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH= \
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
    sha256:d196d78af44acdf47078e320124bfe4cd2cb3bd7b9be7f5587b2e149124cb49c
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://pypi.python.org/packages/source/s/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	python-mod/simplejson
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@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=			5929
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: 1890
diff changeset
    40
# Syntax issues: not Python 3 ready.
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1907
diff changeset
    41
PYTHON_VERSIONS=	2.7 2.6
1907
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1890
diff changeset
    42
1105
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
include $(WS_TOP)/make-rules/prep.mk
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
include $(WS_TOP)/make-rules/setup.py.mk
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
include $(WS_TOP)/make-rules/ips.mk
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
1890
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    47
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    48
3639
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    49
COMPONENT_TEST_DIR= $(COMPONENT_SRC)
1303
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1105
diff changeset
    50
COMPONENT_TEST_ARGS= ./setup.py test
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1105
diff changeset
    51
3639
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    52
# The additional simplejson specific set of transforms to be applied
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    53
# to the test results to try to normalize them.
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    54
COMPONENT_TEST_TRANSFORMS += \
3659
2110c4baed8f 20373716 Cleanup regexp expressions for normalizing cc / libtool lines in test files
Rich Burridge <rich.burridge@oracle.com>
parents: 3639
diff changeset
    55
	'-e "s|\(^$(CC)\).*|\\$$(CC)|" ' \
2110c4baed8f 20373716 Cleanup regexp expressions for normalizing cc / libtool lines in test files
Rich Burridge <rich.burridge@oracle.com>
parents: 3639
diff changeset
    56
	'-e "s|\(^cc -G \).*|\1|" ' \
3639
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    57
	'-e "s|\(creating build/temp.solaris\).*|\1|" ' \
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    58
	'-e "s|\(Ran 132 tests in\).*|\1|" '
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    59
1105
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
# common targets
1890
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    61
build:		$(BUILD_32_and_64)
1105
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
1890
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    63
install:	$(INSTALL_32_and_64)
1105
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
1890
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    65
test:		$(TEST_32_and_64)
1105
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
1890
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    67
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
1105
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
include $(WS_TOP)/make-rules/depend.mk