aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/jzlib
diff options
context:
space:
mode:
authordanilo <danilo@FreeBSD.org>2013-09-26 05:15:17 +0800
committerdanilo <danilo@FreeBSD.org>2013-09-26 05:15:17 +0800
commit061f873b76e29655f2d6db838e2069054475cdbd (patch)
tree303551876cb971af4971992810d01b0bd2741548 /archivers/jzlib
parente991f3fcd73ed5ede905eaee1dbd0ea3466d6ecb (diff)
downloadfreebsd-ports-gnome-061f873b76e29655f2d6db838e2069054475cdbd.tar.gz
freebsd-ports-gnome-061f873b76e29655f2d6db838e2069054475cdbd.tar.zst
freebsd-ports-gnome-061f873b76e29655f2d6db838e2069054475cdbd.zip
- Change maintainer email to @FreeBSD.org
- Add staging support - Add the pkg-plist file Approved by: wg (mentor)
Diffstat (limited to 'archivers/jzlib')
-rw-r--r--archivers/jzlib/Makefile51
-rw-r--r--archivers/jzlib/pkg-plist14
2 files changed, 22 insertions, 43 deletions
diff --git a/archivers/jzlib/Makefile b/archivers/jzlib/Makefile
index 1ed171d65843..50ac8cc58596 100644
--- a/archivers/jzlib/Makefile
+++ b/archivers/jzlib/Makefile
@@ -6,45 +6,17 @@ PORTVERSION= 1.1.1
CATEGORIES= archivers java
MASTER_SITES= http://www.jcraft.com/jzlib/
-MAINTAINER= danilogondolfo@gmail.com
+MAINTAINER= danilo@FreeBSD.org
COMMENT= Reimplementation of zlib in pure Java
-NO_STAGE= yes
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
JAR_FILE= ${WRKSRC}/src/main/java/${PORTNAME}.jar
-DOC_FILES= \
- ChangeLog \
- LICENSE.txt \
- README
-PORTDOCS= ${DOC_FILES}
-
OPTIONS_DEFINE= DOCS EXAMPLES
-EXAMPLE_FILES= \
- README \
- test_deflate_inflate.java \
- test_dict_deflate_inflate.java \
- test_flush_sync.java \
- test_gzip_deflate_inflate.java \
- test_gzip_inflate.java \
- test_large_deflate_inflate.java \
- test_stream_deflate_inflate.java
-
-PLIST_FILES+= %%JAVAJARDIR%%/${PORTNAME}.jar
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MEXAMPLES}
-. for file in ${EXAMPLE_FILES}
-PLIST_FILES+= %%EXAMPLESDIR%%/${file}
-. endfor
-PLIST_DIRS+= %%EXAMPLESDIR%%
-.endif
-
do-build:
@cd ${WRKSRC}/src/main/java && ${FIND} com -name "*.java" | \
${XARGS} -n 10 -x \
@@ -54,19 +26,12 @@ do-build:
${JAR} -cf ${PORTNAME}.jar
do-install:
-# docs
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
-. for file in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-. endfor
-.endif
-# examples
-.if ${PORT_OPTIONS:MEXAMPLES}
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/example/* ${EXAMPLESDIR}
-.endif
-# jar
- ${INSTALL_DATA} ${JAR_FILE} ${JAVAJARDIR}/${PORTNAME}.jar
+ @${MKDIR} ${STAGEDIR}/${DOCSDIR}
+.for file in ChangeLog LICENSE.txt README
+ @${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}/${DOCSDIR}
+.endfor
+ @${MKDIR} ${STAGEDIR}/${EXAMPLESDIR}
+ ${INSTALL_DATA} ${WRKSRC}/example/* ${STAGEDIR}/${EXAMPLESDIR}
+ ${INSTALL_DATA} ${JAR_FILE} ${STAGEDIR}/${JAVAJARDIR}/${PORTNAME}.jar
.include <bsd.port.mk>
diff --git a/archivers/jzlib/pkg-plist b/archivers/jzlib/pkg-plist
new file mode 100644
index 000000000000..377aba50093c
--- /dev/null
+++ b/archivers/jzlib/pkg-plist
@@ -0,0 +1,14 @@
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_deflate_inflate.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_dict_deflate_inflate.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_flush_sync.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_gzip_deflate_inflate.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_gzip_inflate.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_large_deflate_inflate.java
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/test_stream_deflate_inflate.java
+share/java/classes/jzlib.jar
+%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%
+%%PORTDOCS%%@dirrmtry %%DOCSDIR%%