summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2013-02-19 07:28:38 +0000
committerMiroslav Šulc <fordfrog@gentoo.org>2013-02-19 07:28:38 +0000
commit309bf7541c6a3ff8fa6ad38a1b3f087e6aab712b (patch)
treef845dc83965a245bf4aac8ad44de07a9db109953 /www-servers
parentdev-java/tomcat-servlet-api: version bump (diff)
downloadhistorical-309bf7541c6a3ff8fa6ad38a1b3f087e6aab712b.tar.gz
historical-309bf7541c6a3ff8fa6ad38a1b3f087e6aab712b.tar.bz2
historical-309bf7541c6a3ff8fa6ad38a1b3f087e6aab712b.zip
www-servers/tomcat: version bump
Package-Manager: portage-2.1.11.52/cvs/Linux x86_64 Manifest-Sign-Key: 0xCFE47E2F
Diffstat (limited to 'www-servers')
-rw-r--r--www-servers/tomcat/ChangeLog8
-rw-r--r--www-servers/tomcat/Manifest15
-rw-r--r--www-servers/tomcat/files/tomcat-7.0.37-build.xml.patch105
-rw-r--r--www-servers/tomcat/tomcat-7.0.37.ebuild137
4 files changed, 263 insertions, 2 deletions
diff --git a/www-servers/tomcat/ChangeLog b/www-servers/tomcat/ChangeLog
index 9c6eb5cc14ca..23972621db7c 100644
--- a/www-servers/tomcat/ChangeLog
+++ b/www-servers/tomcat/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for www-servers/tomcat
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/ChangeLog,v 1.314 2013/01/17 10:29:05 fordfrog Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/ChangeLog,v 1.315 2013/02/19 07:28:33 fordfrog Exp $
+
+*tomcat-7.0.37 (19 Feb 2013)
+
+ 19 Feb 2013; Miroslav Šulc <fordfrog@gentoo.org> +tomcat-7.0.37.ebuild,
+ +files/tomcat-7.0.37-build.xml.patch:
+ version bump
*tomcat-7.0.35 (17 Jan 2013)
diff --git a/www-servers/tomcat/Manifest b/www-servers/tomcat/Manifest
index b860e0ef0d4d..6bcf4129f299 100644
--- a/www-servers/tomcat/Manifest
+++ b/www-servers/tomcat/Manifest
@@ -1,8 +1,12 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
AUX tomcat-6.0.36-build.xml.patch 950 SHA256 33af0fd388c439e3ee74fd2271d94066169b530b61dab3f1f01a094ec22e3f9f SHA512 69775288f3ba31bc5b3f1f6125c1ca6f27c64647eeeb40928227fcbeb3a33f832ccc24be051efec9f8ca575475549c6493b12495d4a98e9e4fd1c27b9af68f8c WHIRLPOOL e31b35c1395c152c65863cddd79617ec92b21269567fc1458914e6f9b10e3a70698987d05724e52b706e6e0cfeab56e818feca5d04d80ee08f24bfefe89ea63f
AUX tomcat-7.0.32-build.xml.patch 3852 SHA256 6b003e9c58131cfec4b5d312a18dbcd088428774a544d8d29b896542d3c92c5a SHA512 01feaa4428345203e2c5f0e28ee40bb9f7fd9351446e2454b43d5c1f7f7775606b70b47905e452511661e38ab5965865ed0622979e7845661c87e01a64f0e8cd WHIRLPOOL c86197abec4af7417803d85bd05615e24942f944fbda6712cf3c29ccd4989306f017663d378a719c2d71dd069d5c8850d5e2f4ec57b2243f4758c46bfe7ce2ed
AUX tomcat-7.0.33-build.xml.patch 3852 SHA256 6b003e9c58131cfec4b5d312a18dbcd088428774a544d8d29b896542d3c92c5a SHA512 01feaa4428345203e2c5f0e28ee40bb9f7fd9351446e2454b43d5c1f7f7775606b70b47905e452511661e38ab5965865ed0622979e7845661c87e01a64f0e8cd WHIRLPOOL c86197abec4af7417803d85bd05615e24942f944fbda6712cf3c29ccd4989306f017663d378a719c2d71dd069d5c8850d5e2f4ec57b2243f4758c46bfe7ce2ed
AUX tomcat-7.0.34-build.xml.patch 3852 SHA256 6b003e9c58131cfec4b5d312a18dbcd088428774a544d8d29b896542d3c92c5a SHA512 01feaa4428345203e2c5f0e28ee40bb9f7fd9351446e2454b43d5c1f7f7775606b70b47905e452511661e38ab5965865ed0622979e7845661c87e01a64f0e8cd WHIRLPOOL c86197abec4af7417803d85bd05615e24942f944fbda6712cf3c29ccd4989306f017663d378a719c2d71dd069d5c8850d5e2f4ec57b2243f4758c46bfe7ce2ed
AUX tomcat-7.0.35-build.xml.patch 3852 SHA256 6b003e9c58131cfec4b5d312a18dbcd088428774a544d8d29b896542d3c92c5a SHA512 01feaa4428345203e2c5f0e28ee40bb9f7fd9351446e2454b43d5c1f7f7775606b70b47905e452511661e38ab5965865ed0622979e7845661c87e01a64f0e8cd WHIRLPOOL c86197abec4af7417803d85bd05615e24942f944fbda6712cf3c29ccd4989306f017663d378a719c2d71dd069d5c8850d5e2f4ec57b2243f4758c46bfe7ce2ed
+AUX tomcat-7.0.37-build.xml.patch 3852 SHA256 6b003e9c58131cfec4b5d312a18dbcd088428774a544d8d29b896542d3c92c5a SHA512 01feaa4428345203e2c5f0e28ee40bb9f7fd9351446e2454b43d5c1f7f7775606b70b47905e452511661e38ab5965865ed0622979e7845661c87e01a64f0e8cd WHIRLPOOL c86197abec4af7417803d85bd05615e24942f944fbda6712cf3c29ccd4989306f017663d378a719c2d71dd069d5c8850d5e2f4ec57b2243f4758c46bfe7ce2ed
AUX tomcat-instance-manager.bash 6403 SHA256 09ff73a51d6f11b83c78d6306322455091da302c8d6bd711a0fa4983d850dab4 SHA512 7b51b77447854dd4c6fd4a3bc16aa912edcb5e31d64a4c47f24102c3fc29c2a18f51d8b8f0e28723fba694451c8ab780dcac3d12dc553dc3f182c1d1372e7171 WHIRLPOOL ad845aedd608615df243722be6a4e3ad477890ee8e59b5d0061c4490d95058d7857346bf545c16d7756ecfa62a0b31f137d819095461cb6180cc75df1d81511d
AUX tomcat.conf 1544 SHA256 6f74ff1ea148322d7595bb6bc10bd00a81851d1822046c01e7f42885b357a4cc SHA512 36ba5c4ccf9ac062acfaaecefd9aba1065fd5553df21cd9c2ffd2b320de472c3397d8499d3a2a96b51d8ef513aa86d5879a42287579da4152916802a988c7811 WHIRLPOOL f2ea708f87b21a004680f3f2865b98bfbeb4dbbee77ce19e7577a8d461df21d682136bda88591114c6b9c2e1dec42ed816ea4a981e6863ea1faaf3f0407dbce3
AUX tomcat.init 2989 SHA256 bae9e2663e5fda9c665fc97e916074cca46468560af17e3bbad030adf950e314 SHA512 0be4ed921efebc740326009bfb3cf33df0bcd3d24395381e8dfee09b993bbb1865369e7a1837710c5853d3d4534bbd4362a50edc05b30f2badbb942cf20ea65b WHIRLPOOL 0282df5c5a51449d81c8d4c38b64411c9cf0d9c66d2746f116760fc63dabb587c5f37361f2a87d1de22e2dc90ff7b53d5fc041be64caa12eddc701c7bf4fa154
@@ -11,10 +15,19 @@ DIST apache-tomcat-7.0.32-src.tar.gz 4236930 SHA256 ab4a752a9f833340dc3ceea85edf
DIST apache-tomcat-7.0.33-src.tar.gz 4240455 SHA256 f665b4b39471b6f7ddd10845058a76308694a8be24b7651971de86a34ca66243 SHA512 c0daaa785ac90c78fa52db576a9cbe67ab51d52fcc2f2155ccab188489e9c81cd9a6dc4302ec0a43b1628fad85245f382dc39adb62e8f8c1a65cde0439e1e62f WHIRLPOOL db7ddd69e8227c37278e5f2f95a365ddf0ad4d7d27dd697352fdc9e6138a9d0b3192ada7ffc5e9079ef6493e1a999c1cc979ba192219878b45003f0042138f3a
DIST apache-tomcat-7.0.34-src.tar.gz 4245974 SHA256 c05b85928ff870244a061700166ee781e66bad68f4a7867ba22c48beeec19fc0 SHA512 288dfb93e3999b336e06411012d11be94cfc799602bf226f6b61343928bf1b1f746cf92042ac1917be35a059a9bd32e1521b47facd7596b4515387a5d9a9d3c6 WHIRLPOOL 8f9e912179f452478466ed09f63731462eb83e6b3e3f46a5125ac6336b24579d297e65b00c1fa286d1d2afd446238b052d4935df3a7409ecc7e4c3497e7ed1d3
DIST apache-tomcat-7.0.35-src.tar.gz 4264802 SHA256 3eefa08c8600839f32555e9a306fe8f1232c05c846839ab6901e81e5a11fccac SHA512 d9e72e7d447d50b52fd532c27b161f86c5f49183ce3232b527db1a08966087c98ca09e6bc9d35bfed1fa9fd43555f0df6418b2fe8351031f42f6596b46b2f315 WHIRLPOOL dfe41ae70c41170747e75a48f1f683bedf25dab821760c4dc870ece96df0e2b010280c0d7fdb4682373268413bf734aa686cccc44851a11ab28760534ac97aca
+DIST apache-tomcat-7.0.37-src.tar.gz 4274266 SHA256 eb9d3e6b6ff5024bb6865a8bab57d3f01e221f4e8761c07a894e067f8ca63c0c SHA512 6203049adfe92a9ee9b9762e68f92881ad6564358a19cdec810ce7361fdb76d8c272c78cd954b6d00d0ff35a1b3f07442360e9f1c709bcde4e7e3d4a8c30f81b WHIRLPOOL 6bc96f91e537d8b5cc0247dc790553e93d5b9e5ddb1b3ca173c726ff93ea085a6f6fcf840c0851b7ebf92cc0be40b14005a2c17df706a114612057b676ef6aac
EBUILD tomcat-6.0.36.ebuild 3960 SHA256 03400e345a2e33c6f32f0d24f7ef2e946cf0432189ad4498c0929a3226c69ce4 SHA512 a666209dfb901795c9c1bfbdab04934bca2c0496d94c017033e3d1d96aac9b12187669459023836d87719f279c245f64701c226d0a5fb39f9e656c2ba726af08 WHIRLPOOL 486de361f58a411d40c4406f395ef6f6ebedfa4a10650065dfa97bafed1ffd325078e8bd95f3ee58b87bc0341bd504210680a512c646901befebd46fa750452b
EBUILD tomcat-7.0.32.ebuild 4041 SHA256 cfc34ea3aab98e6da8fdbb82fe314a3d14dddd99d551609a347a64ea4f8a7a2d SHA512 1abcee9506d04cae7c1936fa8a3f036d77e2519cf05b7f8d99602b35af339ecf279895cb38129920bbe1832a7db0cae2ac8a807fbb927ee01d6c0ba2f6748b8c WHIRLPOOL 9cf2d47341b35adeda484386ae1018e887d1be61edb0ed944dbd31e1fae3d4fdf98683b24d5d4cf21851381080dac1f04f20579893abba1672b8f2a5b6dc3949
EBUILD tomcat-7.0.33.ebuild 4045 SHA256 b6e3568e955e33109018f27de6d2a2b4f1adcb443d746a049914771d9fbdccf1 SHA512 104846c9ea88954459b3158eb312bf3e1a7f02248b9affe503d2638115fb8d8ee7938e0cc2eaafc93b520fdc353d0e2e5022ea10307737db3bdede91196c7247 WHIRLPOOL 5f9e6189ac0f94e5f1baea30ceee7564d3960287e210524f8f63889883601b84382959ed4867515a0a86091dd7b862c1b970dd087c1e4269abbc67713781f871
EBUILD tomcat-7.0.34.ebuild 4045 SHA256 6c58c64c00b878543d3685625cc788d5e01ad12cbb0eb20567d91f26dc99c03b SHA512 f7eeaa4ea1da2632e0ecfa67be4a487585b14701cea4818374ab88939920df6608b25d9a151e387ec4f49e705714976441a66883a6aab86d8d9caa7c5a3c69b1 WHIRLPOOL 41c7f7ec72b9db3adf64a777d8f6095d6aead0727a2da93fff33418935141e88776b48ca274afb684a9922dad5101bcf40915c1e4c97c637f80b85c39c0be44d
EBUILD tomcat-7.0.35.ebuild 4045 SHA256 08ab71a857ae0cbe9ef598b6d94e11833c5813ab166e18435e946ab01942610d SHA512 fb1aa3c4c8f3cb9cf8d152cbb56ab09e483df60c12240caf0a691e271eafebc05276a4aa3ffa82539047d71c4d6add84c2c378db849a8372885c9c5449d3c6e3 WHIRLPOOL e1e063cdaa99409aeca6ab7b6cb188ad2b849aaa7038d5c8c3ee2e4fc26404fb0e494b98b80a20acc1bb8295eba6a9080865ff7764f987fbb161d77fbb302b83
-MISC ChangeLog 75948 SHA256 edd416983b4a431291e0bff74f64aaba516ed64fc188857a89f78a9db792087e SHA512 9ad4de236989ac47aa7e6c1090e62e70a67937a6097d4c28a804eaaa1afa84852e153ce12a97ce1de3f7badbff1166f5dad1eb1ecadd6fbc9ca0b26e43536179 WHIRLPOOL 3ed4395baa160326d23f473249af99acb2ce619515d0d5d33be7da8110cb7a6207ade5dd724267160ccb96b8ef990d99de97cf83d2b0d34b3f4e7eceb9cb7947
+EBUILD tomcat-7.0.37.ebuild 4045 SHA256 a505ec55eb841776a5e52e2e567a6f5dacad63ca5d290b8cd9887e727eee0548 SHA512 f607e0928ebf57081bb45babdebf79faec2886f936071344a80c3d4c2523d7a543f7644a3a22cb9ed3a716e6a68d5b21383c650a4b7f4ee4cc4b256915b428f1 WHIRLPOOL c5699158ed2c6e2c10bb9086972e1471c70d1119f9df84b7629b714925a0943531713b774203df7eae8ff4f54d20269cbb1427b5e181bad597271a549339a531
+MISC ChangeLog 76109 SHA256 7cebd7287d744d814d1a6c4478acca8c786fc9737c94d5a65692fb6c27c35c82 SHA512 4c5ca459cbc5cd6bbd210b8bf6cc8af5a760576aebc1c8786d630763ebdf6b68f195ecd2f5b5ac43599558ec062a3444d6ed88d02f0a9957fb48a1bed0cd7b05 WHIRLPOOL 8d493ba1e6b7e6193b054d57a99368d127c07f78e54a52b85a1ca86d5f84bb23843a69b6cff8a1d0c1c541021741d4a4b1cecd48efd11dca0a27fbf506896855
MISC metadata.xml 561 SHA256 a53b91aa1c4371952ed465d0b570fde6eebd1a621804990aa3d2c31f3a8cecab SHA512 354849871d8ff7e9d3bba1bd412f78789693518f1f9804aac412b64e9e86622fb86080b8290bbe16424c760b3601e96824cb3f0b956edbc2245dfa5be299c8c5 WHIRLPOOL f740fcc281807c913934662fcff48a023d42065ec0b50564d4a12ff970ce09447cac0a71016a33ff4896a596dcd86cd9372b4a12286fb0bf46bb01bb6bd2c7e1
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iF4EAREIAAYFAlEjKaMACgkQ5LnnVc/kfi+FegD/UAMlYmFcnNRj6vEfg6i1Zmzs
+MNOJX9ZPODKDBr4ZfVcA/2Qfl3cYDReP+NN8x0Fdy2AEjO0KqGwoFDjJE2rGBeT+
+=tLkh
+-----END PGP SIGNATURE-----
diff --git a/www-servers/tomcat/files/tomcat-7.0.37-build.xml.patch b/www-servers/tomcat/files/tomcat-7.0.37-build.xml.patch
new file mode 100644
index 000000000000..9b07137451aa
--- /dev/null
+++ b/www-servers/tomcat/files/tomcat-7.0.37-build.xml.patch
@@ -0,0 +1,105 @@
+diff --git a/build.xml b/build.xml
+index 3ff8f81..83357a4 100644
+--- a/build.xml
++++ b/build.xml
+@@ -613,7 +614,8 @@
+ filesId="files.annotations-api"
+ manifest="${tomcat.manifests}/annotations-api.jar.manifest" />
+
+- <!-- Servlet 3.0 Implementation JAR File -->
++<!--
++ Servlet 3.0 Implementation JAR File
+ <jarIt jarfile="${servlet-api.jar}"
+ filesDir="${tomcat.classes}"
+ filesId="files.servlet-api"
+@@ -621,7 +623,7 @@
+ notice="${tomcat.manifests}/servlet-api.jar.notice"
+ license="${tomcat.manifests}/servlet-api.jar.license" />
+
+- <!-- JSP 2.2 Implementation JAR File -->
++ JSP 2.2 Implementation JAR File
+ <jarIt jarfile="${jsp-api.jar}"
+ filesDir="${tomcat.classes}"
+ filesId="files.jsp-api"
+@@ -629,11 +631,12 @@
+ notice="${tomcat.manifests}/jsp-api.jar.notice"
+ license="${tomcat.manifests}/jsp-api.jar.license" />
+
+- <!-- JSP 2.2 EL Implementation JAR File -->
++ JSP 2.2 EL Implementation JAR File
+ <jarIt jarfile="${el-api.jar}"
+ filesDir="${tomcat.classes}"
+ filesId="files.el-api"
+ manifest="${tomcat.manifests}/el-api.jar.manifest" />
++-->
+
+ <!-- Bootstrap JAR File -->
+ <jarIt jarfile="${bootstrap.jar}"
+@@ -834,13 +837,14 @@
+ <target name="deploy" depends="package,build-docs"
+ description="Default. Builds a working Tomcat instance">
+
++<!--
+ <copy tofile="${tomcat.build}/bin/tomcat-native.tar.gz"
+ file="${tomcat-native.tar.gz}" />
+ <copy tofile="${tomcat.build}/bin/commons-daemon-native.tar.gz"
+ file="${commons-daemon.native.src.tgz}" />
+
+ <copy tofile="${tomcat.build}/bin/commons-daemon.jar" file="${commons-daemon.jar}" />
+-
++-->
+ <!-- Copy scripts -->
+ <copy todir="${tomcat.build}/bin">
+ <fileset dir="bin">
+@@ -918,9 +922,11 @@
+ <!-- Add sources for examples -->
+ <antcall target="examples-sources" />
+
++<!--
+ <copy file="${tomcat-dbcp.jar}" todir="${tomcat.build}/lib"
+ failonerror="false"/>
+ <copy file="${jdt.jar}" todir="${tomcat.build}/lib" />
++-->
+
+ <!-- build the jdbc-pool jar and source jar-->
+ <echo message="Building Tomcat JDBC pool libraries"/>
+@@ -1355,7 +1361,8 @@
+
+ <target name="extras-webservices-prepare"
+ depends="extras-prepare"
+- description="Prepare to build web services extras package">
++ description="Prepare to build web services extras package"
++ unless="noget">
+
+ <antcall target="downloadfile">
+ <param name="sourcefile" value="${jaxrpc-lib.loc}"/>
+@@ -2278,7 +2285,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
+ </target>
+
+ <target name="download-compile"
+- description="Download (and build) components necessary to compile" >
++ description="Download (and build) components necessary to compile"
++ unless="noget">
+
+ <antcall target="downloadfile-2">
+ <param name="sourcefile.1" value="${tomcat-native.loc.1}"/>
+@@ -2335,7 +2343,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
+ </target>
+
+ <target name="download-test-compile"
+- description="Download additional components for the tests" >
++ description="Download additional components for the tests"
++ unless="noget">
+
+ <antcall target="downloadzip">
+ <param name="sourcefile" value="${junit.loc}"/>
+@@ -2346,7 +2355,8 @@ Apache Tomcat ${version} native binaries for Win64 AMD64/EMT64 platform.
+ </target>
+
+ <target name="download-dist"
+- description="Download additional components for a distribution" >
++ description="Download additional components for a distribution"
++ unless="noget">
+
+ <antcall target="downloadzip-2">
+ <param name="sourcefile.1" value="${tomcat-native.win.1}"/>
diff --git a/www-servers/tomcat/tomcat-7.0.37.ebuild b/www-servers/tomcat/tomcat-7.0.37.ebuild
new file mode 100644
index 000000000000..40953b183b8b
--- /dev/null
+++ b/www-servers/tomcat/tomcat-7.0.37.ebuild
@@ -0,0 +1,137 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/tomcat-7.0.37.ebuild,v 1.1 2013/02/19 07:28:33 fordfrog Exp $
+
+EAPI=4
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit eutils java-pkg-2 java-ant-2 prefix user
+
+MY_P="apache-${P}-src"
+
+DESCRIPTION="Tomcat Servlet-3.0/JSP-2.2 Container"
+HOMEPAGE="http://tomcat.apache.org/"
+SRC_URI="mirror://apache/${PN}/tomcat-7/v${PV}/src/${MY_P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="7"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
+IUSE="extra-webapps"
+
+RESTRICT="test" # can we run them on a production system?
+
+ECJ_SLOT="4.2"
+SAPI_SLOT="3.0"
+
+COMMON_DEP="
+ dev-java/eclipse-ecj:${ECJ_SLOT}
+ ~dev-java/tomcat-servlet-api-${PV}
+ extra-webapps? ( dev-java/jakarta-jstl:0 )"
+RDEPEND="${COMMON_DEP}
+ !<dev-java/tomcat-native-1.1.24
+ >=virtual/jre-1.6"
+DEPEND="${COMMON_DEP}
+ >=virtual/jdk-1.6
+ >=dev-java/ant-core-1.8.1:0
+ test? (
+ dev-java/ant-junit:0
+ dev-java/junit:4
+ )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ java-pkg-2_pkg_setup
+ enewgroup tomcat 265
+ enewuser tomcat 265 -1 /dev/null tomcat
+}
+
+java_prepare() {
+ find -name '*.jar' -exec rm -v {} + || die
+ epatch "${FILESDIR}/${P}-build.xml.patch"
+
+ # For use of catalina.sh in netbeans
+ sed -i -e "/^# ----- Execute The Requested Command/ a\
+ CLASSPATH=\`java-config --classpath ${PN}-${SLOT}\`" \
+ bin/catalina.sh || die
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="true"
+
+EANT_BUILD_TARGET="deploy"
+EANT_GENTOO_CLASSPATH="tomcat-servlet-api-${SAPI_SLOT},eclipse-ecj-${ECJ_SLOT}"
+EANT_GENTOO_CLASSPATH_EXTRA="${S}/output/classes"
+EANT_NEEDS_TOOLS="true"
+EANT_EXTRA_ARGS="-Dversion=${PV}-gentoo -Dversion.number=${PV} -Dcompile.debug=false"
+
+src_compile() {
+ EANT_GENTOO_CLASSPATH_EXTRA+=":$(java-pkg_getjar --build-only ant-core ant.jar)"
+ java-pkg-2_src_compile
+}
+
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
+
+src_test() {
+ java-pkg-2_src_test
+}
+
+src_install() {
+ local dest="/usr/share/${PN}-${SLOT}"
+
+ java-pkg_jarinto "${dest}"/bin
+ java-pkg_dojar output/build/bin/*.jar
+ exeinto "${dest}"/bin
+ doexe output/build/bin/*.sh
+
+ java-pkg_jarinto "${dest}"/lib
+ java-pkg_dojar output/build/lib/*.jar
+
+ # so we don't have to call java-config with --with-dependencies, which might
+ # bring in more jars then actually desired.
+ java-pkg_addcp "$(java-pkg_getjars eclipse-ecj-${ECJ_SLOT},tomcat-servlet-api-${SAPI_SLOT})"
+
+ dodoc RELEASE-NOTES RUNNING.txt
+ use doc && java-pkg_dojavadoc output/dist/webapps/docs/api
+ use source && java-pkg_dosrc java/*
+
+ ### Webapps ###
+
+ insinto "${dest}"/webapps
+ doins -r output/build/webapps/{host-manager,manager,ROOT}
+ use extra-webapps && doins -r output/build/webapps/{docs,examples}
+
+ ### Config ###
+
+ # replace the default pw with a random one, see #92281
+ local randpw=$(echo ${RANDOM}|md5sum|cut -c 1-15)
+ sed -i -e "s|SHUTDOWN|${randpw}|" output/build/conf/server.xml || die
+
+ insinto "${dest}"
+ doins -r output/build/conf
+
+ ### rc ###
+
+ cp "${FILESDIR}"/tomcat{.conf,.init,-instance-manager.bash} "${T}" || die
+ eprefixify "${T}"/tomcat{.conf,.init,-instance-manager.bash}
+ sed -i -e "s|@SLOT@|${SLOT}|g" "${T}"/tomcat{.conf,.init,-instance-manager.bash} || die
+
+ insinto "${dest}"/gentoo
+ doins "${T}"/tomcat.conf
+ exeinto "${dest}"/gentoo
+ doexe "${T}"/tomcat{.init,-instance-manager.bash}
+}
+
+pkg_postinst() {
+ elog "New ebuilds of Tomcat support running multiple instances. If you used prior version"
+ elog "of Tomcat (<7.0.32), you have to migrate your existing instance to work with new Tomcat."
+ elog "You can find more information at https://wiki.gentoo.org/wiki/Apache_Tomcat"
+
+ elog "To manage Tomcat instances, run:"
+ elog " ${EPREFIX}/usr/share/${PN}-${SLOT}/gentoo/tomcat-instance-manager.bash --help"
+
+ ewarn "tomcat-dbcp.jar is not built at this time. Please fetch jar"
+ ewarn "from upstream binary if you need it. Gentoo Bug # 144276"
+
+# einfo "Please read http://www.gentoo.org/proj/en/java/tomcat6-guide.xml for more information."
+}