From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Mar 11 21:20:00 2014 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 82F0E20D for ; Tue, 11 Mar 2014 21:20:00 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5F9BE2E2 for ; Tue, 11 Mar 2014 21:20:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.8/8.14.8) with ESMTP id s2BLK01Q016906 for ; Tue, 11 Mar 2014 21:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.8/8.14.8/Submit) id s2BLK0be016905; Tue, 11 Mar 2014 21:20:00 GMT (envelope-from gnats) Resent-Date: Tue, 11 Mar 2014 21:20:00 GMT Resent-Message-Id: <201403112120.s2BLK0be016905@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Olivier Duchateau Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D11E11D5 for ; Tue, 11 Mar 2014 21:16:22 +0000 (UTC) Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B26512C7 for ; Tue, 11 Mar 2014 21:16:22 +0000 (UTC) Received: from cgiserv.freebsd.org ([127.0.1.6]) by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2BLGMD3072928 for ; Tue, 11 Mar 2014 21:16:22 GMT (envelope-from nobody@cgiserv.freebsd.org) Received: (from nobody@localhost) by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2BLGMk0072922; Tue, 11 Mar 2014 21:16:22 GMT (envelope-from nobody) Message-Id: <201403112116.s2BLGMk0072922@cgiserv.freebsd.org> Date: Tue, 11 Mar 2014 21:16:22 GMT From: Olivier Duchateau To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/187456: [UPDATE] devel/py-gobject3 support Python3 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Mar 2014 21:20:00 -0000 >Number: 187456 >Category: ports >Synopsis: [UPDATE] devel/py-gobject3 support Python3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Tue Mar 11 21:20:00 UTC 2014 >Closed-Date: >Last-Modified: >Originator: Olivier Duchateau >Release: >Organization: >Environment: >Description: - Add support Python 3 - Bump PORTREVISION We can't create slave port, which works only for Python3, because header is common for both Python versions. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== --- Makefile (révision 347900) +++ Makefile (copie de travail) @@ -4,6 +4,7 @@ PORTNAME= gobject PORTVERSION= 3.8.1 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= GNOME MASTER_SITE_SUBDIR= sources/pygobject/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} @@ -16,16 +17,14 @@ COMMENT= Python bindings for GObject LICENSE= LGPL21 -LICENSE_FILE= ${WRKSRC}/COPYING -BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo LIB_DEPENDS= libffi.so:${PORTSDIR}/devel/libffi -RUN_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/pycairo.pc:${PORTSDIR}/graphics/py-cairo USE_XZ= yes USES= gmake pathfix pkgconfig -USE_GNOME= glib20 introspection -USE_PYTHON= 2 +USE_GNOME= glib20 introspection:build +USE_PYTHON= yes +PYTHON_PY3K_PLIST_HACK= yes GNU_CONFIGURE= yes USE_LDCONFIG= yes @@ -33,13 +32,20 @@ CONFLICTS= py*-gtk-0* py*-gobject-2.*.[0-6] py*-gobject-2.*.[7-9] \ py*-gobject-2.*.6_1 -PLIST_SUB= PYTHON_VER="${PYTHON_VER}" ARCH=${ARCH} UNAME_R=${UNAME_R} \ - VERSION=${PORTVERSION} +PLIST_SUB= ARCH=${ARCH} UNAME_R=${UNAME_R} VERSION=${PORTVERSION} .include UNAME_R!= ${UNAME} -r +.if ${PYTHON_REL} > 276 +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.10:${PORTSDIR}/graphics/py3-cairo +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.10:${PORTSDIR}/graphics/py3-cairo +.else +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.10:${PORTSDIR}/graphics/py-cairo +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairo>=1.10:${PORTSDIR}/graphics/py-cairo +.endif + post-patch: @${REINPLACE_CMD} -e 's|SUBDIRS = examples gi tests|SUBDIRS = examples gi|g' \ ${WRKSRC}/Makefile.in Index: pkg-plist =================================================================== --- pkg-plist (révision 347900) +++ pkg-plist (copie de travail) @@ -1,7 +1,7 @@ include/pygobject-3.0/pygobject.h -lib/libpyglib-gi-2.0-python%%PYTHON_VER%%.la -lib/libpyglib-gi-2.0-python%%PYTHON_VER%%.so -lib/libpyglib-gi-2.0-python%%PYTHON_VER%%.so.0 +lib/libpyglib-gi-2.0-%%PYTHON_VERSION%%.la +lib/libpyglib-gi-2.0-%%PYTHON_VERSION%%.so +lib/libpyglib-gi-2.0-%%PYTHON_VERSION%%.so.0 %%PYTHON_SITELIBDIR%%/gi/__init__.py %%PYTHON_SITELIBDIR%%/gi/__init__.pyc %%PYTHON_SITELIBDIR%%/gi/__init__.pyo @@ -73,7 +73,7 @@ %%PYTHON_SITELIBDIR%%/gi/types.py %%PYTHON_SITELIBDIR%%/gi/types.pyc %%PYTHON_SITELIBDIR%%/gi/types.pyo -%%PYTHON_SITELIBDIR%%/pygobject-%%VERSION%%-pypython%%PYTHON_VER%%-freebsd-%%UNAME_R%%-%%ARCH%%.egg-info +%%PYTHON_SITELIBDIR%%/pygobject-%%VERSION%%-py%%PYTHON_VERSION%%-freebsd-%%UNAME_R%%-%%ARCH%%.egg-info %%PYTHON_SITELIBDIR%%/pygtkcompat/__init__.py %%PYTHON_SITELIBDIR%%/pygtkcompat/__init__.pyc %%PYTHON_SITELIBDIR%%/pygtkcompat/__init__.pyo >Release-Note: >Audit-Trail: >Unformatted: