aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/dtd2relax
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-02-24 23:06:28 +0800
committermat <mat@FreeBSD.org>2014-02-24 23:06:28 +0800
commitf659ffc97ebfe4587c9c091ced0ab9c90c44e8f6 (patch)
treef06189179ccb043c5c16f8885927087d74cec78e /textproc/dtd2relax
parentc1f153c1933b352e5d96de95f63c416f76483f8d (diff)
downloadfreebsd-ports-gnome-f659ffc97ebfe4587c9c091ced0ab9c90c44e8f6.tar.gz
freebsd-ports-gnome-f659ffc97ebfe4587c9c091ced0ab9c90c44e8f6.tar.zst
freebsd-ports-gnome-f659ffc97ebfe4587c9c091ced0ab9c90c44e8f6.zip
Staging.
Sponsored by: Absolight
Diffstat (limited to 'textproc/dtd2relax')
-rw-r--r--textproc/dtd2relax/Makefile21
-rw-r--r--textproc/dtd2relax/pkg-plist6
2 files changed, 9 insertions, 18 deletions
diff --git a/textproc/dtd2relax/Makefile b/textproc/dtd2relax/Makefile
index e3af48929dfd..94e7a2f6e6d6 100644
--- a/textproc/dtd2relax/Makefile
+++ b/textproc/dtd2relax/Makefile
@@ -17,21 +17,18 @@ USE_ZIP= yes
USE_JAVA= yes
NO_BUILD= yes
+OPTIONS_DEFINE= DOCS EXAMPLES
+
JARFILE= ${DISTNAME}-bin-XML4J.jar
-.if !defined(NOPORTDOCS)
+PLIST_FILES= ${JAVAJARDIR:S/${PREFIX}\///}/dtd2relax.jar
PORTDOCS= *
-.endif
+PORTEXAMPLES= *
-NO_STAGE= yes
do-install:
- ${INSTALL_DATA} ${DISTDIR}/${JARFILE} ${JAVAJARDIR}/${PORTNAME}.jar
-
-.if !defined(NOPORTDOCS)
-post-install:
- ${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/samples/* ${EXAMPLESDIR}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
-.endif
+ ${INSTALL_DATA} ${DISTDIR}/${JARFILE} ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
+ @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/samples/* ${STAGEDIR}${EXAMPLESDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/docs/* ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/textproc/dtd2relax/pkg-plist b/textproc/dtd2relax/pkg-plist
deleted file mode 100644
index 04e9097b1cc2..000000000000
--- a/textproc/dtd2relax/pkg-plist
+++ /dev/null
@@ -1,6 +0,0 @@
-%%JAVAJARDIR%%/dtd2relax.jar
-%%PORTDOCS%%%%EXAMPLESDIR%%/test01-utf8.rlx
-%%PORTDOCS%%%%EXAMPLESDIR%%/test01.dtd
-%%PORTDOCS%%%%EXAMPLESDIR%%/xmlspec-19990205-utf8.rlx
-%%PORTDOCS%%%%EXAMPLESDIR%%/xmlspec-19990205.dtd
-%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%