aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/jrefentry
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-03-03 21:17:00 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-03-03 21:17:00 +0800
commit41012809026915e9ce007b074316515fb4b6abd4 (patch)
tree94c82d36e4b550a0bb91ae83a3deb18c8381e982 /textproc/jrefentry
parent68689b91092eee79cba32bb08701f666ad21feb4 (diff)
downloadfreebsd-ports-gnome-41012809026915e9ce007b074316515fb4b6abd4.tar.gz
freebsd-ports-gnome-41012809026915e9ce007b074316515fb4b6abd4.tar.zst
freebsd-ports-gnome-41012809026915e9ce007b074316515fb4b6abd4.zip
- Support staging
- Define EXAMPLES option - Define DOCS option
Diffstat (limited to 'textproc/jrefentry')
-rw-r--r--textproc/jrefentry/Makefile22
-rw-r--r--textproc/jrefentry/pkg-plist5
2 files changed, 13 insertions, 14 deletions
diff --git a/textproc/jrefentry/Makefile b/textproc/jrefentry/Makefile
index a5bb2a8abe5c..f8570d304070 100644
--- a/textproc/jrefentry/Makefile
+++ b/textproc/jrefentry/Makefile
@@ -16,17 +16,19 @@ NO_BUILD= yes
XMLDIR= ${PREFIX}/share/xml/docbook/${PORTNAME}
-NO_STAGE= yes
+PORTDOCS= README.html
+PORTEXAMPLES= jtest.xml
+
+OPTIONS_DEFINE= EXAMPLES DOCS
+
do-install:
- ${MKDIR} ${XMLDIR}
- ${INSTALL_DATA} ${WRKSRC}/jrefentry.dtd ${XMLDIR}
+ @${MKDIR} ${STAGEDIR}${XMLDIR}
+ ${INSTALL_DATA} ${WRKSRC}/jrefentry.dtd ${STAGEDIR}${XMLDIR}
${ECHO_CMD} 'PUBLIC "-//Norman Walsh//DTD JRefEntry V1.1//EN" "jrefentry.dtd"' \
- >${XMLDIR}/catalog
-
-post-install:
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/jtest.xml ${EXAMPLESDIR}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR}
+ >${STAGEDIR}${XMLDIR}/catalog
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/jtest.xml ${STAGEDIR}${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.html ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/textproc/jrefentry/pkg-plist b/textproc/jrefentry/pkg-plist
index bb134fed8fb3..24261ec6a32e 100644
--- a/textproc/jrefentry/pkg-plist
+++ b/textproc/jrefentry/pkg-plist
@@ -1,7 +1,4 @@
share/xml/docbook/jrefentry/catalog
share/xml/docbook/jrefentry/jrefentry.dtd
@dirrm share/xml/docbook/jrefentry
-share/examples/jrefentry/jtest.xml
-@dirrm share/examples/jrefentry
-share/doc/jrefentry/README.html
-@dirrm share/doc/jrefentry
+@dirrmtry share/xml/docbook