# $Id:$ PNAME="libunique1" PVER="1.1.6" PBUILD="r1" PCAT="dev-libs" DESCRIPTION="A library for writing single instance application." HOMEPAGE="http://www.gnome.org/" DEPEND=">= x11-libs/gtk2+-2.24 >= x11-libs/libX11-1.5 >= sys-apps/dbus-1.6" SDEPEND=">= dev-util/pkgconfig-0.25 >= sys-dev/gettext-0.18 >= dev-libs/gobject-introspection-1.34" SRCFILE="${PNAME/1}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME/1}-${PVER}" sminclude gnome2 mtools SRC_URI=( gnome://${PNAME/1}/${PVER%.*}/${SRCFILE} mirror://${PNAME/1}/${SRCFILE} mirror://${PNAME/1}/${PNAME/1}-${PVER}-G_CONST_RETURN.patch mirror://${PNAME/1}/${PNAME/1}-${PVER}-unique-gdbus.patch ) UP2DATE="updatecmd_gnome ${PNAME/1}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # remove G_CONST_RETURN usage, now that its gone in glib mpatch ${PNAME/1}-${PVER}-G_CONST_RETURN.patch || die # adds a backend using gdbus, the new dbus binding in >=gio-2.25 mpatch ${PNAME/1}-${PVER}-unique-gdbus.patch || die } src_compile() { cd ${SRCDIR} # --disable-dbus means gdbus is used instead of dbus-glib mconfigure \ --disable-maintainer-flags \ --disable-static \ --enable-bacon \ --enable-introspection \ --disable-dbus \ || die mmake || die } src_install() { gn2_src_install || die # provided by libunique-3.x mdelete -r /usr/share/gtk-doc || die }