blob: 1a6e56fef7f9a6c2de56f9452e68094a9a747a25 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
# Created by: FreeBSD Bio porters (bio@freebsd.net)
# $FreeBSD$
PORTNAME= biojava
DISTVERSION= 1.7
PORTEPOCH= 1
CATEGORIES= biology java
MASTER_SITES= http://www.biojava.org/download/bj17/all/
DISTNAME= ${PORTNAME}-${DISTVERSION}-all
EXTRACT_SUFX= .jar
MAINTAINER= ports@FreeBSD.org
COMMENT= Open-source Java tools for processing biological data
BROKEN= Does not build
USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
MAKE_ENV= CLASSPATH="${JAVALIBDIR}"
ALL_TARGET= package-biojava
JARFILES= biojava.jar bytecode.jar
PORTDOCS= biojava
PORTEXAMPLES= demos
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
.if !defined(WITHOUT_TESTS)
regression-test:
@(cd ${BUILD_WRKSRC}; \
${SETENV} ${MAKE_ENV} ${ANT} ${MAKE_ARGS} runtests)
.endif
do-install:
@${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..."
@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
@${INSTALL_DATA} ${JARFILES:S|^|${WRKSRC}/ant-build/|} ${STAGEDIR}${JAVAJARDIR}
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/LICENSE ${STAGEDIR}${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} biojava ${STAGEDIR}${DOCSDIR})
@${ECHO_MSG} " [ DONE ]"
@${ECHO_MSG} -n ">> Installing examples in ${EXAMPLESDIR}..."
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
@(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} demos ${STAGEDIR}${EXAMPLESDIR})
@${ECHO_MSG} " [ DONE ]"
.if !defined(BATCH)
@${ECHO_MSG} ""
@${ECHO_MSG} "Libraries installed at: ${JAVAJARDIR}"
@${ECHO_MSG} "You should edit your CLASSPATH to include the jar files"
@${ECHO_MSG} "in this directory."
@${ECHO_MSG} ""
@${ECHO_MSG} "Docs and demos are installed in:"
@${ECHO_MSG} "${DOCSDIR}"
@${ECHO_MSG} ""
.endif
.include <bsd.port.mk>
|