2022-05-20 11:55:04 +03:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2021-06-08 08:31:13 +03:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2022-09-09 18:52:42 +03:00
|
|
|
inherit autotools
|
2021-06-08 08:31:13 +03:00
|
|
|
|
|
|
|
MY_PN="iODBC"
|
|
|
|
|
|
|
|
DESCRIPTION="ODBC Interface for Linux"
|
2022-11-26 18:49:54 +03:00
|
|
|
HOMEPAGE="https://www.iodbc.org/"
|
2021-06-08 08:31:13 +03:00
|
|
|
SRC_URI="https://github.com/openlink/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
S="${WORKDIR}/${MY_PN}-${PV}"
|
|
|
|
|
|
|
|
LICENSE="|| ( LGPL-2 BSD )"
|
|
|
|
SLOT="0"
|
2022-05-20 11:55:04 +03:00
|
|
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos"
|
2021-06-08 08:31:13 +03:00
|
|
|
IUSE="gtk"
|
|
|
|
|
2022-09-09 18:52:42 +03:00
|
|
|
RDEPEND="gtk? ( x11-libs/gtk+:2 )"
|
2021-06-08 08:31:13 +03:00
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
|
|
|
|
PATCHES=(
|
|
|
|
"${FILESDIR}"/${PN}-3.52.12-multilib.patch
|
|
|
|
"${FILESDIR}"/${PN}-3.52.7-debian_bug501100.patch
|
|
|
|
"${FILESDIR}"/${PN}-3.52.7-unicode_includes.patch
|
|
|
|
"${FILESDIR}"/fix-runpaths-r1.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
|
|
|
|
}
|
|
|
|
|
2022-09-09 18:52:42 +03:00
|
|
|
src_configure() {
|
|
|
|
econf \
|
2021-06-08 08:31:13 +03:00
|
|
|
--disable-static \
|
|
|
|
--enable-odbc3 \
|
|
|
|
--enable-pthreads \
|
|
|
|
--with-layout=gentoo \
|
|
|
|
--with-iodbc-inidir=yes \
|
|
|
|
$(use_enable gtk gui)
|
|
|
|
}
|
|
|
|
|
2022-09-09 18:52:42 +03:00
|
|
|
src_install() {
|
|
|
|
default
|
2021-06-08 08:31:13 +03:00
|
|
|
|
|
|
|
find "${ED}" -name '*.la' -delete || die
|
|
|
|
|
|
|
|
# Install lintian overrides
|
|
|
|
insinto /usr/share/lintian/overrides
|
|
|
|
newins debian/iodbc.lintian-overrides iodbc
|
|
|
|
newins debian/libiodbc2.lintian-overrides libiodbc2
|
|
|
|
}
|