# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-libs/libdvdcss/libdvdcss-1.2.10.ebuild,v 1.10 2011/02/27 14:49:17 aballier Exp $ inherit eutils autotools DESCRIPTION="A portable abstraction library for DVD decryption" HOMEPAGE="http://www.videolan.org/developers/libdvdcss.html" SRC_URI="http://www.videolan.org/pub/${PN}/${PV}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="1.2" KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris" IUSE="doc" DEPEND="doc? ( app-doc/doxygen virtual/latex-base dev-tex/xcolor || ( dev-texlive/texlive-latexextra app-text/ptex ) )" RDEPEND="" src_unpack() { unpack ${A} cd "${S}" sed -i -e 's:noinst_PROGRAMS:check_PROGRAMS:' \ "${S}"/test/Makefile.am \ || die "unable to disable tests building" eautoreconf } src_compile() { # See bug #98854, requires access to fonts cache for TeX # No need to use addwrite, just set TeX font cache in the sandbox use doc && export VARTEXFONTS="${T}/fonts" econf \ --enable-static --enable-shared \ $(use_enable doc) \ --disable-dependency-tracking || die emake || die } src_install() { emake install DESTDIR="${D}" || die dodoc AUTHORS ChangeLog NEWS README use doc && dohtml doc/html/* use doc && dodoc doc/latex/refman.ps }