diff options
Diffstat (limited to 'dev-db/freetds')
-rw-r--r-- | dev-db/freetds/Manifest | 11 | ||||
-rw-r--r-- | dev-db/freetds/files/without-flags.patch | 48 | ||||
-rw-r--r-- | dev-db/freetds/freetds-0.91.ebuild | 47 | ||||
-rw-r--r-- | dev-db/freetds/freetds-1.00.41.ebuild | 72 | ||||
-rw-r--r-- | dev-db/freetds/freetds-1.00.54-r1.ebuild | 72 | ||||
-rw-r--r-- | dev-db/freetds/freetds-9999.ebuild | 62 | ||||
-rw-r--r-- | dev-db/freetds/metadata.xml | 5 |
7 files changed, 317 insertions, 0 deletions
diff --git a/dev-db/freetds/Manifest b/dev-db/freetds/Manifest new file mode 100644 index 000000000000..2407f9958509 --- /dev/null +++ b/dev-db/freetds/Manifest @@ -0,0 +1,11 @@ +AUX without-flags.patch 1859 SHA256 8ec0e14096ad1da12faadcae07315a0d0118f940a670e866de79ec4036a2658b SHA512 b981dd2ddab06e4c163d847de9a1086515775abacbbcf10be5d67388ce5502a37a23bb6c94eaf36082dc36d30060ff12a38fd9ceb6b93e3f8116d2de7ddcb2e7 WHIRLPOOL a2d39825fd8c45f77d9e2a7a18e53d270ee389e6c20d54bed3904cb4c635128881a44c5ad4a5e0acdfab3aec3537536304c36180a5949f36121f1074ea0c94a8 +DIST freetds-0.91.tar.gz 2136329 SHA256 6a8148bd803aebceac6862b0dead1c5d9659f7e1038993abfe0ce8febb322465 SHA512 4dadafe49848ab5505b0fa5bd650e19e7652c3e1181d3c49f087c50ed055f395eaf5917a99744ed3594e4af9032c4e18f397af58fb1010e695ac2c0bc601b5e3 WHIRLPOOL 63662b56011edb6d22ce28cc7bad3af272ff81862f0d8ff65b113af260e3c8d05a9d941c1cf4b8039b99f460c3a5c8364dd69d42d8e98c0c92530462f732dec2 +DIST freetds-1.00.41.tar.gz 2904915 SHA256 f054f1ac09d933527b634e081f5b36856669b7a507601cde93eda32174681e59 SHA512 dec3197a6478fc59b7386f9a7a562df8b581bba7184210c42f26827e957b9746e6820d687a9c6cbcd7c825fc5d4f556547c0483d06c786a064d5c4859db4daa1 WHIRLPOOL de396ba6fa04c7fb580614297c62f61c77a606417e749eb1dd4ad352e7f87cea05ed1567d7dd7f97b189f83d48f711e1254a59d0f9c897050b505e31f6fe8da7 +DIST freetds-1.00.54.tar.gz 2907015 SHA256 b2dc627b87762ffb665ce318121aec3a63ddd430132aa7fbdafb02297dc8f1f0 SHA512 a2a5034705fe06ee38b085f980f6ddf086789abc9485331fdaf829e7243f7ba95a5f0c612d7e3ec9e10f28a5c8b3a3fd8e7853d66f67110bd860afce949c798c WHIRLPOOL 519cf22370ed0baab6bd24e0d9e237703157e8be9a5ff8af1ec9307d9faf3e961df8c6d623ce53998efa28fe884897bb4190f2f4f7e29642c8c465b82ea64c37 +EBUILD freetds-0.91.ebuild 1118 SHA256 a74e0519417c01b2d4fb599773125dba5bfd4f6b2708c23659edba3c13860f85 SHA512 c4623548cc786c3f114f71456011e2b9a5f225e3a032c7268dd7152bb083aac8242af24f585d9ce40baf2e1f5a616cdbf003997874ead4621af8007804d3c3e1 WHIRLPOOL ada51deda98d8ba46318d077e8eb4ba9e591df63d740745bbcc9df2aa5fcbe90547302b9dfb13ad2542640e06577010b2170c0c88ddec3e7bac5d951cca0019f +EBUILD freetds-1.00.41.ebuild 1989 SHA256 facba6cef0d048d4602b1fd355814c2bcc664d12c909d59f5bf75cda2f45586d SHA512 cb6fa1e777c9ffb4656d9ea850b4bb3050a549890a0e4e961d30578e318e88c923cf53dd59d2ec93b806b460cfd2825452bbd456c32e6cddcfa04315afa75db2 WHIRLPOOL eb122158155142dc4890b1749e2cf5c5fd2d63c03e74af5b10a4bec94cedfa9bd09120fa1e6e40cf7313dc7380bca1224dd5a6da09470a9279caa3817ff18f78 +EBUILD freetds-1.00.54-r1.ebuild 2064 SHA256 e45ff69ab23deefc69f7929b45ff0dbe468f5fa3c3290f1462e85d1cd7528173 SHA512 48931c5f0e49cdd9f07e413339a0e647a4b48eec562cfe337a6c57243d11a99d47977d8987902a6ecafa3930a94a1102912c57359e146f155f6fcf6ee5753ce0 WHIRLPOOL 632ca8142b6dfb780d1f48d6162e48126edf1731b8e1b9ba3317f40bb595eca621afe7cba0df9c68ff98ece9513c3f10a9c86ce956b5e80c0ee990214c20ff5f +EBUILD freetds-9999.ebuild 1603 SHA256 1fd3bf5f72212d4c2dc5ed420bbc2d6a08f7cbd08167b496818f96e9c9682885 SHA512 264144b12f57bd34d1ace56458e4ea2cda0f4f5fd9f789373d8e7b4695cdf910562441359218b0c7c8bac446c8fa5673c56a37d0cfef444fc6d11fe57f2121b9 WHIRLPOOL 49a1632ef4172d3675a1e8909dc7cbe8edcf2f52f0438b9ca36f1c77ab6762b2be645126e27bf2ac4690610572f0fa7de1fd8961c19871fa7e859cb781d58d75 +MISC ChangeLog 3598 SHA256 d291a3c0f91ed7cc8428525f9d569fe6fcfcc480d56a638197a0cd7427e8b99b SHA512 da0610072732a93d3f5e1631a143d8ae47890692379e9914cbac321307b527477185fd052eb1763f839dc26f65458ba7291485e9cf36503c0c71e9e08967e977 WHIRLPOOL 5063594adc62ada60ec780eb112ba021a5f013e0707b580bd5a49993b0c241643f31e80c7b8cb9045544ea601f882c0f14d76e0bcbc745658c0c6b703361f5dd +MISC ChangeLog-2015 9309 SHA256 bd6c799c90c309912b44aa691a47547ba697e47ba032d2328230c325b9d93b1f SHA512 19eb3a05c7729d750a4ae4ebac3bfbf0f4d07aa49122cee00b912b7d4c7d1ca7800882086b2c7aebca3ba15bf8f852c2bebbc253e8885a2e8068d98d3590f038 WHIRLPOOL 8c8d97e60db87bb3db83d219161d91fa08b30ba2b44dfd84021dea7912690858f60b21e04bc8af22216e619ff744742a5520807b329ae19ff3eda15489652bb1 +MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968 diff --git a/dev-db/freetds/files/without-flags.patch b/dev-db/freetds/files/without-flags.patch new file mode 100644 index 000000000000..1f04a90ac6af --- /dev/null +++ b/dev-db/freetds/files/without-flags.patch @@ -0,0 +1,48 @@ +From c4b9d766e009273c70d8953767ef2fcb95f65314 Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Fri, 11 Aug 2017 16:45:15 -0400 +Subject: [PATCH] configure.ac: support "without" versions of three ./configure + flags. + +The --with-iodbc, --with-unixodbc, and --with-odbc-nodm flags all use +the standard AC_ARG_WITH macro. The resulting ./configure script +accepts e.g. --without-iodbc to indicate that the user does not want +to enable iODBC, and in place of a path the word "no" is placed into +the $with_iodbc variable. The current configure.ac doesn't handle that +and instead treats "no" as a path. This commit updates configure.ac to +ignore "no" as the value of those three flags. +--- + configure.ac | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 4f41033ae..9dfe12bb7 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -546,7 +546,7 @@ esac + + AC_ARG_WITH(iodbc, + AS_HELP_STRING([--with-iodbc=DIR], [build odbc driver against iODBC in DIR])) +-if test "$with_iodbc"; then ++if test "x$with_iodbc" != "x" -a "x$with_iodbc" != "xno"; then + if echo "$with_iodbc" | grep -v '^/'; then + with_iodbc="$PWD/$with_iodbc" + fi +@@ -563,7 +563,7 @@ fi + + AC_ARG_WITH(unixodbc, + AS_HELP_STRING([--with-unixodbc=DIR], [build odbc driver against unixODBC in DIR])) +-if test "$with_unixodbc"; then ++if test "x$with_unixodbc" != "x" -a "x$with_unixodbc" != "xno"; then + if echo "$with_unixodbc" | grep -v '^/'; then + with_unixodbc="$PWD/$with_unixodbc" + fi +@@ -588,7 +588,7 @@ fi + + AC_ARG_WITH(odbc_nodm, + AS_HELP_STRING([--with-odbc-nodm=DIR], [build odbc using headers in DIR/include])) +-if test "$with_odbc_nodm"; then ++if test "x$with_odbc_nodm" != "x" -a "x$with_odbc_nodm" != "xno"; then + if echo "$with_odbc_nodm" | grep -v '^/'; then + with_odbc_nodm="$PWD/$with_odbc_nodm" + fi diff --git a/dev-db/freetds/freetds-0.91.ebuild b/dev-db/freetds/freetds-0.91.ebuild new file mode 100644 index 000000000000..076b5f0e7a95 --- /dev/null +++ b/dev-db/freetds/freetds-0.91.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit autotools + +DESCRIPTION="Tabular Datastream Library" +HOMEPAGE="http://www.freetds.org/" +SRC_URI="http://ibiblio.org/pub/Linux/ALPHA/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="kerberos odbc iodbc mssql" +RESTRICT="test" + +DEPEND=" + iodbc? ( dev-db/libiodbc ) + kerberos? ( virtual/krb5 ) + odbc? ( dev-db/unixODBC )" +RDEPEND="${DEPEND}" + +src_prepare() { + config_rpath_update + sed -ie 's:with_iodbc/include":with_iodbc/include/iodbc":' configure.ac || die + eautoreconf +} + +src_configure() { + local myconf="--with-tdsver=7.0 $(use_enable mssql msdblib)" + + if use iodbc ; then + myconf="${myconf} --enable-odbc --with-iodbc=${EPREFIX}/usr" + elif use odbc ; then + myconf="${myconf} --enable-odbc --with-unixodbc=${EPREFIX}/usr" + fi + if use kerberos ; then + myconf="${myconf} --enable-krb5" + fi + + econf ${myconf} +} + +src_install() { + emake DESTDIR="${D}" DOCDIR="doc/${PF}" install +} 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..ede21dd57848 --- /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 ~arm64 ~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[@]}" +} diff --git a/dev-db/freetds/freetds-1.00.54-r1.ebuild b/dev-db/freetds/freetds-1.00.54-r1.ebuild new file mode 100644 index 000000000000..0032727f6bf8 --- /dev/null +++ b/dev-db/freetds/freetds-1.00.54-r1.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 ~arm64 ~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" + +# sed, grep, and awk are used by the build system and the osql script. +COMMON_DEPEND="sys-apps/sed + sys-apps/grep + virtual/awk + 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 ) + )" + +DEPEND="${COMMON_DEPEND}" + +# bind-tools is needed because the osql script calls "host". +# binutils is for "strings". +RDEPEND="${COMMON_DEPEND} + sys-devel/binutils + net-dns/bind-tools" + +# 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 )" + +# Won't be necessary in the next release. +PATCHES=( "${FILESDIR}/without-flags.patch" ) + +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=( $(use_with iodbc iodbc "${EPREFIX}/usr") ) + myconf+=( $(use_with odbc unixodbc "${EPREFIX}/usr") ) + myconf+=( $(use_enable iconv libiconv) ) + myconf+=( $(use_with iconv 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") ) + myconf+=( --docdir="/usr/share/doc/${PF}" ) + + econf "${myconf[@]}" +} diff --git a/dev-db/freetds/freetds-9999.ebuild b/dev-db/freetds/freetds-9999.ebuild new file mode 100644 index 000000000000..ec6e2cf418f3 --- /dev/null +++ b/dev-db/freetds/freetds-9999.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit autotools git-r3 + +DESCRIPTION="Tabular Datastream Library" +HOMEPAGE="http://www.freetds.org/" +EGIT_REPO_URI="https://github.com/FreeTDS/${PN}.git" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="gnutls iconv kerberos libressl mssql iodbc odbc ssl" +RESTRICT="test" + +# sed, grep, and awk are used by the build system and the osql script. +COMMON_DEPEND="sys-apps/sed + sys-apps/grep + virtual/awk + 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 ) + )" + +DEPEND="${COMMON_DEPEND}" + +# bind-tools is needed because the osql script calls "host". +# binutils is for "strings". +RDEPEND="${COMMON_DEPEND} + sys-devel/binutils + net-dns/bind-tools" + +# 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 )" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myconf=( $(use_with iodbc) ) + myconf+=( $(use_with odbc unixodbc "${EPREFIX}/usr") ) + myconf+=( $(use_enable iconv libiconv) ) + myconf+=( $(use_with iconv 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") ) + myconf+=( --docdir="/usr/share/doc/${PF}" ) + + econf "${myconf[@]}" +} diff --git a/dev-db/freetds/metadata.xml b/dev-db/freetds/metadata.xml new file mode 100644 index 000000000000..6f49eba8f496 --- /dev/null +++ b/dev-db/freetds/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<!-- maintainer-needed --> +</pkgmetadata> |