--- /usr/portage/media-libs/freetype/freetype-2.3.4-r1.ebuild 2007-05-10 05:39:11.000000000 +0700 +++ /usr/portage/media-libs/freetype/freetype-2.3.4-r99.ebuild 2007-06-24 00:28:18.000000000 +0700 @@ -13,7 +13,7 @@ LICENSE="FTL GPL-2" SLOT="2" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" -IUSE="X bindist debug doc zlib" +IUSE="X bindist debug doc zlib demo" # The RDEPEND below makes sure that if there is a version of moz/ff/tb # installed, then it will have the freetype-2.1.8+ binary compatibility patch. @@ -91,8 +91,11 @@ econf $(use_with zlib) || die "econf failed" emake || die "emake failed" + if use demo; then + cd ../ft2demos-${PV} emake || die "ft2demos emake failed" + fi } src_install() { @@ -104,9 +107,11 @@ #cd "${WORKDIR}"/${PN}-doc-${PV} use doc && dohtml -r docs/* - rm ../ft2demos-${PV}/bin/README - for ft2demo in ../ft2demos-${PV}/bin/*; do - ./builds/unix/libtool --mode=install $(type -P install) -m 755 $ft2demo \ - ${D}/usr/bin - done + if use demo; then + rm ../ft2demos-${PV}/bin/README + for ft2demo in ../ft2demos-${PV}/bin/*; do + ./builds/unix/libtool --mode=install $(type -P install) -m 755 $ft2demo \ + ${D}/usr/bin + done + fi }