# $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" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools msetfeature "!check" 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 cat > ${BINDIR}/etc/env.d/30xdg-local << EOF XDG_DATA_DIRS="/usr/local/share" EOF cat > ${BINDIR}/etc/env.d/90xdg-system << EOF XDG_DATA_DIRS="/usr/share" XDG_CONFIG_DIRS="/etc/xdg" EOF minstalldocs ChangeLog LICENSE TODO README || die }