pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/geography/geos Import geos from pkgsrc-wip. Packaged ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/635a0a2c2789
branches:  trunk
changeset: 502550:635a0a2c2789
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Nov 06 10:36:46 2005 +0000

description:
Import geos from pkgsrc-wip.  Packaged by David Price.

GEOS (Geometry Engine - Open Source) is a C++ port of the Java
Topology Suite (JTS).  It contain the complete functionality of JTS in
C++.  It includes all the OpenGIS "Simple Features for SQL" spatial
predicate functions and spatial operators,and JTS topology functions
like IsValid().

diffstat:

 geography/geos/DESCR            |   5 +++++
 geography/geos/Makefile         |  19 +++++++++++++++++++
 geography/geos/PLIST            |  33 +++++++++++++++++++++++++++++++++
 geography/geos/buildlink3.mk    |  18 ++++++++++++++++++
 geography/geos/distinfo         |   8 ++++++++
 geography/geos/patches/patch-aa |  17 +++++++++++++++++
 geography/geos/patches/patch-ab |  26 ++++++++++++++++++++++++++
 geography/geos/patches/patch-ac |  17 +++++++++++++++++
 8 files changed, 143 insertions(+), 0 deletions(-)

diffs (175 lines):

diff -r d7ef9cabaf3e -r 635a0a2c2789 geography/geos/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/geos/DESCR      Sun Nov 06 10:36:46 2005 +0000
@@ -0,0 +1,5 @@
+GEOS (Geometry Engine - Open Source) is a C++ port of the Java
+Topology Suite (JTS).  It contain the complete functionality of JTS in
+C++.  It includes all the OpenGIS "Simple Features for SQL" spatial
+predicate functions and spatial operators,and JTS topology functions
+like IsValid().
diff -r d7ef9cabaf3e -r 635a0a2c2789 geography/geos/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/geos/Makefile   Sun Nov 06 10:36:46 2005 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+#
+
+DISTNAME=              geos-2.0.0
+CATEGORIES=            geography
+MASTER_SITES=          http://geos.refractions.net/
+EXTRACT_SUFX=          .tar.bz2
+
+MAINTAINER=            mchittur%cs.nmsu.edu@localhost
+HOMEPAGE=              http://geos.refractions.net/
+COMMENT=               C++ port of the Java Topology Suite (JTS)
+
+USE_PKGLOCALEDIR=      yes
+USE_LIBTOOL=           yes
+GNU_CONFIGURE=         yes
+
+USE_LANGUAGES+=                c++
+
+.include "../../mk/bsd.pkg.mk"
diff -r d7ef9cabaf3e -r 635a0a2c2789 geography/geos/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/geos/PLIST      Sun Nov 06 10:36:46 2005 +0000
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+bin/geos-config
+include/geos.h
+include/geos/geom.h
+include/geos/geomUtil.h
+include/geos/geomgraph.h
+include/geos/geomgraphindex.h
+include/geos/geosAlgorithm.h
+include/geos/indexBintree.h
+include/geos/indexChain.h
+include/geos/indexQuadtree.h
+include/geos/indexStrtree.h
+include/geos/indexSweepline.h
+include/geos/io.h
+include/geos/noding.h
+include/geos/nodingSnapround.h
+include/geos/opBuffer.h
+include/geos/opDistance.h
+include/geos/opLinemerge.h
+include/geos/opOverlay.h
+include/geos/opPolygonize.h
+include/geos/opRelate.h
+include/geos/opValid.h
+include/geos/operation.h
+include/geos/planargraph.h
+include/geos/platform.h
+include/geos/precision.h
+include/geos/spatialIndex.h
+include/geos/unload.h
+include/geos/util.h
+include/geos/version.h
+lib/libgeos.la
+@dirrm include/geos
diff -r d7ef9cabaf3e -r 635a0a2c2789 geography/geos/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/geos/buildlink3.mk      Sun Nov 06 10:36:46 2005 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+
+BUILDLINK_DEPTH:=      ${BUILDLINK_DEPTH}+
+GEOS_BUILDLINK3_MK:=   ${GEOS_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+=    geos
+.endif
+
+BUILDLINK_PACKAGES:=   ${BUILDLINK_PACKAGES:Ngeos}
+BUILDLINK_PACKAGES+=   geos
+
+.if !empty(GEOS_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.geos+=       geos>=2.0.0
+BUILDLINK_PKGSRCDIR.geos?=     ../../geography/geos
+.endif # GEOS_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}
diff -r d7ef9cabaf3e -r 635a0a2c2789 geography/geos/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/geos/distinfo   Sun Nov 06 10:36:46 2005 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+
+SHA1 (geos-2.0.0.tar.bz2) = 68ebffa7e18f4edf932e98bd3cf20d58a439c22e
+RMD160 (geos-2.0.0.tar.bz2) = b3873169d215beb3202870618fbefbe96593fa90
+Size (geos-2.0.0.tar.bz2) = 512262 bytes
+SHA1 (patch-aa) = 7b05c8507f9f06ca0492ab8b219aad6922685a4e
+SHA1 (patch-ab) = 2257c2a6bc5448486dcd1826138c1b16b1b78a4f
+SHA1 (patch-ac) = e6fa156825bf9afb7324c63d5cc4c88a88cae96b
diff -r d7ef9cabaf3e -r 635a0a2c2789 geography/geos/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/geos/patches/patch-aa   Sun Nov 06 10:36:46 2005 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-aa,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+
+g++-2.95 needs a bit help on complex type casts.
+
+--- source/geom/LineString.cpp.orig    Thu Jul 22 10:45:50 2004
++++ source/geom/LineString.cpp Thu Apr  7 03:56:53 2005
+@@ -216,8 +216,8 @@ string LineString::getGeometryType() con
+ 
+ bool LineString::isSimple() const {
+       IsSimpleOp iso;
+-      Geometry *in = toInternalGeometry(this);
+-      bool issimple = iso.isSimple((LineString *)in);
++      LineString *in = dynamic_cast<LineString *>(toInternalGeometry(this));
++      bool issimple = iso.isSimple(in);
+       if ( in != this ) delete(in);
+       return issimple;
+ }
diff -r d7ef9cabaf3e -r 635a0a2c2789 geography/geos/patches/patch-ab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/geos/patches/patch-ab   Sun Nov 06 10:36:46 2005 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+
+g++-2.95 needs a bit help on complex type casts.
+
+--- source/geom/MultiLineString.cpp.orig       Thu Jul 22 10:45:50 2004
++++ source/geom/MultiLineString.cpp    Thu Apr  7 03:45:20 2005
+@@ -127,8 +127,8 @@ bool MultiLineString::isClosed() const {
+ 
+ bool MultiLineString::isSimple() const {
+       IsSimpleOp iso;
+-      Geometry *in = toInternalGeometry(this);
+-      bool issimple = iso.isSimple((MultiLineString *)in);
++      MultiLineString *in = dynamic_cast<MultiLineString *>(toInternalGeometry(this));
++      bool issimple = iso.isSimple(in);
+       if ( in != this ) delete(in);
+       return issimple;
+ }
+@@ -137,7 +137,7 @@ Geometry* MultiLineString::getBoundary()
+       if (isEmpty()) {
+               return getFactory()->createGeometryCollection(NULL);
+       }
+-      Geometry *in = toInternalGeometry(this);
++      MultiLineString *in = dynamic_cast<MultiLineString *>(toInternalGeometry(this));
+       GeometryGraph gg(0, in);
+       CoordinateSequence *pts=gg.getBoundaryPoints();
+       if ( in != this ) delete(in);
diff -r d7ef9cabaf3e -r 635a0a2c2789 geography/geos/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/geography/geos/patches/patch-ac   Sun Nov 06 10:36:46 2005 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-ac,v 1.1.1.1 2005/11/06 10:36:46 minskim Exp $
+
+g++-2.95 needs a bit help on complex type casts.
+
+--- source/geom/MultiPoint.cpp.orig    Thu Jul 22 10:45:50 2004
++++ source/geom/MultiPoint.cpp Thu Apr  7 03:46:23 2005
+@@ -117,8 +117,8 @@ Geometry* MultiPoint::getBoundary() cons
+ 
+ bool MultiPoint::isSimple() const {
+       IsSimpleOp iso;
+-      Geometry *in = toInternalGeometry(this);
+-      bool issimple = iso.isSimple((MultiPoint *)in);
++      MultiPoint *in = dynamic_cast<MultiPoint *>(toInternalGeometry(this));
++      bool issimple = iso.isSimple(in);
+       if ( in != this ) delete(in);
+       return issimple;
+ }



Home | Main Index | Thread Index | Old Index