# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 DESCRIPTION="libConfuse is a configuration file parser library," HOMEPAGE="http://www.nongnu.org/confuse/" SRC_URI="http://www.stacken.kth.se/~mhe/${P}.tar.gz" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86 " IUSE="" DEPEND="sys-devel/libtool doc? ( app-text/openjade =app-text/docbook-sgml-dtd-3.1-r1 )" src_unpack(){ unpack ${A} cd ${S} } src_compile() { local myconf # keep this otherwise libraries will not have .so extensions libtoolize --force use doc \ && myconf="--enable-build-docs" \ || myconf="--disable-build-docs" use debug \ && myconf="${myconf} --enable-debug=all" \ || myconf="${myconf} --disable-debug" econf ${myconf} || die make || die } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS NEWS README || die if use doc; then dohtml doc/html/*.html || die fi }