--- esound-0.2.38.ebuild_old 2007-09-04 17:38:47.000000000 -0400 +++ esound-0.2.38.ebuild 2007-09-04 17:23:38.000000000 -0400 @@ -11,11 +11,12 @@ LICENSE="LGPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 ppc ~ppc64 sh sparc x86 ~x86-fbsd" -IUSE="alsa debug ipv6 tcpd" +IUSE="alsa debug doc ipv6 tcpd" # esound comes with arts support, but it hasn't been tested yet, feel free to # submit patches/improvements DEPEND=">=media-libs/audiofile-0.1.5 + doc? ( dev-java/jade ) alsa? ( >=media-libs/alsa-lib-0.5.10b ) tcpd? ( >=sys-apps/tcp-wrappers-7.6-r2 )" # arts? ( kde-base/arts ) @@ -27,7 +28,11 @@ unpack ${A} cd "${S}" - + + # esound by default tries to build docs, and + # presumes that jade is installed. + ! use doc && epatch "${FILESDIR}/${PN}-0.2.38-nodocs.patch" + epatch "${FILESDIR}/${PN}-0.2.32-amd64.patch" epatch "${FILESDIR}/${PN}-0.2.36-mode_t.patch" @@ -56,8 +61,10 @@ emake -j1 DESTDIR="${D}" install || die "Installation failed" mv "${D}/usr/bin/"{esd,esound-esd} + use doc && \ dodoc AUTHORS ChangeLog MAINTAINERS NEWS README TIPS TODO + use doc && \ [[ -d "docs/html" ]] && dohtml -r docs/html/* newconfd "${FILESDIR}/esound.conf.d" esound