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