svn commit: r375257 - in head/www: . gpx2map
Pawel Pekala
pawel at FreeBSD.org
Mon Dec 22 18:12:19 UTC 2014
Author: pawel
Date: Mon Dec 22 18:12:17 2014
New Revision: 375257
URL: https://svnweb.freebsd.org/changeset/ports/375257
QAT: https://qat.redports.org/buildarchive/r375257/
Log:
Reads a gps track in GPX format and writes out an Google Map or OpenStreetMaps
mash-up containing the route and additional information.
WWW: https://github.com/sd2k9/gpx2map
PR: 195367
Submitted by: Nikola Kolev <koue at chaosophia.net>
Added:
head/www/gpx2map/
head/www/gpx2map/Makefile (contents, props changed)
head/www/gpx2map/distinfo (contents, props changed)
head/www/gpx2map/pkg-descr (contents, props changed)
Modified:
head/www/Makefile
Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile Mon Dec 22 18:11:00 2014 (r375256)
+++ head/www/Makefile Mon Dec 22 18:12:17 2014 (r375257)
@@ -224,6 +224,7 @@
SUBDIR += google-sitemapgen
SUBDIR += googlebook_dl
SUBDIR += goose
+ SUBDIR += gpx2map
SUBDIR += grafana
SUBDIR += grails
SUBDIR += gregarius
Added: head/www/gpx2map/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/gpx2map/Makefile Mon Dec 22 18:12:17 2014 (r375257)
@@ -0,0 +1,48 @@
+# $FreeBSD$
+
+PORTNAME= gpx2map
+PORTVERSION= 0.1
+CATEGORIES= www
+
+MAINTAINER= koue at chaosophia.net
+COMMENT= Put GPX track on Google Map or OpenStreetMap
+
+LICENSE= GPLv3
+
+RUN_DEPENDS= p5-XML-Twig>=0:${PORTSDIR}/textproc/p5-XML-Twig \
+ p5-Template-Toolkit>=0:${PORTSDIR}/www/p5-Template-Toolkit \
+ p5-Geo-Distance>=0:${PORTSDIR}/math/p5-Geo-Distance
+
+USE_GITHUB= yes
+GH_ACCOUNT= sd2k9
+GH_COMMIT= 5ab24c4
+GH_TAGNAME= ${PORTVERSION}
+
+USES= shebangfix perl5
+SHEBANG_FILES= gpx2map
+NO_BUILD= yes
+DATADIR= ${PREFIX}/share/${PORTNAME}
+
+PLIST_FILES= bin/gpx2map \
+ share/gpx2map/gpx2map.google.template \
+ share/gpx2map/gpx2map.osm.template
+
+OPTIONS_DEFINE= GNUPLOT
+
+GNUPLOT_DESC= Enable draw track profiles
+GNUPLOT_RUN_DEPENDS= p5-Chart-Gnuplot>=0:${PORTSDIR}/graphics/p5-Chart-Gnuplot
+
+post-patch:
+ @${REINPLACE_CMD} -e "s|gpx2map.google.template|${DATADIR}/gpx2map.google.template|" \
+ -e "s|gpx2map.osm.template|${DATADIR}/gpx2map.osm.template|" \
+ -e "s|.FindBin::RealBin/.opts{'map_template_google'}|${DATADIR}/gpx2map.google.template|" \
+ -e "s|.FindBin::RealBin/.opts{'map_template_osm'}|${DATADIR}/gpx2map.osm.template|" \
+ ${WRKSRC}/gpx2map
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/gpx2map ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/gpx2map.google.template ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/gpx2map.osm.template ${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>
Added: head/www/gpx2map/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/gpx2map/distinfo Mon Dec 22 18:12:17 2014 (r375257)
@@ -0,0 +1,2 @@
+SHA256 (gpx2map-0.1.tar.gz) = adeaff2c6b8c4228476fbc067e346fcb01909d5f73975bac8859b2b47f15b538
+SIZE (gpx2map-0.1.tar.gz) = 106886
Added: head/www/gpx2map/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/www/gpx2map/pkg-descr Mon Dec 22 18:12:17 2014 (r375257)
@@ -0,0 +1,4 @@
+Reads a gps track in GPX format and writes out an Google Map or OpenStreetMaps
+mash-up containing the route and additional information.
+
+WWW: https://github.com/sd2k9/gpx2map
More information about the svn-ports-all
mailing list