# $Id$ PNAME="xdg-utils" PVER="1.1.0_20140205" PBUILD="r1" PCAT="x11-apps" DESCRIPTION="Xdg-utils is a set of command line tools that assist applications with a variety of desktop integration tasksA tool for automating interactive applications." HOMEPAGE="http://portland.freedesktop.org/" DEPEND=">= x11-apps/xprop-1.2 >= x11-apps/xset-1.2 >= x11-misc/shared-mime-info-0.90 >= dev-util/desktop-file-utils-0.15" SDEPEND=">= app-text/xmlto-0.0.25 >= app-text/docbook-xsl-stylesheets-1.78" if mqueryfeature "check" then SDEPEND="${SDEPEND} >= net-www/lynx-2.8" fi SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools SRC_URI=( mirror://${PNAME}/${SRCFILE} ) # fake UP2DATE="echo ${PVER}" src_compile() { cd ${SRCDIR} mconfigure || die # remove prebuild stuff (git version only) mmake -C scripts scripts-clean || die # build (git version only) mmake -C scripts scripts man || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die # install default xdg data dirs minstalldir /etc/env.d || die MCONFIG="/etc/env.d/30xdg-local" mclearconfig || die maddconfig 'XDG_DATA_DIRS="/usr/local/share"' || die MCONFIG="/etc/env.d/90xdg-system" mclearconfig || die maddconfig 'XDG_DATA_DIRS="/usr/share"' || die maddconfig 'XDG_CONFIG_DIRS="/etc/xdg"' || die minstalldocs ChangeLog LICENSE TODO README || die }