| OLD | NEW |
| 1 # Copyright 1999-2010 Gentoo Foundation | 1 # Copyright 1999-2010 Gentoo Foundation |
| 2 # Distributed under the terms of the GNU General Public License v2 | 2 # Distributed under the terms of the GNU General Public License v2 |
| 3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xkeyboard-config/xkeyboard-config-1.
7.ebuild,v 1.11 2010/01/19 20:28:30 armin76 Exp $ | 3 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xkeyboard-config/xkeyboard-config-1.
7.ebuild,v 1.11 2010/01/19 20:28:30 armin76 Exp $ |
| 4 | 4 |
| 5 EAPI="2" | 5 EAPI="2" |
| 6 SRC_URI="http://xlibs.freedesktop.org/xkbdesc/${P}.tar.bz2" | 6 SRC_URI="http://xlibs.freedesktop.org/xkbdesc/${P}.tar.bz2" |
| 7 | 7 |
| 8 inherit autotools eutils | 8 inherit autotools eutils |
| 9 | 9 |
| 10 DESCRIPTION="X keyboard configuration database" | 10 DESCRIPTION="X keyboard configuration database" |
| 11 HOMEPAGE="http://www.freedesktop.org/wiki/Software/XKeyboardConfig" | 11 HOMEPAGE="http://www.freedesktop.org/wiki/Software/XKeyboardConfig" |
| 12 | 12 |
| 13 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" | 13 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd" |
| 14 IUSE="" | 14 IUSE="" |
| 15 | 15 |
| 16 LICENSE="MIT" | 16 LICENSE="MIT" |
| 17 SLOT="0" | 17 SLOT="0" |
| 18 | 18 |
| 19 RDEPEND="x11-apps/xkbcomp" | 19 RDEPEND="x11-apps/xkbcomp" |
| 20 DEPEND="${RDEPEND} | 20 DEPEND="${RDEPEND} |
| 21 >=dev-util/intltool-0.30 | 21 >=dev-util/intltool-0.30 |
| 22 dev-perl/XML-Parser" | 22 dev-perl/XML-Parser" |
| 23 | 23 |
| 24 src_prepare() { | 24 src_prepare() { |
| 25 epatch "${FILESDIR}/${P}-XFER-jp-keyboard.patch" | 25 epatch "${FILESDIR}/${P}-XFER-jp-keyboard.patch" |
| 26 epatch "${FILESDIR}/${P}-be-keyboard.patch" | 26 epatch "${FILESDIR}/${P}-be-keyboard.patch" |
| 27 epatch "${FILESDIR}/${P}-symbols-makefile.patch" | 27 epatch "${FILESDIR}/${P}-symbols-makefile.patch" |
| 28 epatch "${FILESDIR}/${P}-nav-keys.patch" |
| 28 | 29 |
| 29 # Generate symbols/chromeos. | 30 # Generate symbols/chromeos. |
| 30 python "${FILESDIR}"/gen_symbols_chromeos.py > symbols/chromeos || die | 31 » python "${FILESDIR}"/gen_symbols_chromeos.py > symbols/chromeos || die |
| 31 # Regenerate symbols/symbols.dir. | 32 # Regenerate symbols/symbols.dir. |
| 32 pushd symbols/ | 33 pushd symbols/ |
| 33 xkbcomp -lfhlpR '*' > symbols.dir || die | 34 xkbcomp -lfhlpR '*' > symbols.dir || die |
| 34 popd | 35 popd |
| 35 # Regenerate symbols/Makefile.in from the patched symbols/Makefile.am. | 36 # Regenerate symbols/Makefile.in from the patched symbols/Makefile.am. |
| 36 autoreconf -v --install || die | 37 autoreconf -v --install || die |
| 37 } | 38 } |
| 38 | 39 |
| 39 src_configure() { | 40 src_configure() { |
| 40 econf \ | 41 econf \ |
| 41 --with-xkb-base=/usr/share/X11/xkb \ | 42 --with-xkb-base=/usr/share/X11/xkb \ |
| 42 --enable-compat-rules \ | 43 --enable-compat-rules \ |
| 43 --disable-xkbcomp-symlink \ | 44 --disable-xkbcomp-symlink \ |
| 44 --with-xkb-rules-symlink=xorg \ | 45 --with-xkb-rules-symlink=xorg \ |
| 45 || die "configure failed" | 46 || die "configure failed" |
| 46 } | 47 } |
| 47 | 48 |
| 48 src_install() { | 49 src_install() { |
| 49 emake DESTDIR="${D}" install || die "install failed" | 50 emake DESTDIR="${D}" install || die "install failed" |
| 50 echo "CONFIG_PROTECT=\"/usr/share/X11/xkb\"" > "${T}"/10xkeyboard-config | 51 echo "CONFIG_PROTECT=\"/usr/share/X11/xkb\"" > "${T}"/10xkeyboard-config |
| 51 doenvd "${T}"/10xkeyboard-config | 52 doenvd "${T}"/10xkeyboard-config |
| 52 } | 53 } |
| OLD | NEW |