blob: 6f2026bdcecb4c9331e944b271c0de74b00c4083 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Copyright 1999-2005 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-r1.ebuild,v 1.1 2005/07/02 20:55:03 robbat2 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
sys-libs/libtermcap-compat"
KEYWORDS="~x86 ~ppc ~hppa ~alpha ~amd64"
IUSE="qt"
SLOT=0
SB="${S}-build"
SB_MT="${S}-build-mt"
SB_QT="${S}-build_qt"
SB_QT_MT="${S}-build_qt-mt"
src_compile() {
local commonconf
commonconf="--with-odbc=/usr --without-tests"
commonconf="${commonconf} --enable-static --enable-shared"
# " --enable-threads"
if ! has ccache FEATURES; then
einfo "ccache would really help you compiling this package..."
fi
export ECONF_SOURCE="${S}"
append-flags -DODBCXX_DISABLE_READLINE_HACK
buildlist="${SB} ${SB_MT}"
use qt && buildlist="${buildlist} $SB_QT $SB_QT_MT"
for sd in ${buildlist}; do
mkdir -p "${sd}"
cd "${sd}"
commonconf2=''
LIBS=''
[ "${sd}" == "${SB_MT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --enable-threads"
[ "${sd}" == "${SB_QT}" -o "${sd}" == "${SB_QT_MT}" ] && commonconf2="${commonconf2} --with-qt"
[ "${sd}" == "${SB}" ] && commonconf2="${commonconf2} --with-isqlxx"
[ "${sd}" == "${SB_QT}" ] && commonconf2="${commonconf2} --with-qtsqlxx"
export LIBS
# using without-qt breaks the build
#--without-qt \
econf \
${commonconf} \
${commonconf2} \
|| die "econf failed"
emake || die "emake failed"
done
}
src_install () {
cd ${S}
dodoc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README THANKS TODO
buildlist="${SB} ${SB_MT}"
use qt && buildlist="${buildlist} $SB_QT $SB_QT_MT"
for sd in ${buildlist}; do
cd ${sd}
make DESTDIR=${D} install || die "make install failed"
done
}
|