# $Id$ PNAME="gamin" PVER="0.1.10" PBUILD="r7" PCAT="app-admin" DESCRIPTION="Gamin is a file and directory monitoring system defined to be a subset of the FAM (File Alteration Monitor) system." HOMEPAGE="http://people.gnome.org/~veillard/gamin/" DEPEND=">= dev-libs/glib2-2.58" SDEPEND=">= sys-dev/automake-3 >= sys-dev/autoconf-4 >= dev-util/pkgconfig-0.25" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude multilib mbuild SRC_URI=( http://people.gnome.org/~veillard/${PNAME}/sources/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-fix-deprecated-const.patch mirror://${PNAME}/${PNAME}-${PVER}-fix-possible-server-deadlock-in-ih_sub_cancel.patch ) UP2DATE="updatecmd http://people.gnome.org/~veillard/gamin/sources/ | highesttarball gz" src_prepare() { munpack ${SRCFILE} || die # fix build against newer glib2 versions mpatch ${PNAME}-${PVER}-fix-deprecated-const.patch || die # fix deadlocks mpatch ${PNAME}-${PVER}-fix-possible-server-deadlock-in-ih_sub_cancel.patch || die } src_compile() { mconfigure \ --libexecdir=/usr/$(mlibdir)/${PNAME} \ --enable-inotify \ --disable-debug \ --disable-debug-api \ --enable-server \ --without-python \ || die mmake || die } preinstall() { if [[ ! -z $(magequery -n fam) ]] then echo "The package 'app-admin/fam' is superseeded by 'app-admin/gamin'." echo "Both packages cannot co-exist on the same system," echo "please uninstall 'app-admin/fam' first!" die "'app-admin/fam' found!" fi }