diff options
author | mat <mat@FreeBSD.org> | 2004-12-06 18:49:10 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2004-12-06 18:49:10 +0800 |
commit | 0d1cdbc56dd8b470c712a133c2ef69914431ea11 (patch) | |
tree | bd7eadffe86ae4c48f9c4cf5b77982af7406dc41 /devel | |
parent | 0b75bc97dfce24964c1390f0d4ae977643363bae (diff) | |
download | freebsd-ports-gnome-0d1cdbc56dd8b470c712a133c2ef69914431ea11.tar.gz freebsd-ports-gnome-0d1cdbc56dd8b470c712a133c2ef69914431ea11.tar.zst freebsd-ports-gnome-0d1cdbc56dd8b470c712a133c2ef69914431ea11.zip |
Update to 0.07
Install some docs and some examples
Diffstat (limited to 'devel')
-rw-r--r-- | devel/p5-File-Modified/Makefile | 20 | ||||
-rw-r--r-- | devel/p5-File-Modified/distinfo | 4 | ||||
-rw-r--r-- | devel/p5-File-Modified/pkg-plist | 6 |
3 files changed, 24 insertions, 6 deletions
diff --git a/devel/p5-File-Modified/Makefile b/devel/p5-File-Modified/Makefile index 2ac33282e8f5..0a64cb2e7106 100644 --- a/devel/p5-File-Modified/Makefile +++ b/devel/p5-File-Modified/Makefile @@ -4,7 +4,7 @@ # $FreeBSD$ PORTNAME= File-Modified -PORTVERSION= 0.06 +PORTVERSION= 0.07 PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} @@ -21,14 +21,28 @@ PERL_CONFIGURE= yes MAN3= File::Modified.3 +.if !defined(NOPORTDOCS) +PORTDOCS= Changes README bug.txt +EXAMPLES= example/1.pl example/Export.cfg example/Import.cfg + +post-install: + @${MKDIR} ${DOCSDIR} ${EXAMPLESDIR} + @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} + @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}." + @${INSTALL_DATA} ${EXAMPLES:S|^|${WRKSRC}/|} ${EXAMPLESDIR} + @${ECHO_MSG} "===> Examples installed in ${EXAMPLESDIR}." +.endif + .include <bsd.port.pre.mk> .if ${PERL_LEVEL} < 500800 BUILD_DEPENDS+= ${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \ ${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 -.endif +.if ${PERL_LEVEL} < 500600 post-patch: - ${PERL} -pi -e 's/\r\n/\n/;' -e 's/^use warnings;//' ${WRKSRC}/Modified.pm + @${PERL} -pi -e 's/\r\n/\n/;' -e 's/^use warnings;//' ${WRKSRC}/lib/File/Modified.pm +.endif +.endif .include <bsd.port.post.mk> diff --git a/devel/p5-File-Modified/distinfo b/devel/p5-File-Modified/distinfo index b5d276109efa..30b4e740f8e0 100644 --- a/devel/p5-File-Modified/distinfo +++ b/devel/p5-File-Modified/distinfo @@ -1,2 +1,2 @@ -MD5 (File-Modified-0.06.tar.gz) = d1fe91da113dfe9e96952f04dcaae5e4 -SIZE (File-Modified-0.06.tar.gz) = 6271 +MD5 (File-Modified-0.07.tar.gz) = 271a991b96ccbdaeb7098272c9f97d51 +SIZE (File-Modified-0.07.tar.gz) = 7164 diff --git a/devel/p5-File-Modified/pkg-plist b/devel/p5-File-Modified/pkg-plist index c84757d19461..8844a3fb33a9 100644 --- a/devel/p5-File-Modified/pkg-plist +++ b/devel/p5-File-Modified/pkg-plist @@ -1,5 +1,9 @@ -%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Modified/.packlist %%SITE_PERL%%/File/Modified.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Modified/.packlist +%%PORTDOCS%%%%EXAMPLESDIR%%/1.pl +%%PORTDOCS%%%%EXAMPLESDIR%%/Export.cfg +%%PORTDOCS%%%%EXAMPLESDIR%%/Import.cfg +%%PORTDOCS%%@dirrm %%EXAMPLESDIR%% @dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/File/Modified @unexec rmdir %D/%%SITE_PERL%%/%%PERL_ARCH%%/auto/File 2>/dev/null || true @unexec rmdir %D/%%SITE_PERL%%/File 2>/dev/null || true |