Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-db/freetds/, dev-db/freetds/files/
Date: Sat, 12 Aug 2017 21:00:34
Message-Id: 1502571593.42c6544c5745f8c21a36a5f694fe98871d289a0e.mjo@gentoo
1 commit: 42c6544c5745f8c21a36a5f694fe98871d289a0e
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 12 13:12:17 2017 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 12 20:59:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42c6544c
7
8 dev-db/freetds: new version 1.00.53.
9
10 Gentoo-Bug: 585592
11
12 Package-Manager: Portage-2.3.6, Repoman-2.3.1
13
14 dev-db/freetds/Manifest | 1 +
15 dev-db/freetds/files/without-flags.patch | 48 ++++++++++++++++++++++
16 dev-db/freetds/freetds-1.00.53.ebuild | 68 ++++++++++++++++++++++++++++++++
17 3 files changed, 117 insertions(+)
18
19 diff --git a/dev-db/freetds/Manifest b/dev-db/freetds/Manifest
20 index ad0ae70a840..5f1c17b9b85 100644
21 --- a/dev-db/freetds/Manifest
22 +++ b/dev-db/freetds/Manifest
23 @@ -1,2 +1,3 @@
24 DIST freetds-0.91.tar.gz 2136329 SHA256 6a8148bd803aebceac6862b0dead1c5d9659f7e1038993abfe0ce8febb322465 SHA512 4dadafe49848ab5505b0fa5bd650e19e7652c3e1181d3c49f087c50ed055f395eaf5917a99744ed3594e4af9032c4e18f397af58fb1010e695ac2c0bc601b5e3 WHIRLPOOL 63662b56011edb6d22ce28cc7bad3af272ff81862f0d8ff65b113af260e3c8d05a9d941c1cf4b8039b99f460c3a5c8364dd69d42d8e98c0c92530462f732dec2
25 DIST freetds-1.00.41.tar.gz 2904915 SHA256 f054f1ac09d933527b634e081f5b36856669b7a507601cde93eda32174681e59 SHA512 dec3197a6478fc59b7386f9a7a562df8b581bba7184210c42f26827e957b9746e6820d687a9c6cbcd7c825fc5d4f556547c0483d06c786a064d5c4859db4daa1 WHIRLPOOL de396ba6fa04c7fb580614297c62f61c77a606417e749eb1dd4ad352e7f87cea05ed1567d7dd7f97b189f83d48f711e1254a59d0f9c897050b505e31f6fe8da7
26 +DIST freetds-1.00.53.tar.gz 2906676 SHA256 153c7800f1abf2a6c254e0acbaa618e683e84dbe66f5d156d46d5ce5b280ae32 SHA512 89896a9e02112b99e9d13d55841595e5a20b3c3dd0d5a5fd28cc787669942e8b6361c908536955648e0bd49dcdc829bd1206e228e884fc6a499fa67afa1c3075 WHIRLPOOL 933e6b20abe75759c2c84d2f11f441a4b4f5289359d1948b7a19e455a41bb26df7eb78c12496408096bca380f4a234c121cd76d283f4202c3f4912de1eba06ef
27
28 diff --git a/dev-db/freetds/files/without-flags.patch b/dev-db/freetds/files/without-flags.patch
29 new file mode 100644
30 index 00000000000..1f04a90ac6a
31 --- /dev/null
32 +++ b/dev-db/freetds/files/without-flags.patch
33 @@ -0,0 +1,48 @@
34 +From c4b9d766e009273c70d8953767ef2fcb95f65314 Mon Sep 17 00:00:00 2001
35 +From: Michael Orlitzky <michael@××××××××.com>
36 +Date: Fri, 11 Aug 2017 16:45:15 -0400
37 +Subject: [PATCH] configure.ac: support "without" versions of three ./configure
38 + flags.
39 +
40 +The --with-iodbc, --with-unixodbc, and --with-odbc-nodm flags all use
41 +the standard AC_ARG_WITH macro. The resulting ./configure script
42 +accepts e.g. --without-iodbc to indicate that the user does not want
43 +to enable iODBC, and in place of a path the word "no" is placed into
44 +the $with_iodbc variable. The current configure.ac doesn't handle that
45 +and instead treats "no" as a path. This commit updates configure.ac to
46 +ignore "no" as the value of those three flags.
47 +---
48 + configure.ac | 6 +++---
49 + 1 file changed, 3 insertions(+), 3 deletions(-)
50 +
51 +diff --git a/configure.ac b/configure.ac
52 +index 4f41033ae..9dfe12bb7 100644
53 +--- a/configure.ac
54 ++++ b/configure.ac
55 +@@ -546,7 +546,7 @@ esac
56 +
57 + AC_ARG_WITH(iodbc,
58 + AS_HELP_STRING([--with-iodbc=DIR], [build odbc driver against iODBC in DIR]))
59 +-if test "$with_iodbc"; then
60 ++if test "x$with_iodbc" != "x" -a "x$with_iodbc" != "xno"; then
61 + if echo "$with_iodbc" | grep -v '^/'; then
62 + with_iodbc="$PWD/$with_iodbc"
63 + fi
64 +@@ -563,7 +563,7 @@ fi
65 +
66 + AC_ARG_WITH(unixodbc,
67 + AS_HELP_STRING([--with-unixodbc=DIR], [build odbc driver against unixODBC in DIR]))
68 +-if test "$with_unixodbc"; then
69 ++if test "x$with_unixodbc" != "x" -a "x$with_unixodbc" != "xno"; then
70 + if echo "$with_unixodbc" | grep -v '^/'; then
71 + with_unixodbc="$PWD/$with_unixodbc"
72 + fi
73 +@@ -588,7 +588,7 @@ fi
74 +
75 + AC_ARG_WITH(odbc_nodm,
76 + AS_HELP_STRING([--with-odbc-nodm=DIR], [build odbc using headers in DIR/include]))
77 +-if test "$with_odbc_nodm"; then
78 ++if test "x$with_odbc_nodm" != "x" -a "x$with_odbc_nodm" != "xno"; then
79 + if echo "$with_odbc_nodm" | grep -v '^/'; then
80 + with_odbc_nodm="$PWD/$with_odbc_nodm"
81 + fi
82
83 diff --git a/dev-db/freetds/freetds-1.00.53.ebuild b/dev-db/freetds/freetds-1.00.53.ebuild
84 new file mode 100644
85 index 00000000000..a51558b5870
86 --- /dev/null
87 +++ b/dev-db/freetds/freetds-1.00.53.ebuild
88 @@ -0,0 +1,68 @@
89 +# Copyright 1999-2017 Gentoo Foundation
90 +# Distributed under the terms of the GNU General Public License v2
91 +
92 +EAPI=6
93 +
94 +inherit autotools
95 +
96 +DESCRIPTION="Tabular Datastream Library"
97 +HOMEPAGE="http://www.freetds.org/"
98 +SRC_URI="ftp://ftp.freetds.org/pub/freetds/stable/${P}.tar.gz"
99 +
100 +LICENSE="GPL-2"
101 +SLOT="0"
102 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos"
103 +IUSE="gnutls iconv kerberos libressl mssql iodbc odbc ssl"
104 +RESTRICT="test"
105 +
106 +# sed, grep, and awk are used by the build system and the osql script.
107 +COMMON_DEPEND="sys-apps/sed
108 + sys-apps/grep
109 + virtual/awk
110 + gnutls? ( net-libs/gnutls )
111 + iconv? ( virtual/libiconv )
112 + iodbc? ( dev-db/libiodbc )
113 + kerberos? ( virtual/krb5 )
114 + odbc? ( dev-db/unixODBC )
115 + ssl? (
116 + !libressl? ( dev-libs/openssl:0 )
117 + libressl? ( dev-libs/libressl )
118 + )"
119 +
120 +DEPEND="${COMMON_DEPEND}"
121 +
122 +# bind-tools is needed because the osql script calls "host".
123 +# binutils is for "strings".
124 +RDEPEND="${COMMON_DEPEND}
125 + sys-devel/binutils
126 + net-dns/bind-tools"
127 +
128 +# Won't be necessary in the next release.
129 +PATCHES=( "${FILESDIR}/without-flags.patch" )
130 +
131 +src_prepare() {
132 + default
133 +
134 + # Fix the iodbc include path in the configure script. Otherwise, it
135 + # can't find isql.h.
136 + sed -ie 's:with_iodbc/include":with_iodbc/include/iodbc":' \
137 + configure.ac \
138 + || die "failed to fix the iodbc include path in configure.ac"
139 +
140 + eautoreconf
141 +}
142 +
143 +src_configure() {
144 + local myconf=( --with-tdsver=7.4 )
145 + myconf+=( $(use_with iodbc iodbc "${EPREFIX}/usr") )
146 + myconf+=( $(use_with odbc unixodbc "${EPREFIX}/usr") )
147 + myconf+=( $(use_enable iconv libiconv) )
148 + myconf+=( $(use_with iconv libiconv-prefix "${EPREFIX}/usr") )
149 + myconf+=( $(use_enable kerberos krb5) )
150 + myconf+=( $(use_enable mssql msdblib) )
151 + myconf+=( $(use_with gnutls) )
152 + myconf+=( $(use_with ssl openssl "${EPREFIX}/usr") )
153 + myconf+=( --docdir="/usr/share/doc/${PF}" )
154 +
155 + econf "${myconf[@]}"
156 +}