aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/highlight/Makefile
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2004-06-21 09:18:30 +0800
committerijliao <ijliao@FreeBSD.org>2004-06-21 09:18:30 +0800
commitc700e16056a2f18c49bf4064e94e8ae2c63f8054 (patch)
tree2a36ecb65cf53b8f79fd2a449f1172cdde433325 /textproc/highlight/Makefile
parentd39cdfc7a115b2736a0900a927045517617280d5 (diff)
downloadfreebsd-ports-gnome-c700e16056a2f18c49bf4064e94e8ae2c63f8054.tar.gz
freebsd-ports-gnome-c700e16056a2f18c49bf4064e94e8ae2c63f8054.tar.zst
freebsd-ports-gnome-c700e16056a2f18c49bf4064e94e8ae2c63f8054.zip
upgrade to 2.0.25
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>