# Copyright 2009 Ricardo Salveti de Araujo # Distributed under the terms of the GNU General Public License v2 EAPI=2 inherit eutils DESCRIPTION="Library of common debian-installer functions" HOMEPAGE="http://packages.qa.debian.org/libd/libdebian-installer.html" SRC_URI="mirror://debian/pool/main/libd/${PN}/${PN}_${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="doc" DEPEND="virtual/libc sys-devel/libtool dev-util/pkgconfig sys-devel/gcc doc? ( app-doc/doxygen )" RDEPEND="virtual/libc" src_unpack() { unpack ${A} cd ${S} epatch "${FILESDIR}/${P}-fix-warnings.patch" epatch "${FILESDIR}/${P}-dont-install-docs.patch" epatch "${FILESDIR}/${P}-doubling-readsize-support-oe.patch" } src_compile() { emake || die "emake failed" if use doc; then emake -C doc doc || die "emake for docs failed" fi } src_install() { emake install DESTDIR="${D}" || die "emake install failed" if use doc; then dohtml -r doc/html/* fi dodoc HACKING debian/changelog }