Makefile revision 6042
2521N/A#
2521N/A# CDDL HEADER START
2521N/A#
2521N/A# The contents of this file are subject to the terms of the
2521N/A# Common Development and Distribution License (the "License").
2521N/A# You may not use this file except in compliance with the License.
2521N/A#
2521N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2521N/A# or http://www.opensolaris.org/os/licensing.
2521N/A# See the License for the specific language governing permissions
2521N/A# and limitations under the License.
2521N/A#
2521N/A# When distributing Covered Code, include this CDDL HEADER in each
2521N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2521N/A# If applicable, add the following below this CDDL HEADER, with the
2521N/A# fields enclosed by brackets "[]" replaced with your own identifying
2521N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2521N/A#
2521N/A# CDDL HEADER END
2521N/A#
2521N/A
2521N/A#
5403N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
2521N/A#
6820N/A
2521N/ABUILD_BITS = 32_and_64
2521N/Ainclude ../../../make-rules/shared-macros.mk
2521N/A
6820N/ACOMPONENT_NAME= py2cairo
2521N/ACOMPONENT_SRC_NAME= pycairo
2521N/ACOMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
2521N/ACOMPONENT_VERSION= 1.8.10
6820N/ACOMPONENT_PROJECT_URL= http://cairographics.org/pycairo/
2521N/ACOMPONENT_ARCHIVE_HASH= \
6820N/A sha256:b15f71019e42e06d86f7e8fe5587f07c3de5a59a6c3a071b25fe100796dbcd56
2521N/ACOMPONENT_ARCHIVE_URL= http://cairographics.org/releases/$(COMPONENT_ARCHIVE)
2521N/ACOMPONENT_BUGDB= python-mod/pycairo
6820N/A
2899N/ATPNO= 19938
3817N/A
3817N/A# upstream delivers python3 support separately as "pycairo" (without the "2")
3817N/APYTHON_VERSIONS= $(PYTHON2_VERSIONS)
2521N/A
2521N/ABUILD_STYLE= setup.py
2521N/Ainclude $(WS_MAKE_RULES)/common.mk
2521N/A
6820N/APYTHON_DATA = $(USRDIR)
2521N/A
2521N/A# the test scripts aren't hooked into the test target in pycairo, so run directly
2521N/ACOMPONENT_TEST_ARGS = /usr/bin/py.test-$(PYTHON_VERSION)
2521N/ACOMPONENT_TEST_TRANSFORMS += '-e "s|in [0-9\.]* seconds||g" '
2521N/ACOMPONENT_TEST_TRANSFORMS += '-e "s|Python 2.7.[0-9]*|Python 2.7|g" '
2521N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
6820N/A
6820N/AREQUIRED_PACKAGES += library/desktop/cairo
2521N/A
4337N/A# py.test is required for testing, not building or runtime
6820N/AREQUIRED_PACKAGES += library/python/pytest