dev-db/freetds: add 1.5

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2025-04-26 02:42:01 +01:00
parent 360547375c
commit 85eed4e758
2 changed files with 72 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
DIST freetds-1.4.24.tar.bz2 2402973 BLAKE2B ba6f31fe117c11abc0e0365bf0d10061e793bb9313774a5e2d9b6766fef54abbec6c1c27480a875438008a592f6ab9942bd41a19a4dd7388ca3c2728bf1b2a65 SHA512 f564c81abaec28a6c55476121fff47e8957af654197ed679cfebdbeaa4dfe5d0f9d5f900cd03b4260efc3da3f9cd41ee370fadb6b59da9f41d9006760e9609d9
DIST freetds-1.4.26.tar.bz2 2404182 BLAKE2B 9a15fb88fa8b34824861b4542a73e17cac6ada13889743487245504e7258b9db3def10bbc9a47402d76108b4571e07019f09b2eff3a951c2c95aea883e4be3f6 SHA512 19a9bf4ed3789bd3e9b8a182df1bf0fa373d3dd156a3e88256c350915a93a7505d48c9f50d8a6b6d2c6a3a01bf58ed4e7b2aa118df8180da7b01a4bef770387a
DIST freetds-1.4.27.tar.bz2 2414926 BLAKE2B 25adee991d7db41b6a2e080f142f1284cf6f26381d4715f1e41c34abc3a629e1f84577a1aa23ca3ce69caab3af4da4b5ca9999864433ee02aa20d87b00dc9b4c SHA512 1574710bb0197ae966d925d91652226a0c7587dde21f4d64fa1fc25a378dfad5d1a89bb3612252117ac31e8c990f4c4148c5a4dd20c023eae5a9bd39e4f6edba
DIST freetds-1.5.tar.bz2 2451247 BLAKE2B ca7ac4da44a81b4e5d4ac569edc671e08f32d668f2dbc5fb1ac7128d1374c202c50a2fee54f2b96c63ec0637dbeed72ce5f27603bee96dbb5c8c0ba3f0d023c4 SHA512 41417c7406d4123641f49bc45f17a71042650f6ea85917500fa5e8daf4d3ea2be2252d810d9b174cae6ce51ff31c9f1eab8c56303050f3f4583004fcac2c50fc

View File

@@ -0,0 +1,71 @@
# 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
https://github.com/FreeTDS/freetds/releases/download/v${PV}/${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
}