# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 WANT_AUTOMAKE="1.11" inherit autotools perl-app # bash-completion python java-pkg-2 haskell-cabal DESCRIPTION="Library for reading and writing Windows Registry "hive" binary files." HOMEPAGE="http://libguestfs.org" SRC_URI="http://libguestfs.org/download/${PN}/${P}.tar.gz" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64" IUSE="ocaml readline nls perl test" RDEPEND="dev-lang/perl virtual/libiconv >=sys-devel/gettext-0.18 virtual/libintl dev-libs/libxml2:2 ocaml? ( dev-lang/ocaml[ocamlopt] dev-ml/findlib[ocamlopt] ) readline? ( sys-libs/readline ) perl? ( dev-perl/IO-stringy )" DEPEND="${RDEPEND} perl? ( test? ( dev-perl/Pod-Coverage dev-perl/Test-Pod-Coverage ) )" src_prepare() { epatch "${FILESDIR}"/autoconf_fix.patch || die eautoreconf } src_configure() { econf -C \ $(use_with readline) \ $(use_enable ocaml) \ $(use_enable perl) \ $(use_enable nls) \ --disable-rpath || die } src_test() { emake check || die } src_install() { emake DESTDIR="${D}" install || die if use !perl; then # rm "{$}"/usr/bin/hivexregedit einfo "removed perl scriipt" fi dodoc README #install translation files - build system stub # if use nls;then # for i in gu hi kn ml mr nl or pa pl ta te # do # # please update me to use LINGUAS # domo "${S}/po"/$i.mo|| die # done # fi }