# $Id$ PNAME="xkeyboard-config" PVER="1.7" PBUILD="r1" PCATEGORIE="x11-misc" STATE="unstable" DESCRIPTION="X Keyboard Configuration Database." HOMEPAGE="http://www.freedesktop.org/wiki/Software/XKeyboardConfig" DEPEND=">= x11-apps/xkbcomp-1" SDEPEND=">= dev-perl/xml-parser-2.36 >= dev-util/intltool-0.40" sminclude xorg mtools SRC_URI=( http://xlibs.freedesktop.org/xkbdesc/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://xlibs.freedesktop.org/xkbdesc/ | grep ${PNAME}- | lasttarball" src_compile() { cd ${SRCDIR} mconfigure \ --with-xkb-base=/usr/share/X11/xkb \ --enable-compat-rules \ --disable-xkbcomp-symlink \ --with-xkb-rules-symlink=xorg \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die } preinstall() { if [[ -n $(magequery -n xkbdata) ]] then echo "Please uninstall 'x11-misc/xkbdata' first." die "xkbdata found" fi # remove some stale directories, or things screw up local DIR="${MROOT}/usr/$(mlibdir)/X11/xkb" if [[ -d ${DIR} ]] then echo "Please remove the directory '${DIR}' first." die "'${DIR}' found" fi local PC="${MROOT}/usr/share/X11/xkb/symbols/pc" if [[ -d ${PC} ]] then echo "Please remove the directory '${PC}' first." die "'${PC}' found" fi }