aboutsummaryrefslogtreecommitdiff
path: root/graphics/batik
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2014-01-01 18:25:10 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2014-01-01 18:25:10 +0000
commit4207d07c34161d7a6647ecff0c7eb9152146ac51 (patch)
tree11ca225ec0d5f16dededbfafea69815c0a77c5d6 /graphics/batik
parent2f713738f7e554eceedfa2cb38d80e48ded5fb93 (diff)
downloadports-4207d07c34161d7a6647ecff0c7eb9152146ac51.tar.gz
ports-4207d07c34161d7a6647ecff0c7eb9152146ac51.zip
- Change DOCS, add batik-docs
- Change to use USE_JAVA=1.6+ - Add DOCS Option Approved by: pawel / wg (mentors, implicit)
Notes
Notes: svn path=/head/; revision=338385
Diffstat (limited to 'graphics/batik')
-rw-r--r--graphics/batik/Makefile28
-rw-r--r--graphics/batik/distinfo2
2 files changed, 22 insertions, 8 deletions
diff --git a/graphics/batik/Makefile b/graphics/batik/Makefile
index 338125e2914c..507c140f8e54 100644
--- a/graphics/batik/Makefile
+++ b/graphics/batik/Makefile
@@ -6,7 +6,7 @@ PORTVERSION= 1.7
PORTREVISION= 3
CATEGORIES= graphics java
MASTER_SITES= APACHE/xmlgraphics/${PORTNAME}
-DISTNAME= ${PORTNAME}-src-${PORTVERSION}
+DISTFILES= ${PORTNAME}-src-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis@FreeBSD.org
COMMENT= Java based SVG toolkit
@@ -14,7 +14,7 @@ COMMENT= Java based SVG toolkit
LICENSE= APACHE20
USE_ZIP= yes
-USE_JAVA= 1.5+
+USE_JAVA= 1.6+
USE_ANT= yes
ALL_TARGET= jars all-jar
# Prevent out of memory error during build
@@ -24,18 +24,30 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
INSTALL_WRKSRC= ${WRKSRC}/${PORTNAME}-${PORTVERSION}
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
-PORTDOCS= CHANGES NOTICE README
+PORTDOCS= *
+
+DOCSRCDIR1= ${WRKSRC}
+DOC_FILES1= CHANGES NOTICE README
+
+DOCSRCDIR2= ${WRKDIR}/docs/
+DOCSDIR2= ${DOCSDIR}
+DOC_FILES2= *
+
+OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
.include <bsd.port.options.mk>
+.if ${PORT_OPTIONS:MDOCS}
+DISTFILES+= ${PORTNAME}-docs-${PORTVERSION}${EXTRACT_SUFX}
+.endif
+
do-install:
- cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} . ${DATADIR}
+ (cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
-post-install:
.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
+ @(cd ${WRKDIR}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR2})
.endif
.include <bsd.port.mk>
diff --git a/graphics/batik/distinfo b/graphics/batik/distinfo
index 7d5766405779..33f5d3d4b7ac 100644
--- a/graphics/batik/distinfo
+++ b/graphics/batik/distinfo
@@ -1,2 +1,4 @@
SHA256 (batik-src-1.7.zip) = 6bea593543a797561fa83651764e40b1b0ce01c1df21ab0359ade58e967379fd
SIZE (batik-src-1.7.zip) = 15060504
+SHA256 (batik-docs-1.7.zip) = 2e4812317780f0e7dedfa944038be99333c2d3a592da80ef90edff916fbaf604
+SIZE (batik-docs-1.7.zip) = 18405853