# $Header: /alx-cvs/smage-eglibc/xkeyboard-config/xkeyboard-config-1.3-r1.smage2,v 1.1 2008/06/07 23:20:36 niro Exp $ PNAME="xkeyboard-config" PVER="1.3" PBUILD="r1" PCATEGORIE="x11-misc" STATE="unstable" DESCRIPTION="X Keyboard Configuration Database." HOMEPAGE="http://www.freedesktop.org/wiki/Software/XKeyboardConfig" sminclude xorg mtools alx DEPEND=">= x11-apps/xkbcomp-1" SDEPEND=">= dev-perl/xml-parser-2.4" SRC_URI=( http://xlibs.freedesktop.org/xkbdesc/${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 \ || 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 }