components/python/py2cairo/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Thu, 23 Feb 2017 13:46:52 -0800
changeset 7687 1093e2a9adbd
parent 6488 109e53304f7b
permissions -rw-r--r--
25590368 Userland components should include "upstream" release tracking information
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6044
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     1
#
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     3
#
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     7
#
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    12
#
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    18
#
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    20
#
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    21
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    22
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6488
diff changeset
    23
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
6044
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    24
#
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    25
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    26
BUILD_BITS =            32_and_64
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    27
include ../../../make-rules/shared-macros.mk
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    28
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    29
COMPONENT_NAME=		py2cairo
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_SRC_NAME=	pycairo
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_VERSION=	1.8.10
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_PROJECT_URL=	http://cairographics.org/pycairo/
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE_HASH=	\
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    35
    sha256:b15f71019e42e06d86f7e8fe5587f07c3de5a59a6c3a071b25fe100796dbcd56
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    36
COMPONENT_ARCHIVE_URL=	http://cairographics.org/releases/$(COMPONENT_ARCHIVE)
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    37
COMPONENT_BUGDB=	python-mod/pycairo
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 6488
diff changeset
    38
COMPONENT_ANITYA_ID=	13167
6044
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    39
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    40
TPNO=			19938
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    41
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    42
# upstream delivers python3 support separately as "pycairo" (without the "2")
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    43
PYTHON_VERSIONS=        $(PYTHON2_VERSIONS)
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    44
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    45
BUILD_STYLE= setup.py
6488
109e53304f7b 24356558 do not publish py2cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6044
diff changeset
    46
109e53304f7b 24356558 do not publish py2cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6044
diff changeset
    47
# Parent package was not version-unlockable in gnome-incorporation =>
109e53304f7b 24356558 do not publish py2cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6044
diff changeset
    48
# do-not-publish.
109e53304f7b 24356558 do not publish py2cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6044
diff changeset
    49
ifeq ($(BUILD_TYPE), evaluation)
109e53304f7b 24356558 do not publish py2cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6044
diff changeset
    50
BUILD_32_and_64=
109e53304f7b 24356558 do not publish py2cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6044
diff changeset
    51
INSTALL_32_and_64=
109e53304f7b 24356558 do not publish py2cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6044
diff changeset
    52
PUBLISH_STAMP=
109e53304f7b 24356558 do not publish py2cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6044
diff changeset
    53
endif
109e53304f7b 24356558 do not publish py2cairo when BUILD_TYPE=evaluation
John Beck <John.Beck@Oracle.COM>
parents: 6044
diff changeset
    54
6044
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    55
include $(WS_MAKE_RULES)/common.mk
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    56
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    57
PYTHON_DATA = $(USRDIR)
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    58
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    59
# the test scripts aren't hooked into the test target in pycairo, so run directly
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    60
COMPONENT_TEST_ARGS = 	/usr/bin/py.test-$(PYTHON_VERSION)
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    61
COMPONENT_TEST_TRANSFORMS += '-e "s|in [0-9\.]* seconds||g" '
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    62
COMPONENT_TEST_TRANSFORMS += '-e "s|Python 2.7.[0-9]*|Python 2.7|g" '
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    63
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    64
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    65
REQUIRED_PACKAGES += library/desktop/cairo
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    66
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    67
# py.test is required for testing, not building or runtime
16fb0443547f 23245485 Move pycairo 1.8.10 to Userland
Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
parents:
diff changeset
    68
REQUIRED_PACKAGES += library/python/pytest