forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Closes: gentoo#23793 Signed-off-by: Miroslav Šulc <[email protected]>
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
} |