- Add port for devel/opengrok, a fast source code search and cross

reference engine.

  WWW:  http://opensolaris.org/os/project/opengrok/
This commit is contained in:
Stanislav Sedov 2009-10-13 11:55:33 +00:00
parent ef1ad3a23e
commit ccf3ea8841
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242765
6 changed files with 122 additions and 0 deletions

View file

@ -953,6 +953,7 @@
SUBDIR += oniguruma5
SUBDIR += open-beagle
SUBDIR += opencvs
SUBDIR += opengrok
SUBDIR += openocd
SUBDIR += openwince-include
SUBDIR += openzz

77
devel/opengrok/Makefile Normal file
View file

@ -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>

3
devel/opengrok/distinfo Normal file
View file

@ -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

View file

@ -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 $*

8
devel/opengrok/pkg-descr Normal file
View file

@ -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/

18
devel/opengrok/pkg-plist Normal file
View file

@ -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%%