# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Configuration file parser library written in C" HOMEPAGE="http://www.nongnu.org/confuse/" SRC_URI="http://savannah.nongnu.org/download/confuse/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="static nls doc" DEPEND="" src_compile() { local myconf myconf="--without-check --enable-shared" myconf="$myconf `use_enable nls`" myconf="$myconf `use_enable static`" econf $myconf || die "econf failed" # an ugly hack to add that damn missing .so extension. grmpf! sed -i "s|^shrext_cmds=.*$|shrext_cmds='.so'\nshared_ext='.so'|g" libtool emake || die "emake failed" } src_install() { einstall || die dodoc AUTHORS INSTALL NEWS README use nls && dodoc ABOUT-NLS doman doc/man/man3/* if use doc; then dohtml doc/html/* docinto examples dodoc examples/{*.c,*.conf,*.dev} fi }