From ccca4389adaf3d1b3b25bf8bed5af23f3218edc5 Mon Sep 17 00:00:00 2001 From: Emanuel Haupt Date: Mon, 3 Mar 2014 13:17:00 +0000 Subject: [PATCH] - Support staging - Define EXAMPLES option - Define DOCS option --- textproc/jrefentry/Makefile | 24 +++++++++++++----------- textproc/jrefentry/pkg-plist | 5 +---- 2 files changed, 14 insertions(+), 15 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 -do-install: - ${MKDIR} ${XMLDIR} - ${INSTALL_DATA} ${WRKSRC}/jrefentry.dtd ${XMLDIR} - ${ECHO_CMD} 'PUBLIC "-//Norman Walsh//DTD JRefEntry V1.1//EN" "jrefentry.dtd"' \ - >${XMLDIR}/catalog +PORTDOCS= README.html +PORTEXAMPLES= jtest.xml -post-install: - ${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${WRKSRC}/jtest.xml ${EXAMPLESDIR} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.html ${DOCSDIR} +OPTIONS_DEFINE= EXAMPLES DOCS + +do-install: + @${MKDIR} ${STAGEDIR}${XMLDIR} + ${INSTALL_DATA} ${WRKSRC}/jrefentry.dtd ${STAGEDIR}${XMLDIR} + ${ECHO_CMD} 'PUBLIC "-//Norman Walsh//DTD JRefEntry V1.1//EN" "jrefentry.dtd"' \ + >${STAGEDIR}${XMLDIR}/catalog + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/jtest.xml ${STAGEDIR}${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.html ${STAGEDIR}${DOCSDIR} .include 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