aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-Text-ASCIITable/Makefile
diff options
context:
space:
mode:
authorLars Thegler <lth@FreeBSD.org>2005-09-27 19:30:07 +0000
committerLars Thegler <lth@FreeBSD.org>2005-09-27 19:30:07 +0000
commitf2d32dba624603ad126117bbd24e4d027059eb0f (patch)
tree5a532032f8266ce289aed4c1006bdf116decf8b7 /textproc/p5-Text-ASCIITable/Makefile
parent42d5dbcff31e75d05010c01d08517dfa275c1055 (diff)
downloadports-f2d32dba624603ad126117bbd24e4d027059eb0f.tar.gz
ports-f2d32dba624603ad126117bbd24e4d027059eb0f.zip
Notes
Diffstat (limited to 'textproc/p5-Text-ASCIITable/Makefile')
-rw-r--r--textproc/p5-Text-ASCIITable/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/textproc/p5-Text-ASCIITable/Makefile b/textproc/p5-Text-ASCIITable/Makefile
index 65f6736ffce6..bfaa3b08f88b 100644
--- a/textproc/p5-Text-ASCIITable/Makefile
+++ b/textproc/p5-Text-ASCIITable/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= Text-ASCIITable
-PORTVERSION= 0.16
+PORTVERSION= 0.17
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Text
@@ -20,4 +20,16 @@ PERL_CONFIGURE= yes
MAN3= Text::ASCIITable.3 \
Text::ASCIITable::Wrap.3
+post-extract:
+ @${MKDIR} ${WRKSRC}/example
+ @${MV} ${WRKSRC}/ansi-example.pl ${WRKSRC}/example
+ @${PERL} -pi -e '$$_="" if m|ansi-example.pl|' ${WRKSRC}/MANIFEST
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${EXAMPLESDIR}
+ @${INSTALL_SCRIPT} ${WRKSRC}/example/ansi-example.pl ${EXAMPLESDIR}
+ @${ECHO_MSG} "===> Example installed in ${EXAMPLESDIR}."
+.endif
+
.include <bsd.port.mk>