From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Sep 2 19:50:12 2011 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1294D1065670 for ; Fri, 2 Sep 2011 19:50:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E1B628FC0C for ; Fri, 2 Sep 2011 19:50:11 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p82JoARa048380 for ; Fri, 2 Sep 2011 19:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p82Jo95d048379; Fri, 2 Sep 2011 19:50:10 GMT (envelope-from gnats) Resent-Date: Fri, 2 Sep 2011 19:50:10 GMT Resent-Message-Id: <201109021950.p82Jo95d048379@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, Dmitry Marakasov Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 31B49106564A for ; Fri, 2 Sep 2011 19:45:55 +0000 (UTC) (envelope-from amdmi3@amdmi3.ru) Received: from smtp.timeweb.ru (smtp.timeweb.ru [92.53.116.15]) by mx1.freebsd.org (Postfix) with ESMTP id E15B48FC08 for ; Fri, 2 Sep 2011 19:45:54 +0000 (UTC) Received: from [213.148.20.85] (helo=hive.panopticon) by smtp.timeweb.ru with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1QzZgV-0003HA-Ve; Fri, 02 Sep 2011 23:45:51 +0400 Received: from hades.panopticon (hades.panopticon [192.168.0.32]) by hive.panopticon (Postfix) with ESMTP id 4DB2FB866; Fri, 2 Sep 2011 23:45:51 +0400 (MSD) Received: by hades.panopticon (Postfix, from userid 1000) id 4055FB845; Fri, 2 Sep 2011 23:45:51 +0400 (MSD) Message-Id: <20110902194551.4055FB845@hades.panopticon> Date: Fri, 2 Sep 2011 23:45:51 +0400 (MSD) From: Dmitry Marakasov To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/160406: [PATCH] graphics/geos: add option to enable python bindings X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Sep 2011 19:50:12 -0000 >Number: 160406 >Category: ports >Synopsis: [PATCH] graphics/geos: add option to enable python bindings >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Sep 02 19:50:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Dmitry Marakasov >Release: FreeBSD 8.2-RELEASE i386 >Organization: >Environment: System: FreeBSD hades.panopticon 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Tue Mar 8 09:48:52 MSK >Description: geos has an option to enable python bindings, so add support for it in the port. While here, canonicalize case in the Makefile, add explicit GNU_CONFIGURE (though USE_AUTOTOOLS=libtool implies it, its unapparent and confusing) and sort plist. Port maintainer (konstantin@saurbier.net) is cc'd. Generated with FreeBSD Port Tools 0.99 >How-To-Repeat: >Fix: --- geos-3.3.0_2.patch begins here --- Index: Makefile =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/graphics/geos/Makefile,v retrieving revision 1.28 diff -u -u -r1.28 Makefile --- Makefile 29 Jun 2011 17:19:18 -0000 1.28 +++ Makefile 2 Sep 2011 19:41:25 -0000 @@ -7,7 +7,7 @@ PORTNAME= geos PORTVERSION= 3.3.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics geography MASTER_SITES= http://download.osgeo.org/geos/ @@ -17,9 +17,24 @@ LICENSE= LGPL21 USE_AUTOTOOLS= libtool -USE_BZIP2= YES -USE_GMAKE= YES -USE_LDCONFIG= YES +USE_BZIP2= yes +USE_GMAKE= yes +USE_LDCONFIG= yes +GNU_CONFIGURE= yes + +OPTIONS= PYTHON "Enable python bindings" off + +.include + +.if defined(WITH_PYTHON) +USE_PYTHON= yes +CONFIGURE_ARGS+=--enable-python +PLIST_SUB+= PYTHON="" +BUILD_DEPENDS+= swig:${PORTSDIR}/devel/swig13 +PKGNAMESUFFIX= -python +.else +PLIST_SUB+= PYTHON="@comment " +.endif post-install: @${LN} -s ${PREFIX}/lib/libgeos-${PORTVERSION}.so ${PREFIX}/lib/libgeos.so.0 Index: pkg-plist =================================================================== RCS file: /home/amdmi3/projects/freebsd/FreeBSD.cvs/ports/graphics/geos/pkg-plist,v retrieving revision 1.14 diff -u -u -r1.14 pkg-plist --- pkg-plist 29 Jun 2011 17:19:18 -0000 1.14 +++ pkg-plist 2 Sep 2011 19:41:25 -0000 @@ -357,14 +357,23 @@ include/geos/version.h include/geos_c.h lib/libgeos-3.3.0.so -lib/libgeos.so.0 lib/libgeos.a lib/libgeos.la lib/libgeos.so +lib/libgeos.so.0 lib/libgeos_c.a lib/libgeos_c.la lib/libgeos_c.so lib/libgeos_c.so.8 +%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos.pth +%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/_geos.a +%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/_geos.la +%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/_geos.so +%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/geos.py +%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/geos.pyc +%%PYTHON%%%%PYTHON_SITELIBDIR%%/geos/geos.pyo +%%PYTHON%%@dirrm %%PYTHON_SITELIBDIR%%/geos +%%PYTHON%%@dirrm %%PYTHON_SITELIBDIR%% @dirrm lib/geos @dirrm include/geos/util @dirrm include/geos/simplify --- geos-3.3.0_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: