# $Header: /magellan-cvs/smage/gnomesu/gnomesu-0.3.1-r10.smage2,v 1.1 2008/03/28 09:41:59 niro Exp $ PNAME="gnomesu" PVER="0.3.1" PBUILD="r10" PCATEGORIE="app-admin" STATE="unstable" DESCRIPTION="Gnome SuperUser is a gtk frontend to su and as such an easy way to run a program as root in the Gnome environment." HOMEPAGE="http://xsu.sourceforge.net/" DEPEND=">= dev-libs/glib2-2.16 >= x11-libs/gtk2+-2.12 >= gnome-base/libgnome-2.22 >= gnome-base/libgnomeui-2.22 >= x11-libs/libzvt-2.0.1" SDEPEND=">= dev-util/pkgconfig-0.23" sminclude gnome2 SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" SRC_URI=( sourceforge://xsu/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PNAME}-${PVER}-desktopfix.patch ) src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # fixes xsu.desktop; it starts per default gsu instead of gnomesu mpatch ${PNAME}-${PVER}-desktopfix.patch || die # force libtool search pathes to $(mlibdir) # to fix linking issues on multilib systems if [[ $(mlibdir) != lib ]] then sed -i "s:/usr/lib:/usr/$(mlibdir):g" ltconfig || die libtoolize --copy --force || die aclocal || die fi } src_install() { cd ${SRCDIR} local GN2_MAKE_OPTS GN2_MAKE_OPTS="xsudocdir=${BINDIR}/usr/share/doc/${PNAME}-${PVER}" gn2_src_install || die }