public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/opendbx/
Date: Wed, 10 May 2023 11:29:53 +0000 (UTC)	[thread overview]
Message-ID: <1683718180.f8dc7a062800b34c10c063f99f697c0d15a49721.sam@gentoo> (raw)

commit:     f8dc7a062800b34c10c063f99f697c0d15a49721
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Wed May 10 11:08:51 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed May 10 11:29:40 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8dc7a06

dev-db/opendbx: EAPI 8, wire up (restricted) tests

Closes: https://bugs.gentoo.org/891689
Signed-off-by: Sam James <sam <AT> gentoo.org>

 ...dbx-1.4.6-r5.ebuild => opendbx-1.4.6-r6.ebuild} | 46 ++++++++++++++--------
 1 file changed, 29 insertions(+), 17 deletions(-)

diff --git a/dev-db/opendbx/opendbx-1.4.6-r5.ebuild b/dev-db/opendbx/opendbx-1.4.6-r6.ebuild
similarity index 74%
rename from dev-db/opendbx/opendbx-1.4.6-r5.ebuild
rename to dev-db/opendbx/opendbx-1.4.6-r6.ebuild
index a84c00e4f96d..5a24ad4af48d 100644
--- a/dev-db/opendbx/opendbx-1.4.6-r5.ebuild
+++ b/dev-db/opendbx/opendbx-1.4.6-r6.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="6"
+EAPI=8
 
 inherit autotools flag-o-matic
 
@@ -12,26 +12,35 @@ SRC_URI="https://www.linuxnetworks.de/opendbx/download/${P}.tar.gz"
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="amd64 ~arm64 x86"
-IUSE="firebird +man +mysql oracle postgres sqlite"
-RESTRICT="firebird? ( bindist )"
+IUSE="firebird +man +mysql oracle postgres sqlite test"
+# The test programs need manual/interactive use.
+RESTRICT="
+	firebird? ( bindist )
+	!test? ( test )
+	test
+"
+REQUIRED_USE="|| ( firebird mysql oracle postgres sqlite )"
 
 RDEPEND="mysql? ( dev-db/mysql-connector-c:0= )
 	postgres? ( dev-db/postgresql:* )
 	sqlite? ( dev-db/sqlite:3 )
 	oracle? ( dev-db/oracle-instantclient[sdk] )
 	firebird? ( dev-db/firebird )"
-DEPEND="${RDEPEND}
-	man? ( app-doc/doxygen
-		app-text/docbook2X )"
-
-REQUIRED_USE="|| ( firebird mysql oracle postgres sqlite )"
-
-PATCHES=( "${FILESDIR}/${PN}-doxy.patch"
-	"${FILESDIR}/${PN}-man-optional.patch" )
+DEPEND="${RDEPEND}"
+BDEPEND="
+	man? (
+		app-doc/doxygen
+		app-text/docbook2X
+	)
+"
+
+PATCHES=(
+	"${FILESDIR}/${PN}-doxy.patch"
+	"${FILESDIR}/${PN}-man-optional.patch"
+)
 
 pkg_setup() {
-	if use oracle && [[ ! -d ${ORACLE_HOME} ]]
-	then
+	if use oracle && [[ ! -d ${ORACLE_HOME} ]]; then
 		die "Oracle support requested, but ORACLE_HOME not set to a valid directory!"
 	fi
 }
@@ -50,8 +59,8 @@ src_configure() {
 	use postgres && backends="${backends} pgsql"
 	use sqlite && backends="${backends} sqlite3"
 
-	use mysql && append-cppflags -I/usr/include/mysql
-	use firebird && append-cppflags -I/opt/firebird/include
+	use mysql && append-cppflags -I"${ESYSROOT}"/usr/include/mysql
+	use firebird && append-cppflags -I"${ESYSROOT}"/opt/firebird/include
 
 	if use oracle ; then
 		# Traditionally, OCI header files are provided in:
@@ -71,7 +80,10 @@ src_configure() {
 	# bug #788304
 	append-cxxflags -std=c++14
 
-	econf --with-backends="${backends}" --enable-manpages="$(usex man yes no)"
+	econf \
+		--with-backends="${backends}" \
+		--enable-manpages="$(usex man yes no)" \
+		$(use_enable test)
 }
 
 src_compile() {


             reply	other threads:[~2023-05-10 11:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-10 11:29 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-01-20 13:31 [gentoo-commits] repo/gentoo:master commit in: dev-db/opendbx/ Joonas Niilola
2023-01-20 13:31 Joonas Niilola
2022-12-28 22:25 Sam James
2022-12-28 22:25 Sam James
2022-02-10 22:47 Jonas Stein
2022-01-15 21:51 Sam James
2021-08-04 22:34 Sam James
2021-07-29  2:59 Sam James
2021-04-23  6:53 Michael Haubenwallner
2020-10-01 11:09 Sam James
2018-04-05 15:21 Aaron Bauman

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=1683718180.f8dc7a062800b34c10c063f99f697c0d15a49721.sam@gentoo \
    --to=sam@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