# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit distutils python MY_PN="Lexa" DESCRIPTION="Command line (english) dictionary" HOMEPAGE="http://www.kieranholland.com/code/lexa/" SRC_URI="mirror://sourceforge/dictator/${MY_PN}-${PV}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~ppc ~x86" IUSE="" S="${WORKDIR}/${MY_PN}-${PV}" DEPEND=">=dev-lang/python-2.3" src_unpack () { unpack "${A}" cd "${S}" epatch "${FILESDIR}/${P}-xterm-color.patch" epatch "${FILESDIR}/${P}-data-path.patch" } src_install () { distutils_src_install dodoc doc/README dodoc doc/NEWS # Move dictionary data to some place in the Python-path. python_version mv "${D}/usr/dictionary.pickle" \ "${D}/usr/lib/python${PYVER}/site-packages" # Make original executable and install symlink. chmod +x "${D}/usr/lib/python${PYVER}/site-packages/lexa.py" dosym "/usr/lib/python${PYVER}/site-packages/lexa.py" "/usr/bin/lexa" }