summaryrefslogtreecommitdiff
path: root/net/p5-Net-Google
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-01-30 04:30:45 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-01-30 04:30:45 +0000
commite0005bce584d50c53dcd0a0a2595c8b80c957d22 (patch)
tree5e8b42c789a47f62cdb67efb51486b8ca020655e /net/p5-Net-Google
parentUpdate to the latest variant from the project CVS (diff)
Maintainer update net/p5-Net-Google to 0.52
update to 0.52 add dependency on File::Spec for perl < 5.6 PR: ports/47293 Submitted by: Erwin Lansing <erwin@lansing.dk>
Notes
Notes: svn path=/head/; revision=74241
Diffstat (limited to 'net/p5-Net-Google')
-rw-r--r--net/p5-Net-Google/Makefile18
-rw-r--r--net/p5-Net-Google/distinfo2
-rw-r--r--net/p5-Net-Google/pkg-plist1
3 files changed, 17 insertions, 4 deletions
diff --git a/net/p5-Net-Google/Makefile b/net/p5-Net-Google/Makefile
index 609893fa3a8f..c24215e58743 100644
--- a/net/p5-Net-Google/Makefile
+++ b/net/p5-Net-Google/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= Net-Google
-PORTVERSION= 0.5
+PORTVERSION= 0.52
CATEGORIES= net perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Net
@@ -20,7 +20,19 @@ RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= Net::Google.3 Net::Google::Cache.3 Net::Google::Response.3 \
- Net::Google::Search.3 Net::Google::Spelling.3
+ Net::Google::Search.3 Net::Google::Spelling.3 \
+ Net::Google::Service.3
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+SITE_PERL?= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
+
+PERL_MAJOR=${PERL_VER:C|^([1-9]+).*|\1|}
+PERL_MINOR=${PERL_VER:C|^[1-9]+\.0*([1-9]+).*|\1|}
+
+.if ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 6
+BUILD_DEPENDS+= ${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
+.endif # ${PERL_MAJOR} < 5 || ${PERL_MAJOR} == 5 && ${PERL_MINOR} < 6
+
+.include <bsd.port.post.mk>
diff --git a/net/p5-Net-Google/distinfo b/net/p5-Net-Google/distinfo
index c3ed59cb9a47..310cd0e6244f 100644
--- a/net/p5-Net-Google/distinfo
+++ b/net/p5-Net-Google/distinfo
@@ -1 +1 @@
-MD5 (Net-Google-0.5.tar.gz) = 9761c8b8c94074e436d390cba7795fad
+MD5 (Net-Google-0.52.tar.gz) = 2fa8826cb347d79a123405be66fcb0db
diff --git a/net/p5-Net-Google/pkg-plist b/net/p5-Net-Google/pkg-plist
index 6ab138c20972..22a3d9aacf06 100644
--- a/net/p5-Net-Google/pkg-plist
+++ b/net/p5-Net-Google/pkg-plist
@@ -3,6 +3,7 @@ lib/perl5/site_perl/%%PERL_VER%%/Net/Google.pm
lib/perl5/site_perl/%%PERL_VER%%/Net/Google/Cache.pm
lib/perl5/site_perl/%%PERL_VER%%/Net/Google/Response.pm
lib/perl5/site_perl/%%PERL_VER%%/Net/Google/Search.pm
+lib/perl5/site_perl/%%PERL_VER%%/Net/Google/Service.pm
lib/perl5/site_perl/%%PERL_VER%%/Net/Google/Services/GoogleSearch.wsdl
lib/perl5/site_perl/%%PERL_VER%%/Net/Google/Spelling.pm
@dirrm lib/perl5/site_perl/%%PERL_VER%%/Net/Google/Services