Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/musl:master commit in: dev-db/libiodbc/, dev-db/libiodbc/files/
Date: Sat, 11 May 2019 13:35:27
Message-Id: 1557581716.09c93063b938e5d939c96515fcb8bace5ef561fd.blueness@gentoo
1 commit: 09c93063b938e5d939c96515fcb8bace5ef561fd
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 11 13:35:16 2019 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Sat May 11 13:35:16 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/musl.git/commit/?id=09c93063
7
8 dev-db/libiodbc: sync with main tree
9
10 Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 dev-db/libiodbc/Manifest | 1 +
14 dev-db/libiodbc/files/fix-runpaths-r1.patch | 15 +++++
15 .../libiodbc/files/libiodbc-3.52.12-multilib.patch | 37 ++++++++++++
16 dev-db/libiodbc/libiodbc-3.52.12.ebuild | 68 ++++++++++++++++++++++
17 4 files changed, 121 insertions(+)
18
19 diff --git a/dev-db/libiodbc/Manifest b/dev-db/libiodbc/Manifest
20 index c74ce7e..d193c8f 100644
21 --- a/dev-db/libiodbc/Manifest
22 +++ b/dev-db/libiodbc/Manifest
23 @@ -1 +1,2 @@
24 +DIST libiodbc-3.52.12.zip 1248801 BLAKE2B e19b740904a332df7d7f510a6ef7414121e99bcbce0b89db94f4b7a09c0de09f39a8f8abdbec40029b79140fab6e1e1d319ad146cc7d74872a7fe69852a3f710 SHA512 240f6f7dc406fcc6688499bac8800b81380d32e8443e4f098875fabc649da1b86567b67d2259206be64cced8537d3171040d16be39845b9009cd90be62ae97db
25 DIST libiodbc-3.52.8.zip 1188493 SHA256 f96cee2f04ab01b3c32297262ebf97b3faed1e49688399e656e8e4743ed72a0c SHA512 76da1e69a6e7ab1b7ba103547070c5dfe7c40fa88d82c243640d862c93c19e731d5a35d0575038491a148bb1d1cb7c5168dc30bf3f9600b31f4e014350f16551 WHIRLPOOL b6dafe709c3dff771ef43f023e62f528d92f9f9b05f0b986942826a2ded16e3cc2ccdae1606b2c31931ee487d01c25a173488c5e6d6c1ddafddb8f6be7dd326b
26
27 diff --git a/dev-db/libiodbc/files/fix-runpaths-r1.patch b/dev-db/libiodbc/files/fix-runpaths-r1.patch
28 new file mode 100644
29 index 0000000..2cd76c8
30 --- /dev/null
31 +++ b/dev-db/libiodbc/files/fix-runpaths-r1.patch
32 @@ -0,0 +1,15 @@
33 +--- a/samples/Makefile.am 2012-03-27 05:15:02.000000000 +0200
34 ++++ b/samples/Makefile.am.new 2013-04-09 14:07:48.303789999 +0200
35 +@@ -78,12 +78,10 @@
36 + #
37 + iodbctest_SOURCES = iodbctest.c
38 + iodbctest_LDADD = ../iodbc/libiodbc.la
39 +-iodbctest_LDFLAGS = -static
40 +
41 + iodbctestw_CFLAGS = -DUNICODE
42 + iodbctestw_SOURCES = iodbctest.c
43 + iodbctestw_LDADD = ../iodbc/libiodbc.la
44 +-iodbctestw_LDFLAGS = -static
45 +
46 + EXTRA_DIST = $(srcdir)/Makefile.sample
47 +
48
49 diff --git a/dev-db/libiodbc/files/libiodbc-3.52.12-multilib.patch b/dev-db/libiodbc/files/libiodbc-3.52.12-multilib.patch
50 new file mode 100644
51 index 0000000..e281921
52 --- /dev/null
53 +++ b/dev-db/libiodbc/files/libiodbc-3.52.12-multilib.patch
54 @@ -0,0 +1,37 @@
55 +diff --git a/bin/iodbc-config.in b/bin/iodbc-config.in
56 +index 08d46ae..576aa8b 100644
57 +--- a/bin/iodbc-config.in
58 ++++ b/bin/iodbc-config.in
59 +@@ -145,10 +145,10 @@ while test $# -gt 0; do
60 + echo_libs=yes
61 + ;;
62 + --static-libs)
63 +- echo_staticlibs=yes
64 ++ echo_libs=yes
65 + ;;
66 + --libtool-libs)
67 +- echo_libtoollibs=yes
68 ++ echo_libs=yes
69 + ;;
70 + --data-dir)
71 + echo_data_dir=yes
72 +@@ -196,19 +196,5 @@ if test "$echo_libs" = "yes"; then
73 + if test "$lib_iodbc" = "yes"; then
74 + libs="$libs -liodbc -liodbcinst"
75 + fi
76 +- echo "-L@libdir@ $libs"
77 +-fi
78 +-if test "$echo_staticlibs" = "yes"; then
79 +- libs=""
80 +- if test "$lib_iodbc" = "yes"; then
81 +- libs="@libdir@/libiodbc.a @libdir@/libiodbcinst.a -lpthread @LIBADD_DL@"
82 +- fi
83 +- echo "$libs"
84 +-fi
85 +-if test "$echo_libtoollibs" = "yes"; then
86 +- libs=""
87 +- if test "$lib_iodbc" = "yes"; then
88 +- libs="@libdir@/libiodbc.la @libdir@/libiodbcinst.la"
89 +- fi
90 + echo "$libs"
91 + fi
92
93 diff --git a/dev-db/libiodbc/libiodbc-3.52.12.ebuild b/dev-db/libiodbc/libiodbc-3.52.12.ebuild
94 new file mode 100644
95 index 0000000..22e5799
96 --- /dev/null
97 +++ b/dev-db/libiodbc/libiodbc-3.52.12.ebuild
98 @@ -0,0 +1,68 @@
99 +# Copyright 1999-2019 Gentoo Authors
100 +# Distributed under the terms of the GNU General Public License v2
101 +
102 +EAPI=6
103 +
104 +inherit autotools multilib-minimal
105 +
106 +MY_PN="iODBC"
107 +
108 +DESCRIPTION="ODBC Interface for Linux"
109 +HOMEPAGE="http://www.iodbc.org/"
110 +SRC_URI="https://github.com/openlink/${MY_PN}/archive/v${PV}.zip -> ${P}.zip"
111 +
112 +KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86"
113 +LICENSE="|| ( LGPL-2 BSD )"
114 +SLOT="0"
115 +IUSE="gtk"
116 +
117 +RDEPEND="gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] )"
118 +DEPEND="${RDEPEND}"
119 +
120 +DOCS=( AUTHORS NEWS README )
121 +
122 +S="${WORKDIR}/${MY_PN}-${PV}"
123 +
124 +MULTILIB_CHOST_TOOLS=( /usr/bin/iodbc-config )
125 +
126 +PATCHES=(
127 + "${FILESDIR}"/libiodbc-3.52.12-multilib.patch
128 + "${FILESDIR}"/libiodbc-3.52.7-debian_bug501100.patch
129 + "${FILESDIR}"/libiodbc-3.52.7-debian_bug508480.patch
130 + "${FILESDIR}"/libiodbc-3.52.7-unicode_includes.patch
131 + "${FILESDIR}"/fix-runpaths-r1.patch
132 + "${FILESDIR}"/libiodbc-3.52.8-musl-remove-wchar_t-check.patch \
133 +)
134 +
135 +src_prepare() {
136 + default
137 + sed -i.orig \
138 + -e '/^cd "$PREFIX"/,/^esac/d' \
139 + iodbc/install_libodbc.sh || die "sed failed"
140 +
141 + # Without this, automake dies. It's what upstream's autogen.sh does.
142 + touch ChangeLog || die "failed to create empty ChangeLog"
143 +
144 + eautoreconf
145 +}
146 +
147 +multilib_src_configure() {
148 + ECONF_SOURCE="${S}" \
149 + econf \
150 + --disable-static \
151 + --enable-odbc3 \
152 + --enable-pthreads \
153 + --with-layout=gentoo \
154 + --with-iodbc-inidir=yes \
155 + $(use_enable gtk gui)
156 +}
157 +
158 +multilib_src_install_all() {
159 + einstalldocs
160 + prune_libtool_files
161 +
162 + # Install lintian overrides
163 + insinto /usr/share/lintian/overrides
164 + newins debian/iodbc.lintian-overrides iodbc
165 + newins debian/libiodbc2.lintian-overrides libiodbc2
166 +}