diff options
author | Anders Rune Jensen <arj@gentoo.org> | 2006-02-02 19:12:08 +0000 |
---|---|---|
committer | Anders Rune Jensen <arj@gentoo.org> | 2006-02-02 19:12:08 +0000 |
commit | 88b46b38e1c58dbeaf5a3907a172114b84baa802 (patch) | |
tree | dd190f35385acc235a4ef4dc1afceb6458d312ca /dev-db/sqliteodbc/sqliteodbc-0.64-r1.ebuild | |
parent | stabling on ppc with plasmaroo's OK (Bug #120148) (diff) | |
download | gentoo-2-88b46b38e1c58dbeaf5a3907a172114b84baa802.tar.gz gentoo-2-88b46b38e1c58dbeaf5a3907a172114b84baa802.tar.bz2 gentoo-2-88b46b38e1c58dbeaf5a3907a172114b84baa802.zip |
fix bugfix bug
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-db/sqliteodbc/sqliteodbc-0.64-r1.ebuild')
-rw-r--r-- | dev-db/sqliteodbc/sqliteodbc-0.64-r1.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/dev-db/sqliteodbc/sqliteodbc-0.64-r1.ebuild b/dev-db/sqliteodbc/sqliteodbc-0.64-r1.ebuild new file mode 100644 index 000000000000..67faf2514064 --- /dev/null +++ b/dev-db/sqliteodbc/sqliteodbc-0.64-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-db/sqliteodbc/sqliteodbc-0.64-r1.ebuild,v 1.1 2006/02/02 19:12:08 arj Exp $ + +inherit eutils + +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="~x86 ~amd64" +IUSE="sqlite sqlite3" + +DEPEND="sqlite? ( =dev-db/sqlite-2* ) + sqlite3? ( =dev-db/sqlite-3* ) + || ( + >=dev-db/unixODBC-2 + >=dev-db/libiodbc-3.0.6 + )" + +pkg_setup() { + if use !sqlite && use !sqlite3 + then + eerror "Please select at least one sqlite library to link against" + exit 1 + fi +} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-gentoo.patch +} + +src_compile() { + if use !sqlite + then + myconf="${myconf} $(use_with sqlite)" + fi + if use !sqlite3 + then + myconf="${myconf} $(use_with sqlite3)" + fi + econf --disable-static ${myconf} || die "could not configure" + emake || die "could not compile" +} + + +src_install() { + dodir /usr/lib + einstall || die "could not install" +} |