# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Original author: Petr Vanek , 02/19/2006 inherit distutils eutils MY_PV=${PV/"?.?_pre"/"snapshot-"} S=${WORKDIR}/${PN}-${MY_PV} DESCRIPTION="pDict is a simple GUI for dictionary searching. Features are: Interactive GUI, platform independent (tested on FreeBSD, Linux, Windows), uses Qt libraries, stores window positions and last used dictionary" HOMEPAGE="http://homel.vsb.cz/~pop036/index.php?action=pdict" SRC_URI="http://homel.vsb.cz/~pop036/files/pdict/pdict-1.4.0.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" DEPEND=">=dev-python/PyQt-3.13" RDEPEND=">=dev-python/PyQt-3.13" src_install() { python_version DOCS="AUTHORS COPYING README" SKIPWXCHECK=yes distutils_src_install make_desktop_entry pdict "pDict offline dictionary" pdict.png Dictionary "" \ || die "make_desktop_entry failed" # creating runable pdict "binary" in $PATH dodir /usr/bin fperms 755 /usr/lib/python${PYVER}/site-packages/pdict/pdict.py dosym /usr/lib/python${PYVER}/site-packages/pdict/pdict.py /usr/bin/pdict \ || die "dosym failed: creating 'executable'" } pkg_postinst() { echo "" einfo "You have installed only the core." einfo "You need to download any available dictionary" einfo "from http://dicts.info/ or pdict homepage." einfo "Copy these files into /usr/local/share/pdict" einfo "or into ~/pdict" echo "" }