summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Kobierski <fkobi@pm.me>2025-03-10 00:02:47 +0100
committerSam James <sam@gentoo.org>2025-03-10 00:06:55 +0000
commit14fd1f23e45c88739075a24b59127751fe865d7f (patch)
tree32f2db06c27927c8590daa735b9803a7dce247df
parente3f9fd9a4df1241bef62293921d4dcda28682c68 (diff)
downloadgentoo-14fd1f23e45c88739075a24b59127751fe865d7f.tar.gz
gentoo-14fd1f23e45c88739075a24b59127751fe865d7f.tar.bz2
gentoo-14fd1f23e45c88739075a24b59127751fe865d7f.zip
dev-db/freetds: add 1.4.26
changes in top-down order: - update LICENSE - for GPL-2+ see src/pool/user.c - for LGPL-2+ see src/tds/bulk.c - update comment on tests failing - merge COMMON_DEPEND to DEPEND - remove awk DEPEND as it's in @system - swap bind-tools to bind - add DOCS -- swap changelog for news.md - introduce myeconfargs & sort them - use bash's syntactic sugar - add `-type f` to last find Signed-off-by: Filip Kobierski <fkobi@pm.me> Closes: https://github.com/gentoo/gentoo/pull/40987 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-db/freetds/Manifest1
-rw-r--r--dev-db/freetds/freetds-1.4.26.ebuild68
2 files changed, 69 insertions, 0 deletions
diff --git a/dev-db/freetds/Manifest b/dev-db/freetds/Manifest
index 820c031991a2..755e93de3051 100644
--- a/dev-db/freetds/Manifest
+++ b/dev-db/freetds/Manifest
@@ -1 +1,2 @@
DIST freetds-1.4.24.tar.bz2 2402973 BLAKE2B ba6f31fe117c11abc0e0365bf0d10061e793bb9313774a5e2d9b6766fef54abbec6c1c27480a875438008a592f6ab9942bd41a19a4dd7388ca3c2728bf1b2a65 SHA512 f564c81abaec28a6c55476121fff47e8957af654197ed679cfebdbeaa4dfe5d0f9d5f900cd03b4260efc3da3f9cd41ee370fadb6b59da9f41d9006760e9609d9
+DIST freetds-1.4.26.tar.bz2 2404182 BLAKE2B 9a15fb88fa8b34824861b4542a73e17cac6ada13889743487245504e7258b9db3def10bbc9a47402d76108b4571e07019f09b2eff3a951c2c95aea883e4be3f6 SHA512 19a9bf4ed3789bd3e9b8a182df1bf0fa373d3dd156a3e88256c350915a93a7505d48c9f50d8a6b6d2c6a3a01bf58ed4e7b2aa118df8180da7b01a4bef770387a
diff --git a/dev-db/freetds/freetds-1.4.26.ebuild b/dev-db/freetds/freetds-1.4.26.ebuild
new file mode 100644
index 000000000000..f70647b245a1
--- /dev/null
+++ b/dev-db/freetds/freetds-1.4.26.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Tabular Datastream Library"
+HOMEPAGE="https://www.freetds.org/"
+SRC_URI="https://www.freetds.org/files/stable/${P}.tar.bz2"
+
+LICENSE="GPL-2+ LGPL-2+"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~ppc-macos"
+IUSE="debug gnutls iconv kerberos mssql iodbc odbc ssl static-libs"
+# iODBC and unixODBC are mutually-exclusive choices for
+# the ODBC driver manager. Future versions of FreeTDS
+# will throw an error if you specify both.
+REQUIRED_USE="?? ( iodbc odbc )"
+# Nearly wired up as of 1.4.26 but had link failures like
+# all_types: hidden symbol `tds_convert' isn't defined
+RESTRICT="test"
+
+DEPEND="
+ gnutls? ( net-libs/gnutls:= )
+ iconv? ( virtual/libiconv )
+ iodbc? ( dev-db/libiodbc )
+ kerberos? ( virtual/krb5 )
+ odbc? ( dev-db/unixODBC )
+ ssl? ( dev-libs/openssl:= )
+"
+# bind-tools is needed because the osql script calls "host".
+RDEPEND="
+ ${DEPEND}
+ net-dns/bind
+"
+
+DOCS=( {NEWS,README}.md )
+
+src_configure() {
+ local myeconfargs=(
+ --enable-shared
+ $(use_enable debug)
+ $(use_enable iconv libiconv)
+ $(use_enable kerberos krb5)
+ $(use_enable mssql msdblib)
+ $(use_with gnutls)
+ $(use_with iodbc)
+ $(use_with iconv libiconv-prefix "${EPREFIX}/usr")
+ $(use_with odbc unixodbc "${EPREFIX}/usr")
+ $(use_with ssl openssl "${EPREFIX}/usr")
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_test() {
+ # These tests need a running database.
+ local XFAIL_TESTS=(
+ corrupt dataread dynamic1 nulls
+ t000{1..6} toodynamic utf8_{1..3}
+ )
+
+ emake check XFAIL_TESTS="${XFAIL_TESTS[*]}"
+}
+
+src_install() {
+ default
+
+ find "${D}" -type f -name '*.la' -delete || die
+}