aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-Text-ASCIITable/Makefile
diff options
context:
space:
mode:
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>