Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 May 2013 16:47:40 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r319273 - in head/astro: . osmium osmium/files
Message-ID:  <201305271647.r4RGlem8072289@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon May 27 16:47:39 2013
New Revision: 319273
URL: http://svnweb.freebsd.org/changeset/ports/319273

Log:
  Osmium is a C++ framework for working with OSM data files. Osmium
  can read OSM data in XML or binary format (PBF) and can call different
  handlers for each OSM object.
  
  WWW: http://wiki.openstreetmap.org/wiki/Osmium

Added:
  head/astro/osmium/
  head/astro/osmium/Makefile   (contents, props changed)
  head/astro/osmium/distinfo   (contents, props changed)
  head/astro/osmium/files/
  head/astro/osmium/files/patch-test-run_tests.sh   (contents, props changed)
  head/astro/osmium/pkg-descr   (contents, props changed)
  head/astro/osmium/pkg-plist   (contents, props changed)
Modified:
  head/astro/Makefile

Modified: head/astro/Makefile
==============================================================================
--- head/astro/Makefile	Mon May 27 16:46:45 2013	(r319272)
+++ head/astro/Makefile	Mon May 27 16:47:39 2013	(r319273)
@@ -51,6 +51,7 @@
     SUBDIR += openmap
     SUBDIR += openuniverse
     SUBDIR += orsa
+    SUBDIR += osmium
     SUBDIR += osmosis
     SUBDIR += p5-Astro
     SUBDIR += p5-Astro-ADS

Added: head/astro/osmium/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/osmium/Makefile	Mon May 27 16:47:39 2013	(r319273)
@@ -0,0 +1,73 @@
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	osmium
+PORTVERSION=	git20130522
+CATEGORIES=	astro geography devel
+
+MAINTAINER=	amdmi3@FreeBSD.org
+COMMENT=	C++/Javascript framework for working with OSM files
+
+LICENSE=	GPLv3 LGPL3
+LICENSE_COMB=	dual
+
+LIB_DEPENDS=	gdal:${PORTSDIR}/graphics/gdal \
+		boost_regex:${PORTSDIR}/devel/boost-libs \
+		sqlite3:${PORTSDIR}/databases/sqlite3 \
+		expat:${PORTSDIR}/textproc/expat2 \
+		geos:${PORTSDIR}/graphics/geos \
+		protobuf:${PORTSDIR}/devel/protobuf
+BUILD_DEPENDS=	google-sparsehash>=2.0.2:${PORTSDIR}/devel/google-sparsehash
+RUN_DEPENDS=	google-sparsehash>=2.0.2:${PORTSDIR}/devel/google-sparsehash
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	joto
+GH_TAGNAME=	${GH_COMMIT}
+GH_COMMIT=	1a5bb26
+
+CXXFLAGS+=	-I${LOCALBASE}/include \
+		-L${LOCALBASE}/lib
+
+PORTDOCS=	*
+
+OPTIONS_DEFINE=	JAVASCRIPT DOXYGEN DOCS
+OPTIONS_DEFAULT=JAVASCRIPT DOCS
+JAVASCRIPT_DESC=Enable javascript support
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MJAVASCRIPT}
+LIB_DEPENDS+=	v8:${PORTSDIR}/lang/v8 \
+		shp:${PORTSDIR}/devel/shapelib \
+		icuuc:${PORTSDIR}/devel/icu
+.endif
+
+.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS}
+BUILD_DEPENDS+=	doxygen:${PORTSDIR}/devel/doxygen
+.endif
+
+do-build:
+.if ${PORT_OPTIONS:MDOXYGEN} && ${PORT_OPTIONS:MDOCS}
+	cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
+		${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKR_ARGS} doc
+.else
+	${DO_NADA}
+.endif
+
+regression-test:
+	cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} ${SH} run_tests.sh
+
+do-install:
+	cd ${WRKSRC}/include && ${COPYTREE_SHARE} '${PORTNAME} ${PORTNAME}.hpp' \
+		${PREFIX}/include/
+.if ${PORT_OPTIONS:MDOCS}
+post-install:
+	${MKDIR} ${DOCSDIR}
+.if ${PORT_OPTIONS:MDOXYGEN}
+	cd ${WRKSRC}/doc && ${COPYTREE_SHARE} html ${DOCSDIR}/
+.endif
+	${INSTALL_DATA} ${WRKSRC}/README ${WRKSRC}/THANKS \
+		${WRKSRC}/NOTES_FOR_DEVELOPERS ${DOCSDIR}/
+.endif
+
+.include <bsd.port.mk>

Added: head/astro/osmium/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/osmium/distinfo	Mon May 27 16:47:39 2013	(r319273)
@@ -0,0 +1,2 @@
+SHA256 (osmium-git20130522.tar.gz) = 4d2b79245297091cb25c2d6f57c5c32d455f65afb1285d7a120bae7c4ee4aabf
+SIZE (osmium-git20130522.tar.gz) = 149382

Added: head/astro/osmium/files/patch-test-run_tests.sh
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/osmium/files/patch-test-run_tests.sh	Mon May 27 16:47:39 2013	(r319273)
@@ -0,0 +1,15 @@
+--- test/run_tests.sh.orig	2013-05-09 19:20:50.000000000 +0400
++++ test/run_tests.sh	2013-05-23 00:01:42.140354335 +0400
+@@ -10,8 +10,10 @@
+ 
+ set -e
+ 
+-CXX="g++"
+-CXXFLAGS="-g -Wall -Wextra -Wredundant-decls -Wdisabled-optimization -pedantic -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wno-long-long"
++if [ -z "$CXX" ]; then
++	CXX="g++"
++fi
++CXXFLAGS="$CXXFLAGS -g -Wall -Wextra -Wredundant-decls -Wdisabled-optimization -pedantic -Wctor-dtor-privacy -Wnon-virtual-dtor -Woverloaded-virtual -Wsign-promo -Wno-long-long"
+ COMPILE="$CXX -I../include -I. $CXXFLAGS -o tests"
+ 
+ if [ "x$1" = "x-v" ]; then

Added: head/astro/osmium/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/osmium/pkg-descr	Mon May 27 16:47:39 2013	(r319273)
@@ -0,0 +1,5 @@
+Osmium is a C++ framework for working with OSM data files. Osmium
+can read OSM data in XML or binary format (PBF) and can call different
+handlers for each OSM object.
+
+WWW: http://wiki.openstreetmap.org/wiki/Osmium

Added: head/astro/osmium/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/astro/osmium/pkg-plist	Mon May 27 16:47:39 2013	(r319273)
@@ -0,0 +1,94 @@
+include/osmium.hpp
+include/osmium/debug.hpp
+include/osmium/export.hpp
+include/osmium/export/csv.hpp
+include/osmium/export/shapefile.hpp
+include/osmium/geometry.hpp
+include/osmium/geometry/from_way.hpp
+include/osmium/geometry/geos.hpp
+include/osmium/geometry/haversine.hpp
+include/osmium/geometry/linestring.hpp
+include/osmium/geometry/multipolygon.hpp
+include/osmium/geometry/null.hpp
+include/osmium/geometry/ogr.hpp
+include/osmium/geometry/ogr_multipolygon.hpp
+include/osmium/geometry/point.hpp
+include/osmium/geometry/polygon.hpp
+include/osmium/geometry/shplib.hpp
+include/osmium/handler.hpp
+include/osmium/handler/coordinates_for_ways.hpp
+include/osmium/handler/debug.hpp
+include/osmium/handler/endtime.hpp
+include/osmium/handler/find_bbox.hpp
+include/osmium/handler/progress.hpp
+include/osmium/handler/range_from_history.hpp
+include/osmium/input.hpp
+include/osmium/input/pbf.hpp
+include/osmium/input/xml.hpp
+include/osmium/javascript.hpp
+include/osmium/javascript/handler.hpp
+include/osmium/javascript/template.hpp
+include/osmium/javascript/unicode.hpp
+include/osmium/javascript/wrapper/export_csv.hpp
+include/osmium/javascript/wrapper/export_shapefile.hpp
+include/osmium/javascript/wrapper/geometry.hpp
+include/osmium/javascript/wrapper/osm.hpp
+include/osmium/javascript/wrapper/position.hpp
+include/osmium/multipolygon/assembler.hpp
+include/osmium/multipolygon/builder.hpp
+include/osmium/osm.hpp
+include/osmium/osm/area.hpp
+include/osmium/osm/bounds.hpp
+include/osmium/osm/meta.hpp
+include/osmium/osm/node.hpp
+include/osmium/osm/object.hpp
+include/osmium/osm/position.hpp
+include/osmium/osm/relation.hpp
+include/osmium/osm/relation_member.hpp
+include/osmium/osm/relation_member_list.hpp
+include/osmium/osm/segment.hpp
+include/osmium/osm/tag.hpp
+include/osmium/osm/tag_list.hpp
+include/osmium/osm/tag_ostream.hpp
+include/osmium/osm/types.hpp
+include/osmium/osm/undirected_segment.hpp
+include/osmium/osm/way.hpp
+include/osmium/osm/way_node.hpp
+include/osmium/osm/way_node_list.hpp
+include/osmium/osmfile.hpp
+include/osmium/output.hpp
+include/osmium/output/pbf.hpp
+include/osmium/output/xml.hpp
+include/osmium/relations/assembler.hpp
+include/osmium/relations/relation_info.hpp
+include/osmium/smart_ptr.hpp
+include/osmium/storage/byid.hpp
+include/osmium/storage/byid/fixed_array.hpp
+include/osmium/storage/byid/mmap_anon.hpp
+include/osmium/storage/byid/mmap_file.hpp
+include/osmium/storage/byid/sparse_table.hpp
+include/osmium/storage/byid/vector.hpp
+include/osmium/storage/objectstore.hpp
+include/osmium/tags/key_filter.hpp
+include/osmium/tags/key_value_filter.hpp
+include/osmium/tags/regex_filter.hpp
+include/osmium/tags/to_string.hpp
+include/osmium/utils/delta.hpp
+include/osmium/utils/filter_and_accumulate.hpp
+include/osmium/utils/stringtable.hpp
+include/osmium/utils/timestamp.hpp
+@dirrm include/osmium/utils
+@dirrm include/osmium/tags
+@dirrm include/osmium/storage/byid
+@dirrm include/osmium/storage
+@dirrm include/osmium/relations
+@dirrm include/osmium/output
+@dirrm include/osmium/osm
+@dirrm include/osmium/multipolygon
+@dirrm include/osmium/javascript/wrapper
+@dirrm include/osmium/javascript
+@dirrm include/osmium/input
+@dirrm include/osmium/handler
+@dirrm include/osmium/geometry
+@dirrm include/osmium/export
+@dirrm include/osmium



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305271647.r4RGlem8072289>