aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorleeym <leeym@FreeBSD.org>2008-11-09 02:05:28 +0800
committerleeym <leeym@FreeBSD.org>2008-11-09 02:05:28 +0800
commit01b93e0e3b2802cdfa49d4da2a118d9d761018ba (patch)
tree0c826b47b6b017d16b7c2a3016eb540bf2db5777 /www
parent8504ebb7f9cc06e50972991a61a38016a44e3d11 (diff)
downloadfreebsd-ports-gnome-01b93e0e3b2802cdfa49d4da2a118d9d761018ba.tar.gz
freebsd-ports-gnome-01b93e0e3b2802cdfa49d4da2a118d9d761018ba.tar.zst
freebsd-ports-gnome-01b93e0e3b2802cdfa49d4da2a118d9d761018ba.zip
- add HTML::GoogleMaps 6
HTML::GoogleMaps provides a simple wrapper around the Google Maps API. It allows you to easily create maps with markers, polylines and information windows. Thanks to Geo::Coder::Google you can now look up locations around the world without having to install a local database. WWW: http://search.cpan.org/dist/HTML-GoogleMaps/
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/p5-HTML-GoogleMaps/Makefile28
-rw-r--r--www/p5-HTML-GoogleMaps/distinfo3
-rw-r--r--www/p5-HTML-GoogleMaps/files/patch-lib__HTML__GoogleMaps.pm38
-rw-r--r--www/p5-HTML-GoogleMaps/pkg-descr6
-rw-r--r--www/p5-HTML-GoogleMaps/pkg-plist5
6 files changed, 81 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 3fa97cd37526..62c00a1444a5 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -806,6 +806,7 @@
SUBDIR += p5-HTML-FormFu-Model-DBIC
SUBDIR += p5-HTML-FromANSI
SUBDIR += p5-HTML-FromText
+ SUBDIR += p5-HTML-GoogleMaps
SUBDIR += p5-HTML-Highlight
SUBDIR += p5-HTML-LinkExtractor
SUBDIR += p5-HTML-Lint
diff --git a/www/p5-HTML-GoogleMaps/Makefile b/www/p5-HTML-GoogleMaps/Makefile
new file mode 100644
index 000000000000..193b6dd5cb55
--- /dev/null
+++ b/www/p5-HTML-GoogleMaps/Makefile
@@ -0,0 +1,28 @@
+# ex:ts=8
+# Ports collection makefile for: HTML::GoogleMaps
+# Date created: 2008-11-06
+# Whom: Yen-Ming Lee <leeym@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= HTML-GoogleMaps
+PORTVERSION= 6
+CATEGORIES= www perl5
+MASTER_SITES= CPAN
+PKGNAMEPREFIX= p5-
+
+MAINTAINER= leeym@FreeBSD.org
+COMMENT= A simple wrapper around the Google Maps API
+
+RUN_DEPENDS= p5-Geo-Coder-Google>=0.02:${PORTSDIR}/misc/p5-Geo-Coder-Google
+BUILD_DEPENDS= ${RUN_DEPENDS}
+
+PERL_CONFIGURE= yes
+
+MAN3= HTML::GoogleMaps.3
+
+post-patch:
+ @${FIND} ${WRKSRC} -name "*.orig" -delete
+
+.include <bsd.port.mk>
diff --git a/www/p5-HTML-GoogleMaps/distinfo b/www/p5-HTML-GoogleMaps/distinfo
new file mode 100644
index 000000000000..d4446153def9
--- /dev/null
+++ b/www/p5-HTML-GoogleMaps/distinfo
@@ -0,0 +1,3 @@
+MD5 (HTML-GoogleMaps-6.tar.gz) = 1e1f31e0a4cc48d7a1a80e897deef2a7
+SHA256 (HTML-GoogleMaps-6.tar.gz) = 3143091df5516dc6b32c10eb9f26910cd9b6164b45c5ab6090181922dd55fe3e
+SIZE (HTML-GoogleMaps-6.tar.gz) = 6890
diff --git a/www/p5-HTML-GoogleMaps/files/patch-lib__HTML__GoogleMaps.pm b/www/p5-HTML-GoogleMaps/files/patch-lib__HTML__GoogleMaps.pm
new file mode 100644
index 000000000000..468d15311917
--- /dev/null
+++ b/www/p5-HTML-GoogleMaps/files/patch-lib__HTML__GoogleMaps.pm
@@ -0,0 +1,38 @@
+--- lib/HTML/GoogleMaps.pm.orig 2006-12-05 20:53:34.000000000 -0800
++++ lib/HTML/GoogleMaps.pm 2008-11-08 01:38:54.000000000 -0800
+@@ -41,6 +41,8 @@
+
+ =item width => width in pixels
+
++=item ua => UserAgent object used internally
++
+ =back
+
+ =back
+@@ -83,7 +85,7 @@
+ =item $map->add_icon(name => $icon_name,
+ image => $image_url,
+ shadow => $shadow_url,
+- image_size => [ $width, $height ],
++ icon_size => [ $width, $height ],
+ shadow_size => [ $width, $height ],
+ icon_anchor => [ $x, $y ],
+ info_window_anchor => [ $x, $y ]);
+@@ -155,7 +157,7 @@
+ %opts,
+ points => [],
+ poly_lines => [],
+- geocoder => Geo::Coder::Google->new(apikey => $opts{key}),
++ geocoder => Geo::Coder::Google->new(apikey => $opts{key}, ($opts{ua} ? (ua => $opts{ua}) : ())),
+ }, $class;
+ }
+
+@@ -347,7 +349,7 @@
+ );
+
+ my $text = <<SCRIPT;
+- <script type=\"text/javascript\" />
++ <script type=\"text/javascript\">
+ //<![CDATA[
+
+ if (GBrowserIsCompatible()) {
diff --git a/www/p5-HTML-GoogleMaps/pkg-descr b/www/p5-HTML-GoogleMaps/pkg-descr
new file mode 100644
index 000000000000..c307de228bdc
--- /dev/null
+++ b/www/p5-HTML-GoogleMaps/pkg-descr
@@ -0,0 +1,6 @@
+HTML::GoogleMaps provides a simple wrapper around the Google Maps API. It
+allows you to easily create maps with markers, polylines and information
+windows. Thanks to Geo::Coder::Google you can now look up locations around
+the world without having to install a local database.
+
+WWW: http://search.cpan.org/dist/HTML-GoogleMaps/
diff --git a/www/p5-HTML-GoogleMaps/pkg-plist b/www/p5-HTML-GoogleMaps/pkg-plist
new file mode 100644
index 000000000000..46ff943c3170
--- /dev/null
+++ b/www/p5-HTML-GoogleMaps/pkg-plist
@@ -0,0 +1,5 @@
+%%SITE_PERL%%/HTML/GoogleMaps.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/GoogleMaps/.packlist
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML/GoogleMaps
+@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/HTML
+@dirrmtry %%SITE_PERL%%/HTML