components/python/simplejson/Makefile
author John Beck <John.Beck@Oracle.COM>
Thu, 29 Oct 2015 07:57:11 -0700
changeset 5028 db8ff415ba49
parent 4972 882943f5c0d0
child 7687 1093e2a9adbd
permissions -rw-r--r--
22119875 clean up some Python 2.6 vestiges
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
3998
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3817
diff changeset
    29
COMPONENT_VERSION=	3.6.5
1105
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= \
3998
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3817
diff changeset
    34
    sha256:2a3189f79d1c7b8a2149a0e783c0b4217fad9b30a6e7d60450f2553dc2c0e57e
1105
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
3998
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3817
diff changeset
    38
TPNO=			21749
1907
446472de62e9 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 1890
diff changeset
    39
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3659
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3659
diff changeset
    41
include $(WS_MAKE_RULES)/setup.py.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3659
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
1105
e745d9f4429b 15820220 SUNBT7202660 Move python/simplejson from Desktop consolidation to Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
1890
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    44
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
    45
4972
882943f5c0d0 21960273 parameterize the old desktop build value when simplejson migrated
John Beck <John.Beck@Oracle.COM>
parents: 4706
diff changeset
    46
ifeq ($(OS_VERSION),5.11)
882943f5c0d0 21960273 parameterize the old desktop build value when simplejson migrated
John Beck <John.Beck@Oracle.COM>
parents: 4706
diff changeset
    47
OLD_DESKTOP_BUILD=	0.5.11,5.11-0.175.2.0.0.20.0
882943f5c0d0 21960273 parameterize the old desktop build value when simplejson migrated
John Beck <John.Beck@Oracle.COM>
parents: 4706
diff changeset
    48
else
882943f5c0d0 21960273 parameterize the old desktop build value when simplejson migrated
John Beck <John.Beck@Oracle.COM>
parents: 4706
diff changeset
    49
OLD_DESKTOP_BUILD=	5.12-5.12.0.0.0.14.0
882943f5c0d0 21960273 parameterize the old desktop build value when simplejson migrated
John Beck <John.Beck@Oracle.COM>
parents: 4706
diff changeset
    50
endif
882943f5c0d0 21960273 parameterize the old desktop build value when simplejson migrated
John Beck <John.Beck@Oracle.COM>
parents: 4706
diff changeset
    51
882943f5c0d0 21960273 parameterize the old desktop build value when simplejson migrated
John Beck <John.Beck@Oracle.COM>
parents: 4706
diff changeset
    52
PKG_MACROS +=		OLD_DESKTOP_BUILD=$(OLD_DESKTOP_BUILD)
882943f5c0d0 21960273 parameterize the old desktop build value when simplejson migrated
John Beck <John.Beck@Oracle.COM>
parents: 4706
diff changeset
    53
4706
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    54
COMPONENT_TEST_DIR= $(COMPONENT_SRC)/$(COMPONENT_NAME)/tests
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    55
COMPONENT_TEST_CMD= /usr/bin/py.test-$(PYTHON_VERSION)
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    56
COMPONENT_TEST_ARGS= -v
1303
79b691ffbda3 16734056 Make antlr ASLR enabled
Brian Cameron <brian.cameron@oracle.com>
parents: 1105
diff changeset
    57
3639
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    58
# 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
    59
# 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
    60
COMPONENT_TEST_TRANSFORMS += \
4706
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    61
	'-e "/^_.*/d" ' \
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    62
	'-e "/^=.*/d" ' \
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    63
	'-e "/SOURCE_DIR.*/d" ' \
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    64
	'-e "/^ *$$/d" ' \
5028
db8ff415ba49 22119875 clean up some Python 2.6 vestiges
John Beck <John.Beck@Oracle.COM>
parents: 4972
diff changeset
    65
	'-e "/^platform sunos5 .*/d" ' \
4706
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    66
	'-e "/^plugins.*/d" ' \
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    67
	'-e "/pep8/d" ' \
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    68
	'-e "/pyflakes/d" '
3639
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3497
diff changeset
    69
4706
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    70
COMPONENT_SYSTEM_TEST_DIR= $(COMPONENT_SRC)/$(COMPONENT_NAME)/tests
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    71
COMPONENT_SYSTEM_TEST_CMD= /usr/bin/py.test-$(PYTHON_VERSION)
c0b8c110b0a8 21363926 simplejson test results differ for "gmake test" and "gmake system-test"
James Chang <james.c.chang@Oracle.COM>
parents: 4587
diff changeset
    72
COMPONENT_SYSTEM_TEST_ARGS= -v
4587
a814ef000c8b 21363889 More Userland Python modules can hookup "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    73
COMPONENT_SYSTEM_TEST_ENV =
a814ef000c8b 21363889 More Userland Python modules can hookup "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    74
1890
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    75
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
    76
1890
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    77
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
    78
1890
5a4ef66c42bf 16808434 Many components probably don't need a PATH line in their Makefiles
david.comay@oracle.com
parents: 1434
diff changeset
    79
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
    80
4587
a814ef000c8b 21363889 More Userland Python modules can hookup "gmake system-test"
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    81
system-test:    $(SYSTEM_TEST_32_and_64)
3998
5bd484384122 PSARC 2015/110 OpenStack service updates for Juno
Danek Duvall <danek.duvall@oracle.com>
parents: 3817
diff changeset
    82
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3659
diff changeset
    83
REQUIRED_PACKAGES += system/library