diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-06-02 23:06:28 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-06-03 09:11:22 +0200 |
commit | 95bc042cd2b35bfad9db48b3ebf4d48f3815436d (patch) | |
tree | 877bc089817186a78f502d6b6a1025201722bf6a /dev-java/jdbc-mysql | |
parent | eclass/kernel-install.eclass: omit some dracut modules for tests (diff) | |
download | gentoo-95bc042cd2b35bfad9db48b3ebf4d48f3815436d.tar.gz gentoo-95bc042cd2b35bfad9db48b3ebf4d48f3815436d.tar.bz2 gentoo-95bc042cd2b35bfad9db48b3ebf4d48f3815436d.zip |
dev-java/jdbc-mysql: bump to 8.0.25
Bug: https://bugs.gentoo.org/565036
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/21093
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jdbc-mysql')
-rw-r--r-- | dev-java/jdbc-mysql/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jdbc-mysql/jdbc-mysql-8.0.25.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-java/jdbc-mysql/Manifest b/dev-java/jdbc-mysql/Manifest index 409a5b3cb9d8..6e4b900fedbf 100644 --- a/dev-java/jdbc-mysql/Manifest +++ b/dev-java/jdbc-mysql/Manifest @@ -1 +1,2 @@ +DIST jdbc-mysql-8.0.25-sources.jar 1556319 BLAKE2B 75eb4837f6916247650a925f87d52e49848e3bc52cfa683a149624e4b749c3c4b3a7336a5659dd0c894f0285254c915364d9ffd7b4779c87e0894053a2854a5c SHA512 c4384213845c43a494360131dcb7b9b424473237b65504d5ed4a7929cb8bb7b4b3c7cce6fde2c20a7026891751e76c78ea64af746a053ca42567a7e68782280e DIST mysql-connector-java-5.1.26.tar.gz 3724076 BLAKE2B b5477e0f86a04b2135a47e3551cc89fa5f63f46faaccbf1e4473eb59e6d266d22d76a5c256d125feeeccd4625c22bcedaa9e21e613bf9759459e106b7d30db5f SHA512 93b882f5262dc991aa885ed9ae7fead02b9d28431022c86c6724272b508e78eee3df7310e9964e60f68953ed56f4fcdf9159a90f463eb39aea65af2453371879 diff --git a/dev-java/jdbc-mysql/jdbc-mysql-8.0.25.ebuild b/dev-java/jdbc-mysql/jdbc-mysql-8.0.25.ebuild new file mode 100644 index 000000000000..84cd206cdcc2 --- /dev/null +++ b/dev-java/jdbc-mysql/jdbc-mysql-8.0.25.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# Skeleton command: +# java-ebuilder --generate-ebuild --workdir . --pom mysql-connector-java-8.0.25.pom.xml --download-uri https://repo1.maven.org/maven2/mysql/mysql-connector-java/8.0.25/mysql-connector-java-8.0.25-sources.jar --slot 0 --keywords "~amd64 ~ppc64 ~x86" --ebuild jdbc-mysql-8.0.25.ebuild + +EAPI=7 + +JAVA_PKG_IUSE="doc source" +MAVEN_ID="mysql:mysql-connector-java:8.0.25" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="JDBC Type 4 driver for MySQL" +HOMEPAGE="https://dev.mysql.com/doc/connector-j/en/" +SRC_URI="https://repo1.maven.org/maven2/mysql/mysql-connector-java/${PV}/mysql-connector-java-${PV}-sources.jar -> ${P}-sources.jar" + +LICENSE="GPL-2-with-MySQL-FLOSS-exception" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" + +# Common dependencies +# POM: mysql-connector-java-${PV}.pom.xml +# com.google.protobuf:protobuf-java:3.11.4 -> !!!groupId-not-found!!! + +CDEPEND="dev-java/c3p0:0 + dev-java/protobuf-java:0 + dev-java/slf4j-api:0" +DEPEND=" ${CDEPEND} + >=virtual/jdk-1.8:* " +RDEPEND=" ${CDEPEND} + >=virtual/jre-1.8:* " +BDEPEND="app-arch/unzip" + +DOCS=( META-INF/README ) + +S="${WORKDIR}" + +JAVA_GENTOO_CLASSPATH="c3p0,protobuf-java,slf4j-api" + +JAVA_SRC_DIR="com" +JAVA_RESOURCE_DIRS="res" + +src_prepare() { + default + mkdir --parents "${JAVA_RESOURCE_DIRS}" || die + cp -r "${JAVA_SRC_DIR}" "META-INF" "${JAVA_RESOURCE_DIRS}" + find "${JAVA_RESOURCE_DIRS}" -type f -name '*.java' -exec rm -rf {} + || die +} + +src_install() { + default + java-pkg-simple_src_install +} |