blob: bc9786b77bf1636cb41b7750be6e47d761a4b9ca (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/hk_classes/hk_classes-0.8.1.ebuild,v 1.11 2008/05/21 15:54:06 dev-zero Exp $
inherit eutils python
# The tests themselves are broken.
RESTRICT="strip test"
P_DOCS="hk_classes-htmldocumentation-0.8"
MY_P=${P/_alpha/-test}a
S=${WORKDIR}/${MY_P}
DESCRIPTION="GUI-independent C++ libraries for database applications, including API documentation and tutorials."
HOMEPAGE="http://hk-classes.sourceforge.net/"
SRC_URI="mirror://sourceforge/hk-classes/${MY_P}.tar.bz2
mirror://sourceforge/hk-classes/xbsql-hk_classes-0.13.tar.gz
doc? ( mirror://sourceforge/knoda/${P_DOCS}.tar.bz2 )"
SLOT="0"
LICENSE="LGPL-2"
KEYWORDS="amd64 ppc sparc x86"
IUSE="doc firebird mysql odbc postgres"
RDEPEND="firebird? ( dev-db/firebird )
mysql? ( virtual/mysql )
postgres? ( >=virtual/postgresql-server-7.3 )
odbc? ( >=dev-db/unixODBC-2.0.6 )"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
src_compile() {
python_version
export LIBPYTHON="-lpython${PYVER} -lz"
myconf="--with-pythondir=/usr/$(get_libdir)/python${PYVER}/\
`use_with mysql`\
`use_with firebird`\
`use_with odbc`\
`use_with postgres`"
econf ${myconf} || die "econf failed"
emake || die "make failes"
}
src_install() {
use doc && dohtml -r ${WORKDIR}/${MY_P}/documentation/api
use doc && dohtml -r ${WORKDIR}/hk_classestutorial
use doc && dohtml -r ${WORKDIR}/hk_kdeclssestutorial
use doc && dohtml -r ${WORKDIR}/knodascriptingtutorial
use doc && dohtml -r ${WORKDIR}/knodatutorial
use doc && dohtml -r ${WORKDIR}/pythonreference
make DESTDIR=${D} install || die "make install failed"
}
|