1 # Copyright 1999-2016 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools multilib-minimal
10 DESCRIPTION="ODBC Interface for Linux"
11 HOMEPAGE="http://www.iodbc.org/"
12 SRC_URI="https://github.com/openlink/${MY_PN}/archive/v${PV}.zip -> ${P}.zip"
14 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
15 LICENSE="|| ( LGPL-2 BSD )"
19 RDEPEND="gtk? ( x11-libs/gtk+:2[${MULTILIB_USEDEP}] )"
22 DOCS=( AUTHORS NEWS README )
24 S="${WORKDIR}/${MY_PN}-${PV}"
26 MULTILIB_CHOST_TOOLS=( /usr/bin/iodbc-config )
29 "${FILESDIR}"/libiodbc-3.52.12-multilib.patch
30 "${FILESDIR}"/libiodbc-3.52.7-debian_bug501100.patch
31 "${FILESDIR}"/libiodbc-3.52.7-debian_bug508480.patch
32 "${FILESDIR}"/libiodbc-3.52.7-unicode_includes.patch
33 "${FILESDIR}"/fix-runpaths-r1.patch
39 -e '/^cd "$PREFIX"/,/^esac/d' \
40 iodbc/install_libodbc.sh || die "sed failed"
42 # Without this, automake dies. It's what upstream's autogen.sh does.
43 touch ChangeLog || die "failed to create empty ChangeLog"
48 multilib_src_configure() {
54 --with-layout=gentoo \
55 --with-iodbc-inidir=yes \
59 multilib_src_install_all() {
63 # Install lintian overrides
64 insinto /usr/share/lintian/overrides
65 newins debian/iodbc.lintian-overrides iodbc
66 newins debian/libiodbc2.lintian-overrides libiodbc2