--- passepartout.orig/passepartout-0.7.0.ebuild 2012-03-24 10:26:46.837473406 +0800 +++ passepartout.orig/passepartout-0.7.0.ebuild 2012-03-24 11:12:52.094325833 +0800 @@ -9,7 +9,7 @@ DESCRIPTION="A DTP application for the X Window System" HOMEPAGE="http://www.stacken.kth.se/project/pptout/" -IUSE="gnome" +IUSE="gnome examples" LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~amd64" @@ -22,8 +22,8 @@ dev-libs/libsigc++:2 media-libs/freetype:2 virtual/fam + gnome-base/libgnome gnome? ( gnome-base/gnome-vfs ) - gnome?( gnome-base/libgnome ) " RDEPEND="${COMMON_DEPS} @@ -85,5 +85,13 @@ src_install() { gnome2_src_install + rm -rf ${D}usr/share/doc/${PN}/ || die + + if use examples; then + dohtml -r doc/ + fi + + mv ${S}/doc/README ${S}/doc/README_html || die + dodoc doc/README_html || die make_desktop_entry "/usr/bin/passepartout" "Passepartout DTP" "" "GNOME;Application;Graphics" }