1337N/A#
1337N/A# CDDL HEADER START
1337N/A#
1337N/A# The contents of this file are subject to the terms of the
1337N/A# Common Development and Distribution License (the "License").
1337N/A# You may not use this file except in compliance with the License.
1337N/A#
1337N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1337N/A# or http://www.opensolaris.org/os/licensing.
1337N/A# See the License for the specific language governing permissions
1337N/A# and limitations under the License.
1337N/A#
1337N/A# When distributing Covered Code, include this CDDL HEADER in each
1337N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1337N/A# If applicable, add the following below this CDDL HEADER, with the
1337N/A# fields enclosed by brackets "[]" replaced with your own identifying
1337N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1337N/A#
1337N/A# CDDL HEADER END
1337N/A#
1337N/A
1337N/A#
3744N/A# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
1337N/A#
1337N/A
1337N/Ainclude ../../../make-rules/shared-macros.mk
1337N/A
1337N/ACOMPONENT_NAME= Twisted
1337N/ACOMPONENT_VERSION= 10.1.0
1337N/ACOMPONENT_PROJECT_URL= http://twistedmatrix.com/trac/
1337N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1337N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.bz2
1337N/ACOMPONENT_ARCHIVE_HASH= \
1337N/A sha256:eda6e0e9e5ef6f6c19ab75bcb094f83a12ee25fe589fbcddf946e8a655c8070b
4845N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
1337N/ACOMPONENT_BUGDB= python-mod/twisted
1337N/A
2899N/ATPNO= 9692
2899N/A
2818N/A# Syntax issues: not Python 3 ready.
4982N/APYTHON_VERSIONS= $(PYTHON2_VERSIONS)
2818N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
1337N/A
1699N/ACOMPONENT_TEST_DIR= $(COMPONENT_SRC)
2790N/ACOMPONENT_TEST_CMD= $(@D)/scripts-$(PYTHON_VERSION)/trial twisted
1699N/ACOMPONENT_TEST_ARGS=""
1699N/A
3744N/A# Unfortunately the master test results files are not only different for
3744N/A# each version of Python, they can also be different for 32-bit and 64-bit
3744N/A# versions and different for x86 and SPARC platforms.
3744N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-$(PYTHON_VERSION)-$(BITS).$(MACH).master
3744N/A
3753N/A# Using gsed with a specific set of transforms to be applied to the test
3753N/A# results to try to normalize them, was problematic. It resulted in 8
3753N/A# different ~650Kb master test files. Several of these lines needed to be
3753N/A# deleted (as opposed to being normalized) because they appear in a
3753N/A# non-deterministic order.
3753N/A#
3753N/A# Using nawk to just extract lines starting with:
3753N/A# [FAIL]: ...
3753N/A# [ERROR]: ...
3753N/A# Ran XXXX tests in ...
3753N/A# FAILED ...
3753N/A# OK
3753N/A# and stripping out the random portions (like time to complete the tests),
3753N/A# resulted in 8 master test files each less than 1Kb in size.
3753N/ACOMPONENT_TEST_TRANSFORMER = $(NAWK)
3753N/ACOMPONENT_TEST_TRANSFORMS = "'/^\[FAIL\]: / { print }; /^\[ERROR\]: / { print }; /^Ran / { sub(\" tests in .+s\", \" tests in\"); print }; /^FAILED / { print }; /^OK / { print };'"
3744N/A
4585N/ACOMPONENT_SYSTEM_TEST_DIR= $(COMPONENT_SRC)
4585N/ACOMPONENT_SYSTEM_TEST_ENV=
4585N/ACOMPONENT_SYSTEM_TEST_CMD= /usr/demo/twisted-python$(PYTHON_VERSION)/trial
4585N/ACOMPONENT_SYSTEM_TEST_ARGS= twisted
4585N/A
1938N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
1699N/A
2790N/Abuild: $(BUILD_32_and_64)
1337N/A
2790N/Ainstall: $(INSTALL_32_and_64)
1337N/A
2790N/Atest: $(TEST_32_and_64)
1337N/A
4585N/Asystem-test: $(SYSTEM_TEST_32_and_64)
4337N/A
3817N/AREQUIRED_PACKAGES += system/library