# $Id$ PNAME="xkeyboard-config" PVER="2.23.1" PBUILD="r1" PCAT="x11-misc" DESCRIPTION="X Keyboard Configuration Database." HOMEPAGE="http://www.freedesktop.org/wiki/Software/XKeyboardConfig" DEPEND=">= x11-apps/xkbcomp-1" SDEPEND=">= dev-perl/perl-xml-parser-2.40 >= dev-util/intltool-0.50" UP2SUBDIR="data/${PNAME}" sminclude xorg mtools SRC_URI=( http://xorg.freedesktop.org/archive/individual/data/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) src_compile() { cd ${SRCDIR} mconfigure \ --with-xkb-base=/usr/share/X11/xkb \ --enable-compat-rules \ --disable-xkbcomp-symlink \ --with-xkb-rules-symlink=xorg \ --disable-runtime-deps \ || die mmake || 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 }