Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 58602 Details for
Bug 50972
Requested: ebuild for cruisecontrol
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
cruisecontrol-2.1.6-r1.ebuild
cruisecontrol-2.1.6-r1.ebuild (text/plain), 4.80 KB, created by
Josh Nichols (RETIRED)
on 2005-05-10 11:41:41 UTC
(
hide
)
Description:
cruisecontrol-2.1.6-r1.ebuild
Filename:
MIME Type:
Creator:
Josh Nichols (RETIRED)
Created:
2005-05-10 11:41:41 UTC
Size:
4.80 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >inherit eutils java-pkg > >DESCRIPTION="A continuous build framework" >HOMEPAGE="http://cruisecontrol.sourceforge.net/" >SRC_URI="mirror://sourceforge/cruisecontrol/${P}.zip" > >LICENSE="" >SLOT="0" >KEYWORDS="~x86" > >IUSE="doc jikes junit checkstyle" > >DEPEND=">=virtual/jdk-1.4 > dev-java/ant-core > dev-java/sun-jaf-bin > checkstyle? (dev-java/checkstyle) > dev-java/commons-net > =dev-java/jakarta-oro-2* > =dev-java/jdom-1.0_beta9* > junit? (dev-java/junit) > dev-java/log4j > dev-java/sun-javamail-bin > =dev-java/mx4j-2.1* > =dev-java/xerces-1.3* > dev-java/xalan > =dev-java/batik-1.5.1 > dev-java/jcommon > dev-java/jfreechart" > ># Some of DEPEND are just used to build a war file for the webapp >RDEPEND=">=virtual/jre-1.4 > dev-java/sun-jaf-bin > =dev-java/jakarta-oro-2* > =dev-java/jdom-1.0_beta9* > dev-java/log4j > dev-java/sun-javamail-bin > =dev-java/mx4j-2.1* > =dev-java/xerces-1.3* > dev-java/xalan" > > >src_unpack() { > unpack ${A} > cd ${S} > > # disable checkstyle for the web app's compile target > epatch ${FILESDIR}/${P}-nocheckstyle.patch > > # gentooify the build.xml > epatch ${FILESDIR}/${P}-gentoo.patch > > echo "activation.jar=`java-config -p sun-jaf-bin`" >> build.properties > # TODO: update clover.jar > if use checkstyle; then > echo "checkstyle.jar=`java-config -p checkstyle`" >> build.properties > fi > echo "commons-net.jar=`java-config -p commons-net`" >> build.properties > echo "jakarta-oro.jar=`java-config -p jakarta-oro-2.0`" >> build.properties > echo "jdom.jar=`java-config -p jdom-1.0`" >> build.properties > if use junit; then > echo "junit.jar=`java-config -p junit`" >> build.properties > fi > echo "log4j.jar=`java-config -p log4j`" >> build.properties > echo "mail.jar=`java-pkg_jar-from sun-javamail-bin mail.jar`" >> build.properties > echo "mx4j-jmx.jar=`java-pkg_jar-from mx4j-2.1 mx4j-jmx`" >> build.properties > echo "mx4j-tools.jar=`java-pkg_jar-from mx4j-2.1 mx4j-tools`" >> build.properties > echo "xalan.jar=`java-config -p xalan`" >> build.properties > echo "xerces.jar=`java-config -p xerces-1.3`" >> build.properties > > cd ${S}/reporting/jsp > echo "batik-awt-util.jar=`java-pkg_jar-from batik batik-awt-util.jar`" >> build.properties > echo "batik-svggen.jar=`java-pkg_jar-from batik batik-svggen.jar`" >> build.properties > echo "batik-util.jar=`java-pkg_jar-from batik batik-util.jar`" >> build.properties > if use checkstyle; then > echo "checkstyle.jar=`java-config -p checkstyle`" >> build.properties > fi > # TODO: replace cewolf.jar > echo "commons-logging.jar=`java-config -p commons-logging`" >> build.properties > echo "jcommon.jar=`java-config -p jcommon`" >> build.properties > echo "jfreechart.jar=`java-config -p jfreechart`" >> build.properties > if use junit; then > echo "junit.jar=`java-config -p junit`" >> build.properties > fi > # TODO: figure out what servlet.jar comes from > echo "xalan.jar=`java-config -p xalan`" >> build.properties > echo "xerces.jar=`java-config -p xerces-1.3`" >> build.properties > > >} >src_compile() { > local antflags="jar" > cd ${S}/main > > if use jikes; then > antflags="${antflags} -Dbuild.compiler=jikes" > fi > > if use doc; then > antflags="${antflags} javadoc" > fi > > if use junit; then > antflags="${antflags} test-all" > fi > > if use checkstyle; then > antflags="${antflags} checkstyle" > fi > > ant ${antflags} || die "compilation of cruisecontrol failed" > > einfo "Building CruiseControl Web App" > cd ${S}/reporting/jsp > > # TODO: detect jdk version, and set the correct properties > cat << EOF > override.properties >user.log.dir=/var/cruisecontrol/logs >user.build.status.file=buildstatus.txt >cruise.build.artifacts.dir=/var/cruisecontrol/artifacts >jdk1.4=true >EOF > > antflags="war" > if use junit; then > antflags="${antflags} test-all" > fi > if use checkstyle; then > antflags="${antflags} checkstyle" > fi > if use jikes; then > antflags="${antflags} -Dbuild.compiler=jikes" > fi > ant ${antflags} || dir "Compile of cruisecontrol web app failed" >} > >src_install() { > cd ${S}/main > java-pkg_dojar dist/cruisecontrol.jar > > exeinto /usr/bin > doexe bin/cruisecontrol.sh > > dodoc README.txt license.txt > if use doc; then > dohtml -r docs > dohtml -r reporting/jsp/docs > fi > > cd ${S}/reporting/jsp > java-pkg_dowar dist/*.war >} > > >pkg_postinst() { > einfo "" > einfo "If this is the first time you install cruisecontrol," > einfo "try ebuild ${EBUILD} config" > einfo "to build a basic cruisecontrol directory structure" > einfo "with a sample configuration" > einfo "" >} > >pkg_config() { > einfo "Generating CruiseControl work directory in /var/cruisecontrol" > local CCDIR=/var/cruisecontrol > mkdir -p $CCDIR > test -d $CCDIR/checkout || mkdir $CCDIR/checkout > test -d $CCDIR/artifacts || mkdir $CCDIR/artifacts > test -d $CCDIR/logs || mkdir $CCDIR/logs > test -f $CCDIR/config.xml || cp ${FILESDIR}/config.xml $CCDIR > test -f $CCDIR/build.xml || cp ${FILESDIR}/build.xml $CCDIR >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 50972
:
41278
|
41279
|
41280
|
58438
|
58597
| 58602 |
58604
|
58674
|
58675
|
58677
|
58685
|
58686
|
59411
|
59412
|
59413
|
59414
|
59416
|
59629
|
59630
|
72708
|
72709
|
72711
|
72712
|
72972
|
72973
|
72974
|
103707
|
103708
|
103709
|
103710
|
103711