aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritetcu <itetcu@FreeBSD.org>2008-11-19 01:09:37 +0800
committeritetcu <itetcu@FreeBSD.org>2008-11-19 01:09:37 +0800
commit18066e669f69c81c948190c0db560f91256776fa (patch)
tree02f528411e970a312f9f7ea572f34ebe47513a1a
parentd5bfc5c08d71d62de98e4249bb5587297292b6a1 (diff)
downloadfreebsd-ports-gnome-18066e669f69c81c948190c0db560f91256776fa.tar.gz
freebsd-ports-gnome-18066e669f69c81c948190c0db560f91256776fa.tar.zst
freebsd-ports-gnome-18066e669f69c81c948190c0db560f91256776fa.zip
- use DOCSDIR
- fix plist for -DNOPORTDOCS - bump PORTREVISION Approved by: maintainer timeout on QAT BotMail Prompted by: QAT QA run
-rw-r--r--math/dcdflib/Makefile9
-rw-r--r--math/dcdflib/pkg-plist8
2 files changed, 10 insertions, 7 deletions
diff --git a/math/dcdflib/Makefile b/math/dcdflib/Makefile
index 47a5d518a494..d2c0f6d3b2ec 100644
--- a/math/dcdflib/Makefile
+++ b/math/dcdflib/Makefile
@@ -7,6 +7,7 @@
PORTNAME= dcdflib.c
PORTVERSION= 1.1
+PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= ftp://odin.mda.uth.tmc.edu/pub/source/
@@ -17,15 +18,17 @@ WRKSRC= ${WRKDIR}/dcdflib.c/src
USE_LDCONFIG= yes
+DOCSDIR= ${PREFIX}/share/doc/${PORTNAME:S/.c//}
+
post-extract:
@${CP} ${FILESDIR}/Makefile.lib ${WRKSRC}/Makefile
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/dcdflib
- @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.chs ${PREFIX}/share/doc/dcdflib
- @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.fdoc ${PREFIX}/share/doc/dcdflib
- @${INSTALL_DATA} ${WRKSRC}/../README ${PREFIX}/share/doc/dcdflib
+ @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.chs ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/../doc/dcdflib.fdoc ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff --git a/math/dcdflib/pkg-plist b/math/dcdflib/pkg-plist
index 98b6e6d58cbb..35c1d167fc55 100644
--- a/math/dcdflib/pkg-plist
+++ b/math/dcdflib/pkg-plist
@@ -3,7 +3,7 @@ lib/libdcdflib.a
lib/libdcdflib_p.a
lib/libdcdflib.so
lib/libdcdflib.so.1
-share/doc/dcdflib/README
-share/doc/dcdflib/dcdflib.chs
-share/doc/dcdflib/dcdflib.fdoc
-@dirrm share/doc/dcdflib
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/dcdflib.chs
+%%PORTDOCS%%%%DOCSDIR%%/dcdflib.fdoc
+%%PORTDOCS%%@dirrm %%DOCSDIR%%