diff options
author | Thomas Deutschmann <whissi@gentoo.org> | 2017-06-06 13:22:06 +0200 |
---|---|---|
committer | Thomas Deutschmann <whissi@gentoo.org> | 2017-06-06 13:22:26 +0200 |
commit | cc45e90e3f21a263a7fcb67ef2d9219698ab1748 (patch) | |
tree | a935079401799d5dd618b6f182eeb10512ecbe29 /dev-db/freetds/freetds-1.00.41.ebuild | |
parent | sys-kernel/vanilla-sources: Automated version bump to {3.2.89,3.16.44} - remo... (diff) | |
download | gentoo-cc45e90e3f21a263a7fcb67ef2d9219698ab1748.tar.gz gentoo-cc45e90e3f21a263a7fcb67ef2d9219698ab1748.tar.bz2 gentoo-cc45e90e3f21a263a7fcb67ef2d9219698ab1748.zip |
dev-db/freetds: Bump to v1.00.41
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'dev-db/freetds/freetds-1.00.41.ebuild')
-rw-r--r-- | dev-db/freetds/freetds-1.00.41.ebuild | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-db/freetds/freetds-1.00.41.ebuild b/dev-db/freetds/freetds-1.00.41.ebuild new file mode 100644 index 000000000000..757aaf1714dc --- /dev/null +++ b/dev-db/freetds/freetds-1.00.41.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools + +DESCRIPTION="Tabular Datastream Library" +HOMEPAGE="http://www.freetds.org/" +SRC_URI="ftp://ftp.freetds.org/pub/freetds/stable/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos" +IUSE="gnutls iconv kerberos libressl mssql iodbc odbc ssl" +RESTRICT="test" + +DEPEND=" + gnutls? ( net-libs/gnutls ) + iconv? ( virtual/libiconv ) + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + odbc? ( dev-db/unixODBC ) + ssl? ( + !libressl? ( dev-libs/openssl:0 ) + libressl? ( dev-libs/libressl ) + )" + +# bind-tools is needed because the osql script calls "host". +RDEPEND="${DEPEND} + net-dns/bind-tools + sys-apps/grep + sys-apps/sed + virtual/awk" + +src_prepare() { + default + # Fix the iodbc include path in the configure script. Otherwise, it + # can't find isql.h. + sed -ie 's:with_iodbc/include":with_iodbc/include/iodbc":' \ + configure.ac \ + || die "failed to fix the iodbc include path in configure.ac" + eautoreconf +} + +src_configure() { + local myconf=( --with-tdsver=7.4 ) + + # The configure script doesn't support --without-{i,unix}odbc and + # it will still search for the associated headers if you try that + # Instead, to disable {i,unix}odbc, you just have to omit the + # --with-{i,unix}odbc line. + if use iodbc ; then + myconf+=( --enable-odbc --with-iodbc="${EPREFIX}/usr" ) + fi + + if use odbc ; then + myconf+=( --enable-odbc --with-unixodbc="${EPREFIX}/usr" ) + fi + + myconf+=( $(use_enable iconv libiconv) ) + use iconv && myconf+=( --with-libiconv-prefix="${EPREFIX}/usr" ) + myconf+=( $(use_enable kerberos krb5) ) + myconf+=( $(use_enable mssql msdblib) ) + myconf+=( $(use_with gnutls) ) + myconf+=( $(use_with ssl openssl "${EPREFIX}/usr") ) + + # The docdir doesn't contain ${PV} without this + myconf+=( --docdir="/usr/share/doc/${PF}" ) + + econf "${myconf[@]}" +} |