7083N/A#
7083N/A# CDDL HEADER START
7083N/A#
7083N/A# The contents of this file are subject to the terms of the
7083N/A# Common Development and Distribution License (the "License").
7083N/A# You may not use this file except in compliance with the License.
7083N/A#
7083N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7083N/A# or http://www.opensolaris.org/os/licensing.
7083N/A# See the License for the specific language governing permissions
7083N/A# and limitations under the License.
7083N/A#
7083N/A# When distributing Covered Code, include this CDDL HEADER in each
7083N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7083N/A# If applicable, add the following below this CDDL HEADER, with the
7083N/A# fields enclosed by brackets "[]" replaced with your own identifying
7083N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7083N/A#
7083N/A# CDDL HEADER END
7083N/A#
7083N/A
7083N/A#
7083N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7083N/A#
7083N/A
7083N/Ainclude ../../../make-rules/shared-macros.mk
7083N/A
7083N/ACOMPONENT_NAME= idna
7083N/ACOMPONENT_VERSION= 2.0
7083N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7083N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7083N/ACOMPONENT_ARCHIVE_HASH= \
7083N/A sha256:16199aad938b290f5be1057c0e1efc6546229391c23cea61ca940c115f7d3d3b
7083N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
7083N/ACOMPONENT_PROJECT_URL= https://github.com/kjd/idna
7083N/ACOMPONENT_BUGDB= python-mod/idna
7083N/A
7083N/ATPNO= 25771
7083N/A
7083N/Ainclude $(WS_MAKE_RULES)/prep.mk
7083N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
7083N/Ainclude $(WS_MAKE_RULES)/ips.mk
7083N/A
7083N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
7083N/A
7083N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)/tests
7083N/ACOMPONENT_TEST_ARGS = -m unittest discover --pattern=*.py
7083N/A
7083N/A# The test output contains arbitrary output. Use nawk to extract just the
7083N/A# sections that summarizes the test result.
7083N/A# Most of the test cases skipped in Python 2.7 because 'Test requires Python
7083N/A# wide Unicode support'.
7083N/ACOMPONENT_TEST_TRANSFORMER = $(NAWK)
7083N/ACOMPONENT_TEST_TRANSFORMS = "'/^Ran .+ / { sub(\" tests in .+s\", \" tests in\"); print }; /!NF/ { print }; /^OK/ { print };'"
7083N/A
7083N/A# common targets
7083N/Abuild: $(BUILD_64)
7083N/A
7083N/Ainstall: $(INSTALL_64)
7083N/A
7083N/A# Note: test will fail to run for 2.6 because the 'discover' unit test module
7083N/A# is not available for 2.6. This will short-circuit the run for 2.7. To run
7083N/A# tests manually for 2.7, cd to idna-2.0/tests and run:
7083N/A# /usr/bin/python2.7 -m unittest discover --pattern=*.py
7083N/Atest: $(TEST_64)
7083N/A
7083N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)