aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-01-21 18:34:32 +0800
committermat <mat@FreeBSD.org>2014-01-21 18:34:32 +0800
commit4c5a4cc06f00501b72ee85290b7e7f5d8b233df6 (patch)
tree9ad58c291829627f8b5a5f84e4690c6f383e60e9 /textproc
parent444aaed8d96b79b279f453de655ddf2897e059f7 (diff)
downloadfreebsd-ports-gnome-4c5a4cc06f00501b72ee85290b7e7f5d8b233df6.tar.gz
freebsd-ports-gnome-4c5a4cc06f00501b72ee85290b7e7f5d8b233df6.tar.zst
freebsd-ports-gnome-4c5a4cc06f00501b72ee85290b7e7f5d8b233df6.zip
Convert to staging.
Sponsored by: Absolight
Diffstat (limited to 'textproc')
-rw-r--r--textproc/jing/Makefile29
-rw-r--r--textproc/jing/pkg-plist20
2 files changed, 14 insertions, 35 deletions
diff --git a/textproc/jing/Makefile b/textproc/jing/Makefile
index 99cd2309ad81..92856e1ffc02 100644
--- a/textproc/jing/Makefile
+++ b/textproc/jing/Makefile
@@ -10,30 +10,29 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g}
MAINTAINER= gabor@FreeBSD.org
COMMENT= A RELAX NG validator in Java
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${FILESDIR}/doc/copying.html
+
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_BUILD= yes
-.if !defined(NOPORTDOCS)
+OPTIONS_DEFINE= DOCS EXAMPLES
+
PORTDOCS= *
-.endif
+PORTEXAMPLES= *
SUB_FILES= jing.sh
-NO_STAGE= yes
+PLIST_FILES= bin/jing %%JAVAJARDIR%%/jing.jar
+
do-install:
- ${INSTALL_SCRIPT} ${WRKDIR}/jing.sh ${PREFIX}/bin/jing
- ${INSTALL_DATA} ${WRKSRC}/bin/jing.jar ${JAVAJARDIR}
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/*.html ${DOCSDIR}
- cd ${WRKSRC}/doc \
- && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
- && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
- cd ${WRKSRC}/sample \
- && ${FIND} . -type d -exec ${MKDIR} ${EXAMPLESDIR}/{} \; \
- && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${EXAMPLESDIR}/{} \;
-.endif
+ ${INSTALL_SCRIPT} ${WRKDIR}/jing.sh ${STAGEDIR}${PREFIX}/bin/jing
+ ${INSTALL_DATA} ${WRKSRC}/bin/jing.jar ${STAGEDIR}${JAVAJARDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.html ${STAGEDIR}${DOCSDIR}
+ (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
+ (cd ${WRKSRC}/sample && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
diff --git a/textproc/jing/pkg-plist b/textproc/jing/pkg-plist
deleted file mode 100644
index 0f6b99c720ab..000000000000
--- a/textproc/jing/pkg-plist
+++ /dev/null
@@ -1,20 +0,0 @@
-bin/jing
-%%JAVAJARDIR%%/jing.jar
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datatype/build.xml
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datatype/datatype-sample.jar
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datatype/datatype-sample.rng
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datatype/index.html
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datatype/invalid.xml
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datatype/src/META-INF/services/org.relaxng.datatype.DatatypeLibraryFactory
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datatype/src/com/thaiopensource/datatype/sample/BalancedString.java
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datatype/src/com/thaiopensource/datatype/sample/SimpleDatatypeLibrary.java
-%%PORTEXAMPLES%%%%EXAMPLESDIR%%/datatype/valid.xml
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/datatype/src/com/thaiopensource/datatype/sample
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/datatype/src/com/thaiopensource/datatype
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/datatype/src/com/thaiopensource
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/datatype/src/com
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/datatype/src/META-INF/services
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/datatype/src/META-INF
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/datatype/src
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%/datatype
-%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%