aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/p5-Sys-Hostname-Long/Makefile11
-rw-r--r--sysutils/p5-Sys-Hostname-Long/distinfo4
-rw-r--r--sysutils/p5-Sys-Hostname-Long/pkg-plist8
3 files changed, 18 insertions, 5 deletions
diff --git a/sysutils/p5-Sys-Hostname-Long/Makefile b/sysutils/p5-Sys-Hostname-Long/Makefile
index b04f1fd8f83e..536209f25ea9 100644
--- a/sysutils/p5-Sys-Hostname-Long/Makefile
+++ b/sysutils/p5-Sys-Hostname-Long/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= Sys-Hostname-Long
-PORTVERSION= 1.0
+PORTVERSION= 1.2
CATEGORIES= sysutils perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Sys
@@ -19,4 +19,11 @@ PERL_CONFIGURE= yes
MAN3= Sys::Hostname::Long.3
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PERL_LEVEL} < 500600
+post-patch:
+ @${PERL} -i -pe 's/}\(/}->(/' ${WRKSRC}/lib/Sys/Hostname/Long.pm
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/sysutils/p5-Sys-Hostname-Long/distinfo b/sysutils/p5-Sys-Hostname-Long/distinfo
index 9a787c25e605..a5ccdc711d39 100644
--- a/sysutils/p5-Sys-Hostname-Long/distinfo
+++ b/sysutils/p5-Sys-Hostname-Long/distinfo
@@ -1,2 +1,2 @@
-MD5 (Sys-Hostname-Long-1.0.tar.gz) = 7d045eb6992aee27df12be696252a94e
-SIZE (Sys-Hostname-Long-1.0.tar.gz) = 2286
+MD5 (Sys-Hostname-Long-1.2.tar.gz) = ae0fb8b0ed821ae2fc8e8009b8732978
+SIZE (Sys-Hostname-Long-1.2.tar.gz) = 4567
diff --git a/sysutils/p5-Sys-Hostname-Long/pkg-plist b/sysutils/p5-Sys-Hostname-Long/pkg-plist
index 8d7f15c0eb5b..c4a4b75b68f2 100644
--- a/sysutils/p5-Sys-Hostname-Long/pkg-plist
+++ b/sysutils/p5-Sys-Hostname-Long/pkg-plist
@@ -1,2 +1,8 @@
%%SITE_PERL%%/Sys/Hostname/Long.pm
-@dirrm %%SITE_PERL%%/Sys/Hostname
+%%SITE_PERL%%/Sys/Hostname/testall.pl
+%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/Long/.packlist
+@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname/Long
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys/Hostname 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/Sys 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Sys/Hostname 2>/dev/null || true
+@unexec rmdir %D/%%SITE_PERL%%/Sys 2>/dev/null || true