From 2ba5f7b3e44b25f4515c6286842d3e843b8d9ba5 Mon Sep 17 00:00:00 2001 From: krion Date: Fri, 23 Jul 2004 07:58:58 +0000 Subject: Install additional documentation. Requested by: Nicolas Rachinsky --- textproc/libtre/Makefile | 9 +++++++++ textproc/libtre/pkg-plist | 3 +++ 2 files changed, 12 insertions(+) (limited to 'textproc/libtre') diff --git a/textproc/libtre/Makefile b/textproc/libtre/Makefile index 713becb9d6f0..1816d9af44d6 100644 --- a/textproc/libtre/Makefile +++ b/textproc/libtre/Makefile @@ -8,6 +8,7 @@ PORTNAME= libtre PORTVERSION= 0.6.8 +PORTREVISION= 1 CATEGORIES= textproc MASTER_SITES= http://laurikari.net/tre/ DISTNAME= tre-${PORTVERSION} @@ -49,4 +50,12 @@ pre-everything:: post-patch: @${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for i in tre-api.html tre-syntax.html + ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR} +.endfor +.endif + .include diff --git a/textproc/libtre/pkg-plist b/textproc/libtre/pkg-plist index 5beac9323ce2..c88d9c407a45 100644 --- a/textproc/libtre/pkg-plist +++ b/textproc/libtre/pkg-plist @@ -7,4 +7,7 @@ lib/libtre.so lib/libtre.so.5 libdata/pkgconfig/tre.pc %%NLS%%share/locale/fi/LC_MESSAGES/tre.mo +%%PORTDOCS%%%%DOCSDIR%%/tre-api.html +%%PORTDOCS%%%%DOCSDIR%%/tre-syntax.html @dirrm include/tre +%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit