diff options
author | Yuan Liao <liaoyuan@gmail.com> | 2022-01-13 14:46:12 -0800 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2022-01-15 10:28:33 +0100 |
commit | a412428273d4599a10dc6d15e926a35d61bf0bc3 (patch) | |
tree | 95570937406996e5f4a5e9db0900afef496f0f9c /dev-java/c3p0 | |
parent | sys-apps/systemd-readahead: Fix depends (diff) | |
download | gentoo-a412428273d4599a10dc6d15e926a35d61bf0bc3.tar.gz gentoo-a412428273d4599a10dc6d15e926a35d61bf0bc3.tar.bz2 gentoo-a412428273d4599a10dc6d15e926a35d61bf0bc3.zip |
dev-java/c3p0: Add 0.9.5.5 with EAPI 8, updated HOMEPAGE and LICENSE
Closes: https://bugs.gentoo.org/719144
Bug: https://bugs.gentoo.org/830920
Signed-off-by: Yuan Liao <liaoyuan@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/23793
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/c3p0')
-rw-r--r-- | dev-java/c3p0/Manifest | 1 | ||||
-rw-r--r-- | dev-java/c3p0/c3p0-0.9.5.5.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-java/c3p0/Manifest b/dev-java/c3p0/Manifest index 9d8536667d68..60f04d138934 100644 --- a/dev-java/c3p0/Manifest +++ b/dev-java/c3p0/Manifest @@ -1 +1,2 @@ DIST c3p0-0.9.5.1.src.tgz 839657 BLAKE2B b8cf89ecb5b3766852355cdeb234698b0d1d8327233152e2e51ddcfe4a6e3be5f0fe4cc12a70d0df90d8ead90b3506b405f267f83bbb4a2a0ea1ac9d86051c64 SHA512 1843696d48e68f6120a68c42f0eb60c342ed8d1ddcc1d78c500d85c3d7e5e48358d100ecb1e0efa192aba34c5d9221437d53c2a968a42b797ff84bc12db4a724 +DIST c3p0-0.9.5.5.src.tgz 869069 BLAKE2B 6e1349d1cd02647a7c2424b8e89a8c21cfd8faefd26b7e05ee9e2da1a1a501b2b3102b142eef52f56dea672408d683a6f47b4c89b25d529a578c4b1fe4aa819c SHA512 fa96b5d0042442c773309090b9cf8f0db8e16f334e321ac952afb198ca06cd66f6f7162369f22a439a0e6b45b1ffcddf540af53804f223844d7a5465213bece1 diff --git a/dev-java/c3p0/c3p0-0.9.5.5.ebuild b/dev-java/c3p0/c3p0-0.9.5.5.ebuild new file mode 100644 index 000000000000..811960203a42 --- /dev/null +++ b/dev-java/c3p0/c3p0-0.9.5.5.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Tests require an existing running SQL server and 'junit.jar.file' property +JAVA_PKG_IUSE="doc examples source" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="JDBC drivers with JNDI-bindable DataSources" +HOMEPAGE="https://www.mchange.com/projects/c3p0/" + +SRC_URI="mirror://sourceforge/${PN}/${P}.src.tgz" +LICENSE="|| ( EPL-1.0 LGPL-2.1 )" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" + +CP_DEPEND=" + dev-java/log4j:0 + dev-java/mchange-commons:0 +" + +DEPEND=" + >=virtual/jdk-1.8:* + ${CP_DEPEND} +" + +RDEPEND=" + >=virtual/jre-1.8:* + ${CP_DEPEND} +" + +S="${WORKDIR}/${P}.src" + +JAVA_ANT_REWRITE_CLASSPATH="yes" + +src_prepare() { + java-pkg_clean + java-pkg-2_src_prepare + java-pkg_jar-from --into lib/ log4j + java-pkg_jar-from --into lib/ mchange-commons + + # Test sources interfere with Javadoc generation on JDK 11 + # Remove since the tests will never be run + rm -r src/java/com/mchange/v2/c3p0/test || + die "Failed to remove unused test sources" +} + +src_install() { + java-pkg_newjar "build/${P}.jar" + einstalldocs + + use doc && java-pkg_dojavadoc build/apidocs + use examples && java-pkg_doexamples src/java/com/mchange/v2/c3p0/example + use source && java-pkg_dosrc src/java/com/mchange/v2 +} |