components/python/argparse/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Wed, 09 Sep 2015 11:58:35 -0700
changeset 4847 05ee227964f9
parent 4587 a814ef000c8b
permissions -rw-r--r--
21810533 Improve various Python module download locations
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1314
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
3639
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3537
diff changeset
    21
# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1314
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
include ../../../make-rules/shared-macros.mk
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		argparse
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	1.2.1
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE_HASH=	\
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
    sha256:ddaf4b0a618335a32b6664d4ae038a1de8fbada3b25033f9021510ed2b3941a4
4847
05ee227964f9 21810533 Improve various Python module download locations
Rich Burridge <rich.burridge@oracle.com>
parents: 4587
diff changeset
    31
COMPONENT_ARCHIVE_URL=	$(call pypi_url)
1314
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_PROJECT_URL=	http://code.google.com/p/argparse/
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_BUGDB=	python-mod/argparse
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1480
diff changeset
    35
TPNO=			13152
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1480
diff changeset
    36
1314
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
# The argparse module was integrated into Python 2.7, so we should only deliver
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
# a 2.6 module.
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
PYTHON_VERSIONS = 2.6
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3639
diff changeset
    41
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3639
diff changeset
    42
include $(WS_MAKE_RULES)/setup.py.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 3639
diff changeset
    43
include $(WS_MAKE_RULES)/ips.mk
1314
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
3537
d6e978572053 19833294 The argparse tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    45
COMPONENT_TEST_DIR =	$(COMPONENT_SRC)/test
d6e978572053 19833294 The argparse tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    46
COMPONENT_TEST_ARGS =	test_argparse.py
d6e978572053 19833294 The argparse tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    47
4536
e538a7eb8ea7 21304629 Hookup system-tests for argparse
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    48
COMPONENT_SYSTEM_TEST_ENV =
e538a7eb8ea7 21304629 Hookup system-tests for argparse
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    49
COMPONENT_SYSTEM_TEST_CMD=	$(PYTHON.2.6)
e538a7eb8ea7 21304629 Hookup system-tests for argparse
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    50
COMPONENT_SYSTEM_TEST_ARGS =	test_argparse.py
e538a7eb8ea7 21304629 Hookup system-tests for argparse
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    51
3639
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3537
diff changeset
    52
# The additional argparse specific set of transforms to be applied to the test
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3537
diff changeset
    53
# 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: 3537
diff changeset
    54
COMPONENT_TEST_TRANSFORMS += \
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3537
diff changeset
    55
	'-e "s|\(Ran 1524 tests in\).*|\1|" '
f8449ec64ef3 20362249 Various Userland components should have master test results to compare against
Rich Burridge <rich.burridge@oracle.com>
parents: 3537
diff changeset
    56
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1314
diff changeset
    57
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1314
diff changeset
    58
1480
1d8d2e9374cc 17476375 argparse, convmv, meld, parallel and quilt should be "64-bit"
Rich Burridge <rich.burridge@oracle.com>
parents: 1434
diff changeset
    59
build:		$(BUILD_NO_ARCH)
1314
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
1480
1d8d2e9374cc 17476375 argparse, convmv, meld, parallel and quilt should be "64-bit"
Rich Burridge <rich.burridge@oracle.com>
parents: 1434
diff changeset
    61
install:	$(INSTALL_NO_ARCH)
1314
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
3537
d6e978572053 19833294 The argparse tests can be hooked up.
Rich Burridge <rich.burridge@oracle.com>
parents: 1948
diff changeset
    63
test:		$(TEST_NO_ARCH)
1314
aa76e58a37ce PSARC 2013/096 argparse version 1.2.1 - Python command-line parsing library
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
4536
e538a7eb8ea7 21304629 Hookup system-tests for argparse
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    65
system-test:    $(SYSTEM_TEST_NO_ARCH)