From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/mariadb-connector-odbc/
Date: Sat, 13 May 2023 03:34:58 +0000 (UTC) [thread overview]
Message-ID: <1683948847.28383056c56dc281ddba30f18757d73337319ecf.sam@gentoo> (raw)
commit: 28383056c56dc281ddba30f18757d73337319ecf
Author: Jaco Kroon <jaco <AT> uls <DOT> co <DOT> za>
AuthorDate: Wed May 10 09:25:51 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May 13 03:34:07 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28383056
dev-db/mariadb-connector-odbc: add 3.1.18
Closes: https://bugs.gentoo.org/895272
Signed-off-by: Jaco Kroon <jaco <AT> uls.co.za>
Signed-off-by: Sam James <sam <AT> gentoo.org>
dev-db/mariadb-connector-odbc/Manifest | 1 +
.../mariadb-connector-odbc-3.1.18.ebuild | 67 ++++++++++++++++++++++
2 files changed, 68 insertions(+)
diff --git a/dev-db/mariadb-connector-odbc/Manifest b/dev-db/mariadb-connector-odbc/Manifest
index e030dd17121f..ca867fe9f53f 100644
--- a/dev-db/mariadb-connector-odbc/Manifest
+++ b/dev-db/mariadb-connector-odbc/Manifest
@@ -1 +1,2 @@
DIST mariadb-connector-odbc-3.1.14-src.tar.gz 549698 BLAKE2B 612879086805c57b42036bb224b14ef1ab287d2ff288a5ec5ec6db7334fc8b82acd648476eca1dee282393486d117cadf1bbdcb0e78eae52bab26a0c05cb1fbe SHA512 bb3cb74ccd17a8df39456ccf3091579bbdfc56431954a978f488928df54e3f9ad1c5b67cb411be4b661ba0e0bdd69ccd4d00ea4bfd72c3f448b560031830512d
+DIST mariadb-connector-odbc-3.1.18-src.tar.gz 556590 BLAKE2B 9644521f91136b3bc30846d8c9df7cfa21c8fff0e9219bf0c758a0294f34783a57f1200834b84833284624160652315adb4f6eb465a90378e676e5767c7bd40a SHA512 1d240988d03dbb0ef2f4eb0667ff973a35d700f319caaea78db6d5c0ca569ed5adcee978fb10cd9f067c0c5aecbfe697e5adb3d736e564bae82cf6c11cd0dba2
diff --git a/dev-db/mariadb-connector-odbc/mariadb-connector-odbc-3.1.18.ebuild b/dev-db/mariadb-connector-odbc/mariadb-connector-odbc-3.1.18.ebuild
new file mode 100644
index 000000000000..62623dc60a49
--- /dev/null
+++ b/dev-db/mariadb-connector-odbc/mariadb-connector-odbc-3.1.18.ebuild
@@ -0,0 +1,67 @@
+# Copyright 2018-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake-multilib flag-o-matic
+
+DESCRIPTION="MariaDB Connector/ODBC"
+HOMEPAGE="https://downloads.mariadb.org/connector-odbc/"
+SRC_URI="mirror://mariadb/connector-odbc-${PV}/${P}-src.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0/3.1"
+KEYWORDS="~amd64 ~x86"
+IUSE="ssl"
+
+S="${S}-src"
+
+# USE=ssl merely enables the configuration options (seemingly for interactive
+# sessions) and does not cause direct linking to any SSL libraries. However,
+# it doesn't make sense enable these configuration options unless the
+# underlying mariadb-connector-c has ssl enabled, thus if we have USE=ssl,
+# require mariadb-connector-c to have it too.
+DEPEND="dev-db/mariadb-connector-c:=[ssl?]
+ dev-db/unixODBC"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ cmake_src_prepare
+
+ sed -e "s,/lib/,/$(get_libdir)/,g" "${FILESDIR}/odbcinst2.ini" > odbcinst.ini || die
+}
+
+multilib_src_configure() {
+ append-cppflags $(mariadb_config --cflags || die)
+ local mycmakeargs=(
+ -DWITH_SSL=$(usex ssl OPENSSL OFF)
+ -DMARIADB_LINK_DYNAMIC=YES
+ -DUSE_SYSTEM_INSTALLED_LIB=YES
+ -DINSTALL_DOCDIR="/usr/share/doc/${PF}"
+ -DINSTALL_LICENSEDIR="/usr/share/doc/${PF}"
+ #-DCMAKE_C_FLAGS="$(mariadb_config --cflags)"
+ )
+ cmake_src_configure
+}
+
+multilib_src_install_all() {
+ insinto /usr/share/${PN}
+ doins odbcinst.ini
+}
+
+pkg_postinst() {
+ elog "Please remember to use emerge --config =${P} to install the ODBC ini files."
+ elog "Alternatively run: /usr/bin/odbcinst -i -d -f /usr/share/${PN}/odbcinst.ini"
+}
+
+pkg_config() {
+ [[ -n "${ROOT}" ]] && die "Sorry, non-standard ROOT setting is not supported."
+
+ if /usr/bin/odbcinst -q -d -n maodbc &>/dev/null; then
+ einfo "maodbc (MariaDB ODBC driver) has already been installed."
+ else
+ ebegin "Installing maodbc (MariaDB ODBC driver)"
+ /usr/bin/odbcinst -i -d -f /usr/share/${PN}/odbcinst.ini
+ eend ${?} || die
+ fi
+}
next reply other threads:[~2023-05-13 3:35 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-13 3:34 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-11-14 17:30 [gentoo-commits] repo/gentoo:master commit in: dev-db/mariadb-connector-odbc/ Andreas Sturmlechner
2023-11-14 0:40 Sam James
2023-11-14 0:40 Sam James
2022-10-31 2:20 Sam James
2022-08-19 8:14 Andreas Sturmlechner
2022-08-16 5:43 Joonas Niilola
2022-08-16 5:43 Joonas Niilola
2022-08-15 11:59 Andreas Sturmlechner
2021-11-22 10:11 Sam James
2021-11-22 10:11 Sam James
2021-11-22 10:11 Sam James
2021-11-13 7:08 Agostino Sarubbo
2021-11-13 7:07 Agostino Sarubbo
2021-09-27 6:55 Agostino Sarubbo
2021-09-26 7:29 Agostino Sarubbo
2021-09-04 6:26 Joonas Niilola
2021-09-04 6:26 Joonas Niilola
2021-05-24 7:39 Joonas Niilola
2021-05-09 9:17 Agostino Sarubbo
2021-05-09 9:15 Agostino Sarubbo
2021-03-01 6:55 Joonas Niilola
2021-02-24 7:06 Joonas Niilola
2021-02-18 13:47 Joonas Niilola
2020-10-31 11:11 David Seifert
2020-03-15 17:52 Joonas Niilola
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=1683948847.28383056c56dc281ddba30f18757d73337319ecf.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