blob: 8848fbbe057b95f7f281b479d006c451fba98149 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/libiodbc/libiodbc-3.52.7-r1.ebuild,v 1.5 2012/07/11 23:02:36 blueness Exp $
EAPI=4
inherit eutils
DESCRIPTION="ODBC Interface for Linux."
HOMEPAGE="http://www.iodbc.org/"
SRC_URI="http://www.iodbc.org/downloads/iODBC/${P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
LICENSE="|| ( LGPL-2 BSD )"
SLOT="0"
IUSE="gtk static-libs"
DEPEND=">=sys-libs/readline-4.1
>=sys-libs/ncurses-5.2
gtk? ( x11-libs/gtk+:2 )"
RDEPEND="${DEPEND}"
DOCS="AUTHORS ChangeLog NEWS README"
MAKEOPTS="${MAKEOPTS} -j1"
src_prepare() {
sed -i.orig \
-e '/^cd "$PREFIX"/,/^esac/d' \
iodbc/install_libodbc.sh || die "sed failed"
epatch \
"${FILESDIR}"/libiodbc-3.52.7-debian_bug501100.patch \
"${FILESDIR}"/libiodbc-3.52.7-debian_bug508480.patch \
"${FILESDIR}"/libiodbc-3.52.7-gtk.patch \
"${FILESDIR}"/libiodbc-3.52.7-multilib.patch \
"${FILESDIR}"/libiodbc-3.52.7-unicode_includes.patch
chmod -x include/*.h
}
src_configure() {
econf \
--with-layout=gentoo \
--with-iodbc-inidir=yes \
$(use_enable gtk gui) \
$(use_enable static-libs static)
}
src_install() {
default
use static-libs || find "${ED}" -name '*.la' -exec rm -f {} +
}
|