commit:     d89297787880f479b71c5e4e18f7fdba955463c1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 21 01:19:48 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 21 01:20:03 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8929778

dev-db/unixODBC: add 2.3.14

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-db/unixODBC/Manifest               |  1 +
 dev-db/unixODBC/unixODBC-2.3.14.ebuild | 68 ++++++++++++++++++++++++++++++++++
 2 files changed, 69 insertions(+)

diff --git a/dev-db/unixODBC/Manifest b/dev-db/unixODBC/Manifest
index 8b54ea772251..70fcc2c1c805 100644
--- a/dev-db/unixODBC/Manifest
+++ b/dev-db/unixODBC/Manifest
@@ -1 +1,2 @@
 DIST unixODBC-2.3.12.tar.gz 1753915 BLAKE2B 
9da9b0fb5ff962db8ec1483b700aca5d4adf88f3349b22010bd0b4b4ec1fe2e7a51d761527e3b9e49b08286a00e55aadc38c320a6db512ba52f491aecad7fd83
 SHA512 
ca9d8db943195679a44db1fc09391dc6662ab1721112c93d448f04011e98502462ffe14b8364eb03707d851db456eced20eb61a22370392ca88d917038d45b56
+DIST unixODBC-2.3.14.tar.gz 1758907 BLAKE2B 
aefe29be6c85659007847b4805f8f57ea0d785c4bc97bc8503144737d741dd29020c8d98667c512d36ed921179be21d3b7c0304b04d2dcd7a66cbbc49ac9a4e5
 SHA512 
922caa7ed2ad97a194a2b66c9fb69bdebe62d1b74a729d726c79835b9fc13be60c7650c86031062a25b07021ff2c7a936ef9c366d4a148d290932bab453c864c

diff --git a/dev-db/unixODBC/unixODBC-2.3.14.ebuild 
b/dev-db/unixODBC/unixODBC-2.3.14.ebuild
new file mode 100644
index 000000000000..81a8cad113c4
--- /dev/null
+++ b/dev-db/unixODBC/unixODBC-2.3.14.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit multilib-minimal
+
+DESCRIPTION="Complete ODBC driver manager"
+HOMEPAGE="https://www.unixodbc.org/";
+SRC_URI="https://www.unixodbc.org/unixODBC-${PV}.tar.gz";
+
+LICENSE="GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 
~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos 
~x64-solaris"
+IUSE="+minimal odbcmanual static-libs unicode"
+
+RDEPEND="
+       dev-libs/libltdl[${MULTILIB_USEDEP}]
+       >=sys-libs/readline-6.2_p5-r1:=[${MULTILIB_USEDEP}]
+       >=sys-libs/ncurses-5.9-r3:=[${MULTILIB_USEDEP}]
+       >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
+       !minimal? ( virtual/libcrypt:= )
+"
+DEPEND="
+       ${RDEPEND}
+       sys-devel/bison
+       sys-devel/flex
+"
+
+MULTILIB_CHOST_TOOLS=( /usr/bin/odbc_config )
+MULTILIB_WRAPPED_HEADERS=( /usr/include/unixODBC/unixodbc_conf.h 
/usr/include/unixodbc.h )
+
+multilib_src_configure() {
+       # Needs flex, bison
+       export LEX=flex
+       unset YACC
+
+       # --enable-driver-conf is --enable-driverc as per configure.in
+       local myeconfargs=(
+               --cache-file="${BUILD_DIR}"/config.cache
+               --sysconfdir="${EPREFIX}"/etc/${PN}
+               --disable-editline
+               --disable-static
+               --enable-iconv
+               --enable-shared
+               $(use_enable static-libs static)
+               $(use_enable !minimal drivers)
+               $(use_enable !minimal driverc)
+               $(use_with unicode iconv-char-enc UTF8)
+               $(use_with unicode iconv-ucode-enc UTF16LE)
+       )
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_install_all() {
+       einstalldocs
+
+       if use odbcmanual ; then
+               # We could simply run "make install-html" if we'd not had
+               # out-of-source builds here.
+               docinto html
+               dodoc -r doc/.
+               find "${ED}/usr/share/doc/${PF}/html" -name "Makefile*" -delete 
|| die
+       fi
+
+       use prefix && dodoc README*
+       find "${ED}" -type f -name '*.la' -delete || die
+}

Reply via email to