summaryrefslogtreecommitdiff
blob: b5ff352874c3233121bcbc70cada9d8bb978aba5 (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/libodbc++/libodbc++-0.2.3.ebuild,v 1.4 2004/07/14 01:04:29 agriffis Exp $
DESCRIPTION="Libodbc++ is a c++ class library that provides a subset of the well-known JDBC 2.0(tm) and runs on top of ODBC."
SRC_URI="mirror://sourceforge/libodbcxx/${P}.tar.gz"
HOMEPAGE="http://libodbcxx.sourceforge.net/"
LICENSE="LGPL-2.1"
DEPEND="dev-db/unixODBC"
KEYWORDS="~x86 ~ppc ~hppa ~alpha amd64"
IUSE="qt"
SLOT=0

src_compile() {
	local commonconf
	commonconf="--with-isqlxx --with-odbc --without-tests"
	commonconf="${commonconf} --enable-static --enable-shared"
	# " --enable-threads"

	if use qt; then
		einfo "Cloning to build with qt"
		einfo "ccache would really help you compiling this package..."
		cp -ra ${S} ${S}_qt
	fi

	econf \
		${commonconf} \
		|| die "econf failed"
	emake || die "emake failed"
	# using without-qt breaks the build
	#--without-qt \

	if use qt; then
		cd ${S}_qt
		econf \
			${commonconf} \
			--with-qtsqlxx --with-qt \
			|| die "econf failed"
		emake || die "emake failed"
	fi

}

src_install () {
	make DESTDIR=${D} install || die "make install failed"
	dodoc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README THANKS TODO
	if use qt; then
		cd ${S}_qt
		make DESTDIR=${D} install || die "make install failed"
	fi

}