# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ inherit eutils python RESTRICT="nostrip" P_DOCS="hk_classes-htmldocumentation-0.8" MY_P=${P/_alpha/-test} 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.bz2 http://www.knoda.org/hk-classes/${MY_P}.tar.bz2 mirror://sourceforge/knoda/${P_DOCS}.tar.bz2" SLOT="0" LICENSE="LGPL-2" KEYWORDS="~x86 ~ppc ~amd64 ~sparc" IUSE="mysql postgres sqlite sqlite3 odbc firebird doc" DEPEND="firebird? ( dev-db/firebird ) dbase? ( >=dev-db/xbase-2.0.0 ) mysql? ( >=dev-db/mysql-3.23.54a ) postgres? ( >=dev-db/postgresql-7.3 ) sqlite? ( =dev-db/sqlite-2* ) sqlite3? ( =dev-db/sqlite-3* ) odbc? ( >=dev-db/unixODBC-2.0.6 ) >=media-libs/fontconfig-2.3.2 >=media-libs/freetype-2.1.9" 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`\ `use_with sqlite`\ `use_with sqlite3`\ --without-mdb --without-paradox" econf $myconf || die "econf failed" emake || die "make failed" } src_install() { use doc && dohtml -r ${WORKDIR}/${MY_P}/documentation/api use doc && dohtml -r ${WORKDIR}/hk_classestutorial use doc && dohtml -r ${WORKDIR}/hk_kdeclassestutorial 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" }