blob: b496757e9f1e2eb0c10ec9d90887b7ee4c74485b (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/hk_classes/hk_classes-0.6.1.ebuild,v 1.2 2004/03/24 23:54:53 mholzer Exp $
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/${P}.tar.bz2
mirror://sourceforge/knoda/knodapython.tar.bz2
mirror://sourceforge/knoda/hk_docs-0.6.tar.gz"
RESTRICT="nomirror"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~x86"
IUSE="mysql postgres odbc"
# At least one of the following is required
DEPEND="mysql? ( >=dev-db/mysql-3.23.54a )
postgres? ( >=dev-db/postgresql-7.3 )
odbc? ( >=dev-db/unixODBC-2.0.6 )"
S=${WORKDIR}/${P}
src_compile() {
./configure || die "./configure failed"
emake || die
}
src_install() {
use doc && dohtml -r ${WORKDIR}/hk_docs-0.6
use doc && dohtml -r ${WORKDIR}/knodapythondoc
make DESTDIR=${D} install || die
}
pkg_postinst() {
echo
einfo "hk_classes has been installed in /usr/lib/hk_classes"
if [ `use mysql` ]; then
einfo "MySQL driver is installed in /usr/lib/hk_classes/drivers"
fi
if [ `use postgres` ]; then
einfo "PostgreSQL driver is installed in /usr/lib/hk_classes/drivers"
fi
if [ `use odbc` ]; then
einfo "ODBC driver is installed in /usr/lib/hk_classes/drivers"
fi
if [ `use doc` ]; then
echo
einfo "API documentation and tutorial are installed in"
einfo " /usr/share/doc/${P}/html/hk_docs-0.6"
einfo "A small Python tutorial is installed in"
einfo " /usr/share/doc/${P}/html/knodapythondoc"
fi
echo
}
|