commit:     09c93063b938e5d939c96515fcb8bace5ef561fd
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Sat May 11 13:35:16 2019 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Sat May 11 13:35:16 2019 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=09c93063

dev-db/libiodbc: sync with main tree

Signed-off-by: Anthony G. Basile <blueness <AT> gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 dev-db/libiodbc/Manifest                           |  1 +
 dev-db/libiodbc/files/fix-runpaths-r1.patch        | 15 +++++
 .../libiodbc/files/libiodbc-3.52.12-multilib.patch | 37 ++++++++++++
 dev-db/libiodbc/libiodbc-3.52.12.ebuild            | 68 ++++++++++++++++++++++
 4 files changed, 121 insertions(+)

diff --git a/dev-db/libiodbc/Manifest b/dev-db/libiodbc/Manifest
index c74ce7e..d193c8f 100644
--- a/dev-db/libiodbc/Manifest
+++ b/dev-db/libiodbc/Manifest
@@ -1 +1,2 @@
+DIST libiodbc-3.52.12.zip 1248801 BLAKE2B 
e19b740904a332df7d7f510a6ef7414121e99bcbce0b89db94f4b7a09c0de09f39a8f8abdbec40029b79140fab6e1e1d319ad146cc7d74872a7fe69852a3f710
 SHA512 
240f6f7dc406fcc6688499bac8800b81380d32e8443e4f098875fabc649da1b86567b67d2259206be64cced8537d3171040d16be39845b9009cd90be62ae97db
 DIST libiodbc-3.52.8.zip 1188493 SHA256 
f96cee2f04ab01b3c32297262ebf97b3faed1e49688399e656e8e4743ed72a0c SHA512 
76da1e69a6e7ab1b7ba103547070c5dfe7c40fa88d82c243640d862c93c19e731d5a35d0575038491a148bb1d1cb7c5168dc30bf3f9600b31f4e014350f16551
 WHIRLPOOL 
b6dafe709c3dff771ef43f023e62f528d92f9f9b05f0b986942826a2ded16e3cc2ccdae1606b2c31931ee487d01c25a173488c5e6d6c1ddafddb8f6be7dd326b

diff --git a/dev-db/libiodbc/files/fix-runpaths-r1.patch 
b/dev-db/libiodbc/files/fix-runpaths-r1.patch
new file mode 100644
index 0000000..2cd76c8
--- /dev/null
+++ b/dev-db/libiodbc/files/fix-runpaths-r1.patch
@@ -0,0 +1,15 @@
+--- a/samples/Makefile.am      2012-03-27 05:15:02.000000000 +0200
++++ b/samples/Makefile.am.new  2013-04-09 14:07:48.303789999 +0200
+@@ -78,12 +78,10 @@
+ #
+ iodbctest_SOURCES     = iodbctest.c
+ iodbctest_LDADD               = ../iodbc/libiodbc.la
+-iodbctest_LDFLAGS     = -static
+ 
+ iodbctestw_CFLAGS     = -DUNICODE
+ iodbctestw_SOURCES    = iodbctest.c
+ iodbctestw_LDADD      = ../iodbc/libiodbc.la
+-iodbctestw_LDFLAGS    = -static
+ 
+ EXTRA_DIST            = $(srcdir)/Makefile.sample 
+ 

diff --git a/dev-db/libiodbc/files/libiodbc-3.52.12-multilib.patch 
b/dev-db/libiodbc/files/libiodbc-3.52.12-multilib.patch
new file mode 100644
index 0000000..e281921
--- /dev/null
+++ b/dev-db/libiodbc/files/libiodbc-3.52.12-multilib.patch
@@ -0,0 +1,37 @@
+diff --git a/bin/iodbc-config.in b/bin/iodbc-config.in
+index 08d46ae..576aa8b 100644
+--- a/bin/iodbc-config.in
++++ b/bin/iodbc-config.in
+@@ -145,10 +145,10 @@ while test $# -gt 0; do
+       echo_libs=yes
+       ;;
+    --static-libs)
+-      echo_staticlibs=yes
++      echo_libs=yes
+       ;;
+    --libtool-libs)
+-      echo_libtoollibs=yes
++      echo_libs=yes
+       ;;
+    --data-dir)
+       echo_data_dir=yes
+@@ -196,19 +196,5 @@ if test "$echo_libs" = "yes"; then
+       if test "$lib_iodbc" = "yes"; then
+               libs="$libs -liodbc -liodbcinst"
+       fi
+-      echo "-L@libdir@ $libs"
+-fi
+-if test "$echo_staticlibs" = "yes"; then
+-      libs=""
+-      if test "$lib_iodbc" = "yes"; then
+-              libs="@libdir@/libiodbc.a @libdir@/libiodbcinst.a -lpthread 
@LIBADD_DL@"
+-      fi
+-      echo "$libs"
+-fi
+-if test "$echo_libtoollibs" = "yes"; then
+-      libs=""
+-      if test "$lib_iodbc" = "yes"; then
+-              libs="@libdir@/libiodbc.la @libdir@/libiodbcinst.la"
+-      fi
+       echo "$libs"
+ fi

diff --git a/dev-db/libiodbc/libiodbc-3.52.12.ebuild 
b/dev-db/libiodbc/libiodbc-3.52.12.ebuild
new file mode 100644
index 0000000..22e5799
--- /dev/null
+++ b/dev-db/libiodbc/libiodbc-3.52.12.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools multilib-minimal
+
+MY_PN="iODBC"
+
+DESCRIPTION="ODBC Interface for Linux"
+HOMEPAGE="http://www.iodbc.org/";
+SRC_URI="https://github.com/openlink/${MY_PN}/archive/v${PV}.zip -> ${P}.zip"
+
+KEYWORDS="~amd64 ~arm ~arm64 ~mips ~ppc ~x86"
+LICENSE="|| ( LGPL-2 BSD )"
+SLOT="0"
+IUSE="gtk"
+
+RDEPEND="gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS NEWS README )
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+MULTILIB_CHOST_TOOLS=( /usr/bin/iodbc-config )
+
+PATCHES=(
+       "${FILESDIR}"/libiodbc-3.52.12-multilib.patch
+       "${FILESDIR}"/libiodbc-3.52.7-debian_bug501100.patch
+       "${FILESDIR}"/libiodbc-3.52.7-debian_bug508480.patch
+       "${FILESDIR}"/libiodbc-3.52.7-unicode_includes.patch
+       "${FILESDIR}"/fix-runpaths-r1.patch
+       "${FILESDIR}"/libiodbc-3.52.8-musl-remove-wchar_t-check.patch \
+)
+
+src_prepare() {
+       default
+       sed -i.orig \
+               -e '/^cd "$PREFIX"/,/^esac/d' \
+               iodbc/install_libodbc.sh || die "sed failed"
+
+       # Without this, automake dies. It's what upstream's autogen.sh does.
+       touch ChangeLog || die "failed to create empty ChangeLog"
+
+       eautoreconf
+}
+
+multilib_src_configure() {
+       ECONF_SOURCE="${S}" \
+       econf \
+               --disable-static \
+               --enable-odbc3 \
+               --enable-pthreads \
+               --with-layout=gentoo \
+               --with-iodbc-inidir=yes \
+               $(use_enable gtk gui)
+}
+
+multilib_src_install_all() {
+       einstalldocs
+       prune_libtool_files
+
+       # Install lintian overrides
+       insinto /usr/share/lintian/overrides
+       newins debian/iodbc.lintian-overrides iodbc
+       newins debian/libiodbc2.lintian-overrides libiodbc2
+}

Reply via email to