aboutsummaryrefslogtreecommitdiffstats
path: root/cad
diff options
context:
space:
mode:
authornivit <nivit@FreeBSD.org>2012-07-17 00:46:10 +0800
committernivit <nivit@FreeBSD.org>2012-07-17 00:46:10 +0800
commit4ef4f27ad9de3b0c5ade62181dbf2906f694f956 (patch)
treedee435a545524725fc00942c750b71754ec48193 /cad
parentc0d178957b4d4ce682ecd3e2d2c88fa7065e4b03 (diff)
downloadfreebsd-ports-graphics-4ef4f27ad9de3b0c5ade62181dbf2906f694f956.tar.gz
freebsd-ports-graphics-4ef4f27ad9de3b0c5ade62181dbf2906f694f956.tar.zst
freebsd-ports-graphics-4ef4f27ad9de3b0c5ade62181dbf2906f694f956.zip
- Update to 0.24
- Set a different MASTER_SITE_SUBDIR for source and docs - Convert to the new options framework
Diffstat (limited to 'cad')
-rw-r--r--cad/fidocadj/Makefile25
-rw-r--r--cad/fidocadj/distinfo8
2 files changed, 20 insertions, 13 deletions
diff --git a/cad/fidocadj/Makefile b/cad/fidocadj/Makefile
index 6a781bfe3e2..5111d71767e 100644
--- a/cad/fidocadj/Makefile
+++ b/cad/fidocadj/Makefile
@@ -6,15 +6,12 @@
#
PORTNAME= fidocadj
-PORTVERSION= 0.23.7
+PORTVERSION= 0.24
#PORTREVISION= 0
CATEGORIES= cad
-MASTER_SITES= SF
-MASTER_SITE_SUBDIR= ${PORTNAME}
-DISTFILES= ${PORTNAME}.jar
-.if !defined(NOPORTDOCS)
-DISTFILES+= ${PORTNAME}_manual_en.pdf
-.endif
+MASTER_SITES= SF:src,docs
+MASTER_SITE_SUBDIR= ${PORTNAME}/:src ${PORTNAME}/manuals/:docs
+DISTFILES= ${PORTNAME}.jar:src
EXTRACT_ONLY=
MAINTAINER= nivit@FreeBSD.org
@@ -31,15 +28,25 @@ SUB_FILES= ${PORTNAME}.sh
JAVA_VERSION= 1.5+
USE_JAVA= yes
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
FDCJ_MANUAL= ${PORTNAME}_manual_en.pdf
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}
${MKDIR} ${DATADIR}; \
${INSTALL_DATA} ${DISTDIR}/${PORTNAME}.jar ${DATADIR}/
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR} && \
${INSTALL_DATA} ${DISTDIR}/${FDCJ_MANUAL} ${DOCSDIR}/
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+DISTFILES+= ${PORTNAME}_manual_en.pdf:docs
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/cad/fidocadj/distinfo b/cad/fidocadj/distinfo
index 6368beeda56..71708b60742 100644
--- a/cad/fidocadj/distinfo
+++ b/cad/fidocadj/distinfo
@@ -1,4 +1,4 @@
-SHA256 (fidocadj.jar) = 94e6e6c67913c8312d00a2bc7b37715db6f3934aff2ded888a30426b25af892c
-SIZE (fidocadj.jar) = 419310
-SHA256 (fidocadj_manual_en.pdf) = 5020e01a6d37b35647917785901b58d4229be2fdb65784766de2b28ca8ad6132
-SIZE (fidocadj_manual_en.pdf) = 2435667
+SHA256 (fidocadj.jar) = 422ef03693dda6264e20be4f7678bf3fe30a93afd7fe34714542b8507f199bf5
+SIZE (fidocadj.jar) = 443351
+SHA256 (fidocadj_manual_en.pdf) = 0b54911d02710cc31e8905decbdb83ca0b28fc55ab5777664512cfbe80300d49
+SIZE (fidocadj_manual_en.pdf) = 2155837