summaryrefslogtreecommitdiff
blob: 4180eb91e73d2a788ac8b3610d2f1bb5872147a9 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/sqliteodbc/sqliteodbc-0.79.ebuild,v 1.5 2009/09/07 22:23:26 arfrever Exp $

inherit eutils autotools

DESCRIPTION="ODBC driver to access local SQLite database files."

HOMEPAGE="http://www.ch-werner.de/sqliteodbc/"
SRC_URI="http://www.ch-werner.de/sqliteodbc/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="sqlite static"

DEPEND="
	>=dev-db/sqlite-2.8.16
	|| (
		>=dev-db/unixODBC-2.2
		>=dev-db/libiodbc-3.5
	)
	sqlite? ( >=dev-db/sqlite-3.5 )"
RDEPEND=""

src_unpack() {
	unpack ${A}
	cd "${S}"
	epatch "${FILESDIR}/${PN}-0.77-iodbc.patch"
	eautoconf
}

src_compile() {
	econf $(use_enable static)
	emake || die "could not compile"
}

src_install() {
	dodir /usr/$(get_libdir)
	einstall || die "could not install"
	dodoc README ChangeLog
}