From: "Miroslav Šulc" <fordfrog@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/jdbc-postgresql/
Date: Wed, 23 Jun 2021 08:13:10 +0000 (UTC) [thread overview]
Message-ID: <1624435981.8c4cf16616599f1ae4d5f336a5f1b264e9a1855e.fordfrog@gentoo> (raw)
commit: 8c4cf16616599f1ae4d5f336a5f1b264e9a1855e
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 23 07:54:44 2021 +0000
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Wed Jun 23 08:13:01 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c4cf166
dev-java/jdbc-postgresql: eapi7, java 1.8, updated deps
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>
....ebuild => jdbc-postgresql-9.4_p1206-r1.ebuild} | 32 ++++++++++++++--------
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206.ebuild b/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206-r1.ebuild
similarity index 80%
rename from dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206.ebuild
rename to dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206-r1.ebuild
index cb6986cc677..b5bfb41864b 100644
--- a/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206.ebuild
+++ b/dev-java/jdbc-postgresql/jdbc-postgresql-9.4_p1206-r1.ebuild
@@ -1,11 +1,11 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI="5"
+EAPI=7
JAVA_PKG_IUSE="doc source"
-inherit epatch java-pkg-2 java-ant-2
+inherit java-pkg-2 java-ant-2
MY_PN="postgresql-jdbc"
MY_PV="${PV/_p/-}"
@@ -20,28 +20,36 @@ SLOT="0"
KEYWORDS="amd64 ppc64 x86"
IUSE="test"
+# it does not compile with jdk 11, newer versions should be fine
+# BUILD FAILED
+# /var/tmp/portage/dev-java/jdbc-postgresql-9.4_p1206-r1/work/postgresql-jdbc-9.4-1206.src/build.xml:197: Unknown JDK version.
DEPEND="
- >=virtual/jdk-1.6
+ virtual/jdk:1.8
doc? (
dev-libs/libxslt
app-text/docbook-xsl-stylesheets
)
test? (
- >=dev-db/postgresql-9.3[server]
- dev-java/ant-junit
+ dev-db/postgresql[server]
+ dev-java/ant-junit:0
+ dev-java/hamcrest-core:1.3
dev-java/junit:4
- dev-java/xml-commons
+ dev-java/xml-commons-resolver:0
)"
-RDEPEND=">=virtual/jre-1.6"
+RDEPEND=">=virtual/jre-1.8:*"
RESTRICT="test" # Requires external postgresql server setup
S="${WORKDIR}/postgresql-jdbc-${MY_PV}.src"
+HTML_DOCS=( build/doc/pgjdbc.html )
+
JAVA_ANT_REWRITE_CLASSPATH="yes"
EANT_DOC_TARGET="publicapi"
-java_prepare() {
+src_prepare() {
+ default
+
# Strip build.xml of maven deps
sed -i -e '/<classpath.*dependency\.compile\.classpath/c\' build.xml || die
sed -i -e '/<classpath.*dependency\.runtime\.classpath/c\' build.xml || die
@@ -52,14 +60,14 @@ java_prepare() {
# Remove SSPI, it pulls in Waffle-JNA and is only used on Windows
sed -i -e '/<include.*sspi/c\' build.xml || die
rm -vrf org/postgresql/sspi || die "Error removing sspi"
- epatch "${FILESDIR}"/${PN}-9.4_p1204-remove-sspi.patch
+ eapply "${FILESDIR}"/${PN}-9.4_p1204-remove-sspi.patch
# FIXME @someone who cares: enable through osgi flag?
sed -i -e '/<include.*osgi/c\' build.xml || die
sed -i -e '/<test.*osgi/c\' build.xml || die
rm -vrf org/postgresql/osgi || die "Error removing osgi"
rm -vrf org/postgresql/test/osgi || die "Error removing osgi tests"
- epatch "${FILESDIR}"/${PN}-9.4_p1201-remove-osgi.patch
+ eapply "${FILESDIR}"/${PN}-9.4_p1201-remove-osgi.patch
java-pkg_clean
}
@@ -87,7 +95,7 @@ src_test() {
einfo "You can find a general info on how to perform these steps at"
einfo "https://wiki.gentoo.org/wiki/PostgreSQL"
- ANT_TASKS="ant-junit" eant test -Dgentoo.classpath=$(java-pkg_getjars --build-only "junit-4,xml-commons")
+ ANT_TASKS="ant-junit" eant test -Dgentoo.classpath=$(java-pkg_getjars --build-only "hamcrest-core-1.3,junit-4,xml-commons-resolver")
}
src_install() {
@@ -95,7 +103,7 @@ src_install() {
if use doc ; then
java-pkg_dojavadoc build/publicapi
- dohtml build/doc/pgjdbc.html
+ einstalldocs
fi
use source && java-pkg_dosrc org
next reply other threads:[~2021-06-23 8:13 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-23 8:13 Miroslav Šulc [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-06-25 16:55 [gentoo-commits] repo/gentoo:master commit in: dev-java/jdbc-postgresql/ Miroslav Šulc
2024-06-25 12:38 Patrick Lauer
2024-01-10 8:29 Florian Schmaus
2024-01-07 12:42 Arthur Zamarin
2024-01-07 7:10 Sam James
2024-01-07 6:14 Sam James
2023-12-08 9:44 Miroslav Šulc
2023-04-25 5:30 Miroslav Šulc
2023-04-24 14:40 Jakov Smolić
2023-04-24 12:40 Sam James
2023-04-24 12:40 Sam James
2023-03-24 8:54 Miroslav Šulc
2022-10-20 16:32 Miroslav Šulc
2022-10-20 10:56 Jakov Smolić
2022-10-20 10:52 Jakov Smolić
2022-10-19 0:39 Sam James
2022-09-17 12:47 Florian Schmaus
2022-08-15 17:20 John Helmert III
2022-08-15 7:46 Agostino Sarubbo
2022-08-13 6:58 Agostino Sarubbo
2022-08-12 13:17 Arthur Zamarin
2022-08-10 6:04 Florian Schmaus
2022-07-28 7:06 Agostino Sarubbo
2022-07-25 4:19 Sam James
2022-06-20 7:41 Florian Schmaus
2021-06-23 8:13 Miroslav Šulc
2018-04-08 18:38 James Le Cuirot
2016-02-14 10:11 Agostino Sarubbo
2016-01-25 15:44 Agostino Sarubbo
2015-12-05 19:49 Patrice Clement
2015-12-05 19:49 Patrice Clement
2015-11-03 13:45 Patrice Clement
2015-09-29 21:04 Patrice Clement
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1624435981.8c4cf16616599f1ae4d5f336a5f1b264e9a1855e.fordfrog@gentoo \
--to=fordfrog@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox