Index: gamin-0.1.0-r1.ebuild =================================================================== --- gamin-0.1.0-r1.ebuild (revision 96) +++ gamin-0.1.0-r1.ebuild (working copy) @@ -13,8 +13,7 @@ KEYWORDS="~x86 ~amd64 ~arm ~hppa ~ia64 ~ppc ~s390" IUSE="debug doc" -RDEPEND="virtual/libc - >=dev-libs/glib-2 +RDEPEND=">=dev-libs/glib-2 !app-admin/fam" DEPEND="${RDEPEND} @@ -27,35 +26,32 @@ cd ${S} epatch ${FILESDIR}/${P}-flow-control.patch epatch ${FILESDIR}/${P}-cvs-upgrade.patch + epatch ${FILESDIR}/${P}-freebsd.patch } src_compile() { - econf \ - --enable-inotify \ + $(use_enable kernel_linux inotify) \ `use_enable debug` \ `use_enable debug debug-api` \ || die emake || die "emake failed" - } src_install() { - make DESTDIR="${D}" install || die dodoc AUTHORS ChangeLog README TODO NEWS doc/*txt use doc && dohtml doc/* - } pkg_postinst() { - - einfo "It is strongly suggested you use Gamin with an inotify enabled" - einfo "kernel for best performance. For this release of gamin you need" - einfo "at least an inotify 0.23-6 patched kernel, gentoo-dev-sources-2.6.12" - einfo "provides this patch for example." - + if use kernel_linux; then + einfo "It is strongly suggested you use Gamin with an inotify enabled" + einfo "kernel for best performance. For this release of gamin you need" + einfo "at least an inotify 0.23-6 patched kernel, gentoo-dev-sources-2.6.12" + einfo "provides this patch for example." + fi }