aboutsummaryrefslogtreecommitdiff
path: root/textproc/highlight/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/highlight/Makefile')
-rw-r--r--textproc/highlight/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/textproc/highlight/Makefile b/textproc/highlight/Makefile
index d5a1df3d16f5..d3df3ae62d2a 100644
--- a/textproc/highlight/Makefile
+++ b/textproc/highlight/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= highlight
-PORTVERSION= 2.0.23
-PORTEPOCH= 1
+PORTVERSION= 2.0.25
+PORTEPOCH= 0
CATEGORIES= textproc
MASTER_SITES= http://www.andre-simon.de/zip/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}
@@ -27,9 +27,17 @@ MAKE_ARGS= CC="${CXX}" \
LDFLAGS="${LDFLAGS}"
ALL_TARGET= ${PORTNAME}
+PLIST_FILES= bin/highlight
+
MAN1= ${PORTNAME}.1
MANCOMPRESSED= yes
+.if !defined(NOPORTDOCS)
+PORTDOCS= *
+.endif
+
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e \
's|/usr/share/highlight|${DATADIR}|' ${WRKSRC}/datadir.cpp
@@ -56,4 +64,12 @@ do-install:
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+post-install:
+.for dir in ${PREFIX}/share/${PORTNAME} ${PREFIX}/share/examples/${PORTNAME}
+ @${FIND} ${dir} ! -type d | \
+ ${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
+ @${FIND} ${dir} -type d | ${SORT} -r | \
+ ${SED} 's,^${PREFIX}/,@dirrm ,' >> ${TMPPLIST}
+.endfor
+
+.include <bsd.port.post.mk>