aboutsummaryrefslogtreecommitdiffstats
path: root/biology/biojava/Makefile
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-05-01 17:33:42 +0800
committermiwi <miwi@FreeBSD.org>2009-05-01 17:33:42 +0800
commit5ba027fb31c1c48adb4dd44e04c904be1439370a (patch)
tree1d81d3b6f451e8659ebe9a6ff0088db2f3601e69 /biology/biojava/Makefile
parent8f7a3c49c3d29d663eeb1d1384a9d400a2dc593e (diff)
downloadfreebsd-ports-gnome-5ba027fb31c1c48adb4dd44e04c904be1439370a.tar.gz
freebsd-ports-gnome-5ba027fb31c1c48adb4dd44e04c904be1439370a.tar.zst
freebsd-ports-gnome-5ba027fb31c1c48adb4dd44e04c904be1439370a.zip
- Update to 1.7
- Pass maintainership to submitter PR: 134056 Submitted by: Wen Heping <wenheping@gmail.com>
Diffstat (limited to 'biology/biojava/Makefile')
-rw-r--r--biology/biojava/Makefile75
1 files changed, 24 insertions, 51 deletions
diff --git a/biology/biojava/Makefile b/biology/biojava/Makefile
index 1af1f69a9832..a643d7a9f671 100644
--- a/biology/biojava/Makefile
+++ b/biology/biojava/Makefile
@@ -6,63 +6,34 @@
#
PORTNAME= biojava
-DISTVERSION= 1.5-beta2
-PORTREVISION= 2
+DISTVERSION= 1.7
PORTEPOCH= 1
CATEGORIES= biology java
-MASTER_SITES= http://www.biojava.org/download/bj15b/all/:source \
- http://www.biojava.org/download/bj15b/bin/:bin
-DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}:source \
- bytecode.jar:bin
-EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
+MASTER_SITES= http://www.biojava.org/download/bj17/all/
+DISTNAME= ${PORTNAME}-${DISTVERSION}-all
+EXTRACT_SUFX= .jar
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= wenheping@gmail.com
COMMENT= Open-source java tools for processing biological data
-BUILD_DEPENDS= ${JAVALIBDIR}/hsqldb.jar:${PORTSDIR}/databases/hsqldb \
- ${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j \
- ${JAVALIBDIR}/jakarta-regexp.jar:${PORTSDIR}/java/jakarta-regexp \
- ${JAVALIBDIR}/commons-cli.jar:${PORTSDIR}/java/jakarta-commons-cli \
- ${JAVALIBDIR}/commons-dbcp.jar:${PORTSDIR}/java/jakarta-commons-dbcp \
- ${JAVALIBDIR}/commons-pool.jar:${PORTSDIR}/java/jakarta-commons-pool \
- ${JAVALIBDIR}/commons-collections.jar:${PORTSDIR}/java/jakarta-commons-collections
-RUN_DEPENDS= ${JAVALIBDIR}/hsqldb.jar:${PORTSDIR}/databases/hsqldb \
- ${JAVALIBDIR}/xml-apis.jar:${PORTSDIR}/textproc/xerces-j \
- ${JAVALIBDIR}/jakarta-regexp.jar:${PORTSDIR}/java/jakarta-regexp \
- ${JAVALIBDIR}/commons-cli.jar:${PORTSDIR}/java/jakarta-commons-cli \
- ${JAVALIBDIR}/commons-dbcp.jar:${PORTSDIR}/java/jakarta-commons-dbcp \
- ${JAVALIBDIR}/commons-pool.jar:${PORTSDIR}/java/jakarta-commons-pool \
- ${JAVALIBDIR}/commons-collections.jar:${PORTSDIR}/java/jakarta-commons-collections
-
-.if !defined(WITHOUT_TESTS)
-BUILD_DEPENDS+= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
-.endif
+EXTRACT_DEPENDS+= jar:${PORTSDIR}/java/diablo-jdk16
USE_JAVA= yes
JAVA_VERSION= 1.5+
USE_ANT= yes
MAKE_ENV= CLASSPATH="${JAVALIBDIR}"
-ALL_TARGET= compile-apps
+ALL_TARGET= package-biojava
-PLIST_SUB+= VER=${DISTVERSION}
-
-JARFILES= apps-${DISTVERSION}.jar biojava.jar bytecode.jar
+JARFILES= biojava.jar bytecode.jar
PORTDOCS= biojava
-SAMPLES= demos
-WRKSRC=${WRKDIR}
-
-.if !defined(NOPORTDOCS)
-ALL_TARGET+= javadocs-biojava
-.endif
-.if !defined(WITHOUT_SAMPLES)
-ALL_TARGET+= compile-demos
-PLIST_SUB+= INSTEX=""
-.else
-PLIST_SUB+= INSTEX="@comment "
-.endif
+PORTEXAMPLES= demos
+EXTRACT_CMD= jar -xvf ${_DISTDIR}/${DISTFILES}
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-post-extract:
- ${CP} ${_DISTDIR}/bytecode.jar ${WRKSRC}
+do-extract:
+ @${RM} -rf ${WRKDIR}
+ @${MKDIR} ${WRKDIR}
+ @cd ${WRKDIR} && ${EXTRACT_CMD}
.if !defined(WITHOUT_TESTS)
regression-test:
@@ -70,7 +41,6 @@ regression-test:
${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} runtests)
.endif
-# from textproc/xerces-j
do-install:
@${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..."
@${MKDIR} ${JAVAJARDIR}
@@ -79,21 +49,24 @@ do-install:
@${ECHO_MSG} -n " ${JARFILE}"
.endfor
@${ECHO_MSG} " [ DONE ]"
+
.if !defined(NOPORTDOCS)
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- @cd ${WRKSRC}/ant-build/docs && \
+ @cd ${WRKSRC}/doc && \
${FIND} ${PORTDOCS} -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
${FIND} ${PORTDOCS} -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
@${ECHO_MSG} " [ DONE ]"
.endif
-.if !defined(WITHOUT_SAMPLES)
- @${ECHO_MSG} -n ">> Installing demos in ${EXAMPLESDIR}..."
- cd ${WRKSRC} && \
- ${FIND} ${SAMPLES} -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \
- ${FIND} ${SAMPLES} -not -type d -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \;
+
+.if !defined(NOPORTEXAMPLES)
+ @${ECHO_MSG} -n ">> Installing examples in ${EXAMPLESDIR}..."
+ @${MKDIR} ${EXAMPLESDIR}
+ cd ${WRKSRC}/doc && \
+ ${FIND} ${PORTEXAMPLES} -type d -exec ${MKDIR} "${EXAMPLESDIR}/{}" \; && \
+ ${FIND} ${PORTEXAMPLES} -not -type d -exec ${INSTALL_DATA} "{}" "${EXAMPLESDIR}/{}" \;
@${ECHO_MSG} " [ DONE ]"
.endif