components/python/idna/Makefile
author Yiteng Zhang <yiteng.zhang@oracle.com>
Tue, 23 Feb 2016 15:19:53 -0800
changeset 5486 fc535b316139
child 7687 1093e2a9adbd
permissions -rw-r--r--
PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module PSARC/2015/490 ipaddress - Python IPv4/IPv6 manipulation module 22365145 upgrade setuptools to version 19.2 22520287 Upgrade cffi to version 1.4.2 22520302 Upgrade cryptography to version 1.2.1 22520335 Integrate idna into Userland 22520346 Integrate ipaddress into Userland 22520361 Upgrade pyasn1 to version 0.1.9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5486
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
     1
#
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
     3
#
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
     7
#
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    12
#
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    18
#
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    20
#
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    21
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    22
#
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    24
#
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    25
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    27
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		idna
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	2.0
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	\
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    33
    sha256:16199aad938b290f5be1057c0e1efc6546229391c23cea61ca940c115f7d3d3b
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_URL=	$(call pypi_url)
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    35
COMPONENT_PROJECT_URL=	https://github.com/kjd/idna
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	python-mod/idna
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    37
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    38
TPNO=			25771
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    39
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    41
include $(WS_MAKE_RULES)/setup.py.mk
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    43
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    44
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    45
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    46
COMPONENT_TEST_DIR = $(SOURCE_DIR)/tests
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    47
COMPONENT_TEST_ARGS = -m unittest discover --pattern=*.py
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    48
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    49
# The test output contains arbitrary output. Use nawk to extract just the
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    50
# sections that summarizes the test result.
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    51
# Most of the test cases skipped in Python 2.7 because 'Test requires Python 
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    52
# wide Unicode support'.
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    53
COMPONENT_TEST_TRANSFORMER = $(NAWK)
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    54
COMPONENT_TEST_TRANSFORMS = "'/^Ran .+ / { sub(\" tests in .+s\", \" tests in\"); print }; /!NF/ { print }; /^OK/ { print };'"
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    55
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    56
# common targets
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    57
build:		$(BUILD_64)
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    58
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    59
install:	$(INSTALL_64)
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    60
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    61
test:		$(TEST_64)
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    62
fc535b316139 PSARC/2015/489 idna - Python Internationalised Domain Names in Applications module
Yiteng Zhang <yiteng.zhang@oracle.com>
parents:
diff changeset
    63
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)