aboutsummaryrefslogtreecommitdiff
path: root/devel/opengrok
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-10-13 11:55:33 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-10-13 11:55:33 +0000
commitccf3ea88418dd118b42253921acd5a9800629f53 (patch)
treec0b611709926e88eb3db0c4f4bf7cdc68b7e50bb /devel/opengrok
parentef1ad3a23e6df36db62968d4addcac40144f402b (diff)
downloadports-ccf3ea88418dd118b42253921acd5a9800629f53.tar.gz
ports-ccf3ea88418dd118b42253921acd5a9800629f53.zip
Notes
Diffstat (limited to 'devel/opengrok')
-rw-r--r--devel/opengrok/Makefile77
-rw-r--r--devel/opengrok/distinfo3
-rw-r--r--devel/opengrok/files/opengrok.in15
-rw-r--r--devel/opengrok/pkg-descr8
-rw-r--r--devel/opengrok/pkg-plist18
5 files changed, 121 insertions, 0 deletions
diff --git a/devel/opengrok/Makefile b/devel/opengrok/Makefile
new file mode 100644
index 000000000000..14326af13d9b
--- /dev/null
+++ b/devel/opengrok/Makefile
@@ -0,0 +1,77 @@
+# New ports collection makefile for: opengrok
+# Date created: 10/13/2009
+# Whom: stas
+#
+# $FreeBSD$
+#
+
+PORTNAME= opengrok
+PORTVERSION= 0.7
+CATEGORIES= devel java
+MASTER_SITES= http://opensolaris.org/os/project/opengrok/files/
+
+MAINTAINER= stas@FreeBSD.org
+COMMENT= Fast and powerful code search and cross-reference egine
+
+RUN_DEPENDS= exctags:${PORTSDIR}/devel/ctags
+
+USE_JAVA= yes
+JAVA_VERSION= 1.5+
+NO_BUILD= yes
+SUB_FILES= opengrok
+SUB_LIST+= LIBFILES="${LIBFILES:S,^,${DATADIR}/,}" \
+ JARFILE="${JARFILE}"
+
+OPTIONS= TOMCAT6 "Use Jakarta Tomcat 6" on \
+ TOMCAT55 "Use Jakarta Tomcat 5.5" off \
+ RESIN3 "Use Resin 3" off
+
+.include <bsd.port.pre.mk>
+
+JARFILE= ${DATADIR}/opengrok.jar
+WARFILE= source.war
+DOCS= CHANGES.txt EXAMPLE.txt LICENSE.txt
+LIBFILES= ant.jar bcel-5.1.jar jakarta-oro-2.0.8.jar \
+ jmxremote_optional.jar lucene-core-2.2.0.jar \
+ lucene-spellchecker-2.2.0.jar org.apache.commons.jrcs.diff.jar \
+ org.apache.commons.jrcs.rcs.jar servlet-api.jar \
+ swing-layout-0.9.jar
+WEBAPP_DIRS= #empty
+
+.if defined(WITH_TOMCAT55)
+WEBAPP_DIRS+= tomcat5.5
+RUN_DEPENDS+= ${LOCALBASE}/tomcat5.5/bin/bootstrap.jar:${PORTSDIR}/www/tomcat55
+.endif
+
+.if defined(WITH_TOMCAT6)
+WEBAPP_DIRS+= apache-tomcat-6.0
+RUN_DEPENDS+= ${LOCALBASE}/apache-tomcat-6.0/bin/bootstrap.jar:${PORTSDIR}/www/tomcat6
+.endif
+
+.if defined(WITH_RESIN3)
+WEBAPP_DIRS+= resin3
+RUN_DEPENDS+= ${LOCALBASE}/resin3/lib/resin.jar:${PORTSDIR}/www/resin3
+.endif
+
+do-install:
+.if ${PREFIX}!=${LOCALBASE}
+ @${ECHO_CMD} "Warning: you changed prefix to ${PREFIX}"
+ @${ECHO_CMD} "Default installation will not work if you installed"
+ @${ECHO_CMD} "application server in different prefix"
+.endif
+.for DIR in ${WEBAPP_DIRS}
+ @${ECHO_CMD} "${DIR}/webapps/${WARFILE}" >> ${TMPPLIST}
+ ${MKDIR} ${PREFIX}/${DIR}/webapps
+ @${ECHO_CMD} "@unexec rmdir %D/${DIR}/webapps 2>/dev/null || true" >> ${TMPPLIST}
+ ${INSTALL_DATA} ${WRKSRC}/${WARFILE} ${PREFIX}/${DIR}/webapps
+.endfor
+ ${MKDIR} ${DATADIR}/lib
+ ${INSTALL_DATA} ${LIBFILES:S,^,${WRKSRC}/lib/,} ${DATADIR}/lib/
+ ${INSTALL_DATA} ${WRKSRC}/opengrok.jar ${DATADIR}/
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${DOCSDIR}/
+ ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/,} ${DOCSDIR}/
+.endif
+ ${INSTALL_SCRIPT} ${WRKDIR}/opengrok ${PREFIX}/bin
+
+.include <bsd.port.post.mk>
diff --git a/devel/opengrok/distinfo b/devel/opengrok/distinfo
new file mode 100644
index 000000000000..cb28a5e3e938
--- /dev/null
+++ b/devel/opengrok/distinfo
@@ -0,0 +1,3 @@
+MD5 (opengrok-0.7.tar.gz) = 17f554a60edde0b3ea9d9debc8ff8eef
+SHA256 (opengrok-0.7.tar.gz) = 1ba0bc6c2cc9e778fabf56333b926ce304c7c8eca20015032cb8391b3ee873ad
+SIZE (opengrok-0.7.tar.gz) = 5842589
diff --git a/devel/opengrok/files/opengrok.in b/devel/opengrok/files/opengrok.in
new file mode 100644
index 000000000000..f04341d29788
--- /dev/null
+++ b/devel/opengrok/files/opengrok.in
@@ -0,0 +1,15 @@
+#!/bin/csh
+#
+# $FreeBSD$
+
+set JAVA = "%%LOCALBASE%%/bin/java"
+set LIBFILES = "%%LIBFILES%%"
+setenv JAVA_VERSION "%%JAVA_VERSION%%"
+
+if ( "${LIBFILES}" != "" ) then
+ set CLASSPATH = `echo ${LIBFILES} | sed -E -e 's,[[:space:]]+,:,g'`
+else
+ set CLASSPATH = ""
+endif
+
+exec "${JAVA}" -cp "${CLASSPATH}" -jar %%JARFILE%% -c %%LOCALBASE%%/bin/exctags $*
diff --git a/devel/opengrok/pkg-descr b/devel/opengrok/pkg-descr
new file mode 100644
index 000000000000..47f4c2972531
--- /dev/null
+++ b/devel/opengrok/pkg-descr
@@ -0,0 +1,8 @@
+OpenGrok is a fast and usable source code search and cross reference engine.
+It helps you search, cross-reference and navigate your source tree. It can
+understand various program file formats and version control histories like
+Mercurial, Git, SCCS, RCS, CVS, Subversion, Teamware, ClearCase, Perforce
+and Bazaar. In other words it lets you grok (profoundly understand) the open
+source, hence the name OpenGrok. It is written in Java.
+
+WWW: http://opensolaris.org/os/project/opengrok/
diff --git a/devel/opengrok/pkg-plist b/devel/opengrok/pkg-plist
new file mode 100644
index 000000000000..52e45c39da69
--- /dev/null
+++ b/devel/opengrok/pkg-plist
@@ -0,0 +1,18 @@
+bin/opengrok
+%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt
+%%PORTDOCS%%%%DOCSDIR%%/EXAMPLE.txt
+%%PORTDOCS%%%%DOCSDIR%%/LICENSE.txt
+%%DATADIR%%/lib/ant.jar
+%%DATADIR%%/lib/bcel-5.1.jar
+%%DATADIR%%/lib/jakarta-oro-2.0.8.jar
+%%DATADIR%%/lib/jmxremote_optional.jar
+%%DATADIR%%/lib/lucene-core-2.2.0.jar
+%%DATADIR%%/lib/lucene-spellchecker-2.2.0.jar
+%%DATADIR%%/opengrok.jar
+%%DATADIR%%/lib/org.apache.commons.jrcs.diff.jar
+%%DATADIR%%/lib/org.apache.commons.jrcs.rcs.jar
+%%DATADIR%%/lib/servlet-api.jar
+%%DATADIR%%/lib/swing-layout-0.9.jar
+@dirrm %%DATADIR%%/lib
+@dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%