-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
-MY_P="words-${PV}"
+MY_P="${P/-bin}Ed"
-DESCRIPTION="Latin-English dictionary."
+DESCRIPTION="Latin--English dictionary."
HOMEPAGE="http://users.erols.com/whitaker/words.htm"
-SRC_URI="ftp://petrus.thomasaquinas.edu/pub/linux/words/$MY_P-linux.tar.gz"
+SRC_URI="http://atrey.karlin.mff.cuni.cz/~sanda/mirror/${MY_P}-linux.tar.gz"
SLOT="0"
LICENSE="words"
-KEYWORDS="~x86"
+KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
-S=$WORKDIR/$MY_P
+S="${WORKDIR}/${MY_P}"
src_unpack(){
unpack ${A}
}
src_install() {
- insinto /opt/$MY_P
- dodir /usr/bin
+ insinto /opt/${MY_P}
dodoc wordsdoc*
rm wordsdoc*
doins *
- dosym "$D"/opt/$MY_P/latin /usr/bin/latin
- fperms 755 /opt/$MY_P/{latin,words}
+ dosym /opt/${MY_P}/latin /usr/bin/latin
+ fperms 755 /opt/${MY_P}/{latin,words}
}
pkg_postinst() {
- einfo "Dictionary is launched through 'latin' command"
+ elog "Dictionary is launched through 'latin' command"
}