# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/elektra/elektra-0.4.ebuild,v 2004/08/05 23:18:35 arj Exp $ inherit eutils DESCRIPTION="The Elektra Project provides an alternative back-end for configuration files." HOMEPAGE="http://elektra.sourceforge.net/" SRC_URI="mirror://sourceforge/elektra/${P}.tar.gz" LICENSE="LGPL" SLOT="0" KEYWORDS="~x86 ~amd64 ~ppc" IUSE="doc xsl iconv" # doxygen is only needed to remake the man pages, but # the man pages come in the tarball. Very unlikely to ever # need this unless you were an elektra developer. DEPEND=" dev-libs/libxml2 doc? ( >=app-doc/doxygen-1.3.5-r1 ) \ xsl? ( =app-text/docbook-xsl-stylesheets-1.70.1 )" src_unpack() { unpack "${A}" || die "Unpacking the source failed" cd "${S}" || die "Could not change directory." } src_compile() { myopts="--prefix=/usr" use debug && myopts="${myopts} --debug" ! use iconv && myopts="${myopts} --without-iconv" use xsl && myopts="${myopts} --with-docbook=/usr/share/doc/docbook-xsl-stylesheets-1.70.1" econf ${myopts} || die emake all || die "Failed to compile" use doc && (emake doc || die "Failed to compile docs") } src_install() { emake DESTDIR="${D}" install || die "Failed to install" dodoc examples ChangeLog COPYING INSTALL NEWS TODO README use doc && dodoc doc } pkg_postinst() { DTVERSION=`find /usr/share/sgml -name elektra.xsd | tail -n 1` kdb set system/sw/kdb/current/schemapath "${DTVERSION}" einfo " " einfo "See" einfo " man elektra" einfo " man kdb" einfo "for more information." }