Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 59411 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]
dev-util/cruisecontrol/cruisecontrol-2.2.1.ebuild
cruisecontrol-2.2.1.ebuild (text/plain), 6.02 KB, created by
Christopher G. Stach II
on 2005-05-20 14:58:35 UTC
(
hide
)
Description:
dev-util/cruisecontrol/cruisecontrol-2.2.1.ebuild
Filename:
MIME Type:
Creator:
Christopher G. Stach II
Created:
2005-05-20 14:58:35 UTC
Size:
6.02 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 > junit? (dev-java/junit) > dev-java/log4j > =dev-java/servletapi-2.4* > 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" > ># ># For jfreechart distributed with CruiseControl -cgs ># ># =dev-java/jfreechart-0.9.8" > ># ># For newer jfreechart, when CruiseControl can use it -cgs ># ># 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 > dev-java/log4j > dev-java/sun-javamail-bin > =dev-java/mx4j-2.1* > =dev-java/xerces-1.3* > dev-java/xalan" > >CRUISE_CONF_DIR="/etc/cruisecontrol" >CRUISE_WORK_DIR="/var/cruisecontrol" >CRUISE_LOG_DIR="/var/log/cruisecontrol" > >CRUISE_USER="cruise" >CRUISE_GROUP="cruise" > >src_unpack() { > unpack ${A} > cd ${S} > > # gentooify the build.xml > epatch ${FILESDIR}/${P}-gentoo.patch > > # Patch for PMD reports -cgs > epatch ${FILESDIR}/${P}-pmd.patch > > # > # For newer jfreechart, when CruiseControl can use it -cgs > # > #epatch ${FILESDIR}/${P}-jfreechart.patch > > # > # Begin build.properties > # > > 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 > > java-pkg_jar-from sun-javamail-bin mail.jar > java-pkg_jar-from mx4j-2.1 mx4j-jmx > java-pkg_jar-from mx4j-2.1 mx4j-tools > > echo "xalan.jar=`java-config -p xalan`" >> build.properties > echo "xerces.jar=`java-config -p xerces-1.3`" >> build.properties > > # > # End build.properties > # > > cd ${S}/reporting/jsp > > cd lib > > java-pkg_jar-from batik batik-awt-util.jar > java-pkg_jar-from batik batik-svggen.jar > java-pkg_jar-from batik batik-util.jar > > cd .. > > # > # Begin reporting/jsp/build.properties > # > > #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 > > # > # For newer jfreechart, when CruiseControl can use it -cgs > # > #echo "jfreechart.jar=`java-config -p jfreechart`" >> build.properties > > if use junit; then > echo "junit.jar=`java-config -p junit`" >> build.properties > fi > > # > # Apparently, this doesn't work. 2.3 doesn't, either. -cgs > # > #echo "servlet.jar=`java-config -p servletapi-2.4`" >> build.properties > > #echo "xalan.jar=`java-config -p xalan`" >> build.properties > #echo "xerces.jar=`java-config -p xerces-1.3`" >> build.properties > > # > # End reporting/jsp/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=${CRUISE_WORK_DIR}/logs >user.build.status.file=buildstatus.txt >cruise.build.artifacts.dir=${CRUISE_WORK_DIR}/artifacts >jdk1.4=true >EOF > > antflags="war" > > # > # test happens before war -cgs > # > #if use junit; then > # antflags="${antflags} test" > #fi > > if use checkstyle; then > antflags="${antflags} checkstyle" > fi > > # Over here, both Jikes 1.21 and 1.22 segfault during this build. -cgs > #if use jikes; then > # antflags="${antflags} -Dbuild.compiler=jikes" > #fi > > ant ${antflags} || die "Compile of CruiseControl web app failed" >} > >src_install() { > cd ${S}/main > > java-pkg_dojar dist/cruisecontrol.jar > > # > # This script TOTALLY doesn't work. -cgs > # > #exeinto /usr/bin > #doexe bin/cruisecontrol.sh > > dodoc license.txt > > if use doc; then > dohtml -r docs > dohtml -r reporting/jsp/docs > fi > > cd ${S}/reporting/jsp > > java-pkg_dowar dist/*.war > > enewgroup ${CRUISE_GROUP} > > # Just in case. See below. -cgs > /usr/sbin/nscd -i group > > enewuser ${CRUISE_USER} -1 /bin/bash ${CRUISE_WORK_DIR} ${CRUISE_GROUP} > > # Old cache produces "install: invalid user `cruise'" -cgs > /usr/sbin/nscd -i passwd > > insinto ${CRUISE_CONF_DIR} > newins ${FILESDIR}/config-2.2.1.xml config.xml > > exeinto /etc/init.d > newinitd ${FILESDIR}/cruisecontrol.init cruisecontrol > > diropts -m 0775 -o root -g ${CRUISE_GROUP} > keepdir ${CRUISE_LOG_DIR} > > diropts -m 0775 -g ${CRUISE_GROUP} > keepdir ${CRUISE_WORK_DIR} > > diropts -m 0775 -o ${CRUISE_USER} -g ${CRUISE_GROUP} > keepdir ${CRUISE_WORK_DIR}/artifacts > keepdir ${CRUISE_WORK_DIR}/checkout > keepdir ${CRUISE_WORK_DIR}/logs >} >
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