ports/160406: [PATCH] graphics/geos: add option to enable python bindings
Dmitry Marakasov
amdmi3 at amdmi3.ru
Fri Sep 2 19:50:12 UTC 2011
>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 at 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 <bsd.port.options.mk>
+
+.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:
More information about the freebsd-ports-bugs
mailing list