# Copyright 1999-2003 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_alpha3.ebuild,v 1.1 2003/10/02 15:30:04 caleb Exp $ DESCRIPTION="GUI-independent C++ libraries for database applications, including API documentation and tutorials." HOMEPAGE="http://hk-classes.sourceforge.net/" SRC_URI="mirror://sourceforge/sourceforge/hk-classes/hk_classes-0.6.1-test3.tar.bz2 mirror://sourceforge/sourceforge/knoda/knodapython.tar.bz2 mirror://sourceforge/sourceforge/knoda/hk_docs-0.6.tar.gz" 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}/hk_classes-0.6.1-test3 src_compile() { local myconf myconf="--host=${CHOST} --prefix=/usr \ --with-hk_classes-dir=/usr/lib/hk_classes \ --with-hk_classes-incdir=/usr/include/hk_classes \ --infodir=/usr/share/info \ --mandir=/usr/share/man" use mysql && myconf="${myconf} --with-mysql-incdir=/usr/include/mysql \ --with-mysql-libdir=/usr/lib/mysql" use postgres && myconf="${myconf} --with-postgres-incdir=/usr/include/postgresql \ --with-postgres-libdir=/usr/lib/postgresql" use odbc && myconf="${myconf} --with-odbc-incdir=/usr/include \ --with-odbc-libdir=/usr/lib" ./configure ${myconf} || 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 }