mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
@@ -1 +1,2 @@
|
||||
DIST freetds-1.5.6.tar.bz2 2441914 BLAKE2B c29d8722f645ae23f6728f8984b5b0ee81611f0de71d8b01e0364982f7c3ed350dfd3bef436b127fdf331f1d8184ccab1586769349a88646441c6bfb95b78683 SHA512 3f3f153b3d2f203a75cb03f13636702523e603d3290408c3fed9cb3837d7c829ce1b44e21f7f2de78dc9e270657e5a83946a5e82c9d9a76055a54a4c382047ad
|
||||
DIST freetds-1.5.tar.bz2 2451247 BLAKE2B ca7ac4da44a81b4e5d4ac569edc671e08f32d668f2dbc5fb1ac7128d1374c202c50a2fee54f2b96c63ec0637dbeed72ce5f27603bee96dbb5c8c0ba3f0d023c4 SHA512 41417c7406d4123641f49bc45f17a71042650f6ea85917500fa5e8daf4d3ea2be2252d810d9b174cae6ce51ff31c9f1eab8c56303050f3f4583004fcac2c50fc
|
||||
|
||||
71
dev-db/freetds/freetds-1.5.6.ebuild
Normal file
71
dev-db/freetds/freetds-1.5.6.ebuild
Normal 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:= )
|
||||
"
|
||||
# net-dns/bind 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
|
||||
}
|
||||
Reference in New Issue
Block a user