1 |
commit: 1632e2115f726b6e668aca48915f2b83e662325b |
2 |
Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 2 23:12:05 2016 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 2 23:18:34 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1632e211 |
7 |
|
8 |
dev-db/libiodbc: new version 3.5.12. |
9 |
|
10 |
This new version comes with a few changes. Most noticeably, the ebuild |
11 |
was updated to EAPI=6 and the eutils eclass was dropped. One patch |
12 |
(fix-runpaths-r1.patch) had to be revisioned to make it compatible |
13 |
with eapply. |
14 |
|
15 |
Another patch, libiodbc-*-multilib.patch, had to be updated to apply |
16 |
to the new version. I duplicated the additions/deletions in the |
17 |
original patch exactly. Two other patches, libiodbc-3.52.7-gtk.patch |
18 |
and libiodbc-3.52.8-gtk-parallel-make.patch, have become obsolete and |
19 |
were removed completely. |
20 |
|
21 |
I removed a "chmod -x include/*.h" hack, as it looks no longer |
22 |
necessary. I then added a new hack, "touch ChangeLog" before |
23 |
eautoreconf. |
24 |
|
25 |
Gentoo-Bug: 516300 |
26 |
|
27 |
Package-Manager: portage-2.2.28 |
28 |
|
29 |
dev-db/libiodbc/Manifest | 1 + |
30 |
dev-db/libiodbc/files/fix-runpaths-r1.patch | 15 +++++ |
31 |
.../libiodbc/files/libiodbc-3.52.12-multilib.patch | 37 ++++++++++++ |
32 |
dev-db/libiodbc/libiodbc-3.52.12.ebuild | 68 ++++++++++++++++++++++ |
33 |
4 files changed, 121 insertions(+) |
34 |
|
35 |
diff --git a/dev-db/libiodbc/Manifest b/dev-db/libiodbc/Manifest |
36 |
index c74ce7e..69f34b8 100644 |
37 |
--- a/dev-db/libiodbc/Manifest |
38 |
+++ b/dev-db/libiodbc/Manifest |
39 |
@@ -1 +1,2 @@ |
40 |
+DIST libiodbc-3.52.12.zip 1248801 SHA256 3e764524538bf26ada27a8e55915d7ca42d5069e01d36ed57eabcb724d3764b4 SHA512 240f6f7dc406fcc6688499bac8800b81380d32e8443e4f098875fabc649da1b86567b67d2259206be64cced8537d3171040d16be39845b9009cd90be62ae97db WHIRLPOOL 782eec0afb4802abf6d2b3d293b0a886bdb8aa011676fc2814d7df02c14919c425b82cc7428495015fcdc14512a0aa887e5eb641b3eeb8372838e21e73a3e5dd |
41 |
DIST libiodbc-3.52.8.zip 1188493 SHA256 f96cee2f04ab01b3c32297262ebf97b3faed1e49688399e656e8e4743ed72a0c SHA512 76da1e69a6e7ab1b7ba103547070c5dfe7c40fa88d82c243640d862c93c19e731d5a35d0575038491a148bb1d1cb7c5168dc30bf3f9600b31f4e014350f16551 WHIRLPOOL b6dafe709c3dff771ef43f023e62f528d92f9f9b05f0b986942826a2ded16e3cc2ccdae1606b2c31931ee487d01c25a173488c5e6d6c1ddafddb8f6be7dd326b |
42 |
|
43 |
diff --git a/dev-db/libiodbc/files/fix-runpaths-r1.patch b/dev-db/libiodbc/files/fix-runpaths-r1.patch |
44 |
new file mode 100644 |
45 |
index 0000000..2cd76c8 |
46 |
--- /dev/null |
47 |
+++ b/dev-db/libiodbc/files/fix-runpaths-r1.patch |
48 |
@@ -0,0 +1,15 @@ |
49 |
+--- a/samples/Makefile.am 2012-03-27 05:15:02.000000000 +0200 |
50 |
++++ b/samples/Makefile.am.new 2013-04-09 14:07:48.303789999 +0200 |
51 |
+@@ -78,12 +78,10 @@ |
52 |
+ # |
53 |
+ iodbctest_SOURCES = iodbctest.c |
54 |
+ iodbctest_LDADD = ../iodbc/libiodbc.la |
55 |
+-iodbctest_LDFLAGS = -static |
56 |
+ |
57 |
+ iodbctestw_CFLAGS = -DUNICODE |
58 |
+ iodbctestw_SOURCES = iodbctest.c |
59 |
+ iodbctestw_LDADD = ../iodbc/libiodbc.la |
60 |
+-iodbctestw_LDFLAGS = -static |
61 |
+ |
62 |
+ EXTRA_DIST = $(srcdir)/Makefile.sample |
63 |
+ |
64 |
|
65 |
diff --git a/dev-db/libiodbc/files/libiodbc-3.52.12-multilib.patch b/dev-db/libiodbc/files/libiodbc-3.52.12-multilib.patch |
66 |
new file mode 100644 |
67 |
index 0000000..e281921 |
68 |
--- /dev/null |
69 |
+++ b/dev-db/libiodbc/files/libiodbc-3.52.12-multilib.patch |
70 |
@@ -0,0 +1,37 @@ |
71 |
+diff --git a/bin/iodbc-config.in b/bin/iodbc-config.in |
72 |
+index 08d46ae..576aa8b 100644 |
73 |
+--- a/bin/iodbc-config.in |
74 |
++++ b/bin/iodbc-config.in |
75 |
+@@ -145,10 +145,10 @@ while test $# -gt 0; do |
76 |
+ echo_libs=yes |
77 |
+ ;; |
78 |
+ --static-libs) |
79 |
+- echo_staticlibs=yes |
80 |
++ echo_libs=yes |
81 |
+ ;; |
82 |
+ --libtool-libs) |
83 |
+- echo_libtoollibs=yes |
84 |
++ echo_libs=yes |
85 |
+ ;; |
86 |
+ --data-dir) |
87 |
+ echo_data_dir=yes |
88 |
+@@ -196,19 +196,5 @@ if test "$echo_libs" = "yes"; then |
89 |
+ if test "$lib_iodbc" = "yes"; then |
90 |
+ libs="$libs -liodbc -liodbcinst" |
91 |
+ fi |
92 |
+- echo "-L@libdir@ $libs" |
93 |
+-fi |
94 |
+-if test "$echo_staticlibs" = "yes"; then |
95 |
+- libs="" |
96 |
+- if test "$lib_iodbc" = "yes"; then |
97 |
+- libs="@libdir@/libiodbc.a @libdir@/libiodbcinst.a -lpthread @LIBADD_DL@" |
98 |
+- fi |
99 |
+- echo "$libs" |
100 |
+-fi |
101 |
+-if test "$echo_libtoollibs" = "yes"; then |
102 |
+- libs="" |
103 |
+- if test "$lib_iodbc" = "yes"; then |
104 |
+- libs="@libdir@/libiodbc.la @libdir@/libiodbcinst.la" |
105 |
+- fi |
106 |
+ echo "$libs" |
107 |
+ fi |
108 |
|
109 |
diff --git a/dev-db/libiodbc/libiodbc-3.52.12.ebuild b/dev-db/libiodbc/libiodbc-3.52.12.ebuild |
110 |
new file mode 100644 |
111 |
index 0000000..7ae7799 |
112 |
--- /dev/null |
113 |
+++ b/dev-db/libiodbc/libiodbc-3.52.12.ebuild |
114 |
@@ -0,0 +1,68 @@ |
115 |
+# Copyright 1999-2016 Gentoo Foundation |
116 |
+# Distributed under the terms of the GNU General Public License v2 |
117 |
+# $Id$ |
118 |
+ |
119 |
+EAPI=6 |
120 |
+ |
121 |
+inherit autotools multilib-minimal |
122 |
+ |
123 |
+MY_PN="iODBC" |
124 |
+ |
125 |
+DESCRIPTION="ODBC Interface for Linux" |
126 |
+HOMEPAGE="http://www.iodbc.org/" |
127 |
+SRC_URI="https://github.com/openlink/${MY_PN}/archive/v${PV}.zip -> ${P}.zip" |
128 |
+ |
129 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos" |
130 |
+LICENSE="|| ( LGPL-2 BSD )" |
131 |
+SLOT="0" |
132 |
+IUSE="gtk" |
133 |
+ |
134 |
+RDEPEND="gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] )" |
135 |
+DEPEND="${RDEPEND}" |
136 |
+ |
137 |
+DOCS=( AUTHORS NEWS README ) |
138 |
+ |
139 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
140 |
+ |
141 |
+MULTILIB_CHOST_TOOLS=( /usr/bin/iodbc-config ) |
142 |
+ |
143 |
+PATCHES=( |
144 |
+ "${FILESDIR}"/libiodbc-3.52.12-multilib.patch |
145 |
+ "${FILESDIR}"/libiodbc-3.52.7-debian_bug501100.patch |
146 |
+ "${FILESDIR}"/libiodbc-3.52.7-debian_bug508480.patch |
147 |
+ "${FILESDIR}"/libiodbc-3.52.7-unicode_includes.patch |
148 |
+ "${FILESDIR}"/fix-runpaths-r1.patch |
149 |
+) |
150 |
+ |
151 |
+src_prepare() { |
152 |
+ default |
153 |
+ sed -i.orig \ |
154 |
+ -e '/^cd "$PREFIX"/,/^esac/d' \ |
155 |
+ iodbc/install_libodbc.sh || die "sed failed" |
156 |
+ |
157 |
+ # Without this, automake dies. It's what upstream's autogen.sh does. |
158 |
+ touch ChangeLog || die "failed to create empty ChangeLog" |
159 |
+ |
160 |
+ eautoreconf |
161 |
+} |
162 |
+ |
163 |
+multilib_src_configure() { |
164 |
+ ECONF_SOURCE="${S}" \ |
165 |
+ econf \ |
166 |
+ --disable-static \ |
167 |
+ --enable-odbc3 \ |
168 |
+ --enable-pthreads \ |
169 |
+ --with-layout=gentoo \ |
170 |
+ --with-iodbc-inidir=yes \ |
171 |
+ $(use_enable gtk gui) |
172 |
+} |
173 |
+ |
174 |
+multilib_src_install_all() { |
175 |
+ einstalldocs |
176 |
+ prune_libtool_files |
177 |
+ |
178 |
+ # Install lintian overrides |
179 |
+ insinto /usr/share/lintian/overrides |
180 |
+ newins debian/iodbc.lintian-overrides iodbc |
181 |
+ newins debian/libiodbc2.lintian-overrides libiodbc2 |
182 |
+} |