--- latex-beamer-3.07.ebuild.orig 2007-12-18 23:36:02.000000000 +0100 +++ latex-beamer-3.07.ebuild 2008-01-19 20:23:04.000000000 +0100 @@ -12,7 +12,7 @@ SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" -IUSE="doc lyx" +IUSE="doc examples lyx" DEPEND="lyx? ( app-office/lyx ) || ( dev-texlive/texlive-latex >=app-text/tetex-3.0 )" @@ -32,14 +32,19 @@ fi dodoc AUTHORS ChangeLog README TODO doc/licenses/LICENSE + if use doc ; then - insinto "${ROOT}"/usr/share/doc/${PF} + insinto "${ROOT}"/usr/share/doc/${PF}/doc doins doc/* || die "could not install doc" + fi + if use examples ; then + rm "${S}"/examples/a-lecture/{*.tex~,._beamerexample-lecture-pic*} + if ! use lyx ; then + rm -r "${S}"/{examples/lyx-based-presentation,solutions/*/*.lyx} + fi insinto "${ROOT}"/usr/share/doc/${PF} - doins -r examples emulation/examples solutions || \ - die "could not install doc" - - prepalldocs + doins -r examples emulation solutions || \ + die "could not install examples" fi }