summaryrefslogtreecommitdiff
blob: 92fd1b03b2980fa2d631c82a5d1dbcfd9a2ffee9 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/libiodbc/libiodbc-3.51.2.ebuild,v 1.1 2004/03/04 13:18:59 tantive Exp $

DESCRIPTION="ODBC Interface for Linux"
HOMEPAGE="http://www.iodbc.org/"
SRC_URI="http://www.iodbc.org/downloads/iODBC/${P}.tar.gz"

LICENSE="LGPL-2 BSD"
SLOT="0"
KEYWORDS="~x86 ~ppc ~hppa ~alpha ~amd64"
IUSE="gtk"

DEPEND="virtual/glibc
	>=sys-libs/readline-4.1
	>=sys-libs/ncurses-5.2
	gtk? ( >=x11-libs/gtk+-1.2.10* )"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/libiodbc-3.51.2_install_symlink.diff
	cd ${S}
}

src_compile() {
	local myconf
	myconf="--with-layout=gentoo"

	if [ "`use gtk`" ]
	then
		myconf="$myconf --enable-gui=yes"
	else
		myconf="$myconf --disable-gui"
	fi

	./configure --host=${CHOST} ${myconf} || die
	make || die
}

src_install() {
	make DESTDIR=${D} install || die

	#dodoc AUTHORS COPYING ChangeLog NEWS README*
	#find doc/ -name "Makefile*" -exec rm '{}' \;
	#dohtml doc/*
	#prepalldocs
}