# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # Header: $ inherit eutils IUSE="truetype" DESCRIPTION="Vietnamese input keyboard for X" SRC_URI="http://xvnkb.sourceforge.net/xvnkb/${P}.tar.bz2" HOMEPAGE="http://xvnkb.sourceforge.net/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc" DEPEND="virtual/x11 truetype? ( virtual/xft )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}.patch } src_compile() { local myconf if ! use truetype ; then myconf="${myconf} --no-xft" fi econf --no-spellcheck --use-extstroke ${myconf} || die emake || die } src_install() { dobin xvnkb dobin tools/xvnkb_ctrl dolib xvnkb.so.${PV} dosym /usr/lib/xvnkb.so.${PV} /usr/lib/xvnkb.so dodoc LICENSE ChangeLog AUTHORS THANKS TODO INSTALL* README* doc/* docinto scripts dodoc scripts/* docinto contrib dodoc contrib/* } pkg_postinst() { einfo "Remember to" einfo "$ export LANG=en_US.UTF-8" einfo "(or any other UTF-8 locale) and" einfo "$ export LD_PRELOAD=${DESTTREE}/lib/xvnkb.so" einfo "before you" einfo "$ startx" einfo "More documents are in /usr/share/doc/${PF}" einfo "Also note that this ebuild has spell checking disabled." }