blob: 89b5b4b07845f98706c979bd922b7da932f9e926 (
plain)
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# $FreeBSD$
PORTNAME= opengrok
PORTVERSION= 0.12.1.5
CATEGORIES= devel java
MASTER_SITES= http://java.net/projects/opengrok/downloads/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast and powerful code search and cross-reference engine
LICENSE= CDDL APACHE20
LICENSE_COMB= multi
RUN_DEPENDS= exctags:${PORTSDIR}/devel/ctags
USE_JAVA= yes
JAVA_VERSION= 1.7+
SHAREOWN= www
SHAREGRP= www
NO_BUILD= yes
NO_ARCH= yes
PORTDOCS= CHANGES.txt EXAMPLE.txt LICENSE.txt
SUB_FILES= opengrok
SUB_LIST+= LIBFILES="${LIBFILES:S,^,${DATADIR}/lib/,}" \
JARFILE="${JARFILE}"
PLIST_SUB= T=${WEBAPP_HOME:S|^${LOCALBASE}/||} \
OWNER=${SHAREOWN} GROUP=${SHAREGRP}
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= AS
OPTIONS_SINGLE_AS= TOMCAT7 TOMCAT6 RESIN3
OPTIONS_DEFAULT= TOMCAT6
TOMCAT6_BUILD_DEPENDS= ${WEBAPP_HOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
TOMCAT6_RUN_DEPENDS= ${WEBAPP_HOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
TOMCAT7_BUILD_DEPENDS= ${WEBAPP_HOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
TOMCAT7_RUN_DEPENDS= ${WEBAPP_HOME}/bin/bootstrap.jar:${PORTSDIR}/www/tomcat7
RESIN3_BUILD_DEPENDS= ${WEBAPP_HOME}/lib/resin.jar:${PORTSDIR}/www/resin3
RESIN3_RUN_DEPENDS= ${WEBAPP_HOME}/lib/resin.jar:${PORTSDIR}/www/resin3
JARFILE= ${DATADIR}/opengrok.jar
LIBFILES= ant.jar \
bcel-5.2.jar \
jrcs.jar \
lucene-analyzers-common-4.7.1.jar \
lucene-core-4.7.1.jar \
lucene-queryparser-4.7.1.jar \
lucene-suggest-4.7.1.jar \
swing-layout-0.9.jar
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MTOMCAT7}
WEBAPP_HOME?= ${LOCALBASE}/apache-tomcat-7.0
.endif
.if ${PORT_OPTIONS:MTOMCAT6}
WEBAPP_HOME?= ${LOCALBASE}/apache-tomcat-6.0
.endif
.if ${PORT_OPTIONS:MRESIN3}
WEBAPP_HOME?= ${LOCALBASE}/resin3
.endif
WEBAPPS_DIR= ${WEBAPP_HOME:S|^${LOCALBASE}/||}/webapps
post-extract:
@${MKDIR} ${WRKSRC}/lib/opengrok
@${TAR} -xf ${WRKSRC}/lib/source.war -C ${WRKSRC}/lib/opengrok
do-install:
@${MKDIR} ${STAGEDIR}${DATADIR}/lib \
${STAGEDIR}${PREFIX}/${WEBAPPS_DIR}/${PORTNAME}
(cd ${WRKSRC}/lib/opengrok && ${COPYTREE_SHARE} . \
${STAGEDIR}${PREFIX}/${WEBAPPS_DIR}/${PORTNAME})
(cd ${STAGEDIR}${PREFIX}/${WEBAPPS_DIR}/${PORTNAME}/WEB-INF && \
${MV} web.xml web.xml.sample)
${INSTALL_DATA} ${LIBFILES:S,^,${WRKSRC}/lib/lib/,} \
${STAGEDIR}${DATADIR}/lib/
${INSTALL_DATA} ${WRKSRC}/lib/opengrok.jar ${STAGEDIR}${DATADIR}/
${INSTALL_SCRIPT} ${WRKDIR}/opengrok ${STAGEDIR}${PREFIX}/bin
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
|