blob: c93e12922bbad6be2f8adfc7341a207bf351d05e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit eutils
MY_P="${P/-bin}"
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"
SLOT="0"
LICENSE="words"
KEYWORDS="~x86"
IUSE=""
DEPEND=""
RDEPEND=""
S=${WORKDIR}/${MY_P}
src_unpack(){
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/words_dir.patch
}
src_install() {
insinto /opt/${MY_P}
dodir /usr/bin
dodoc wordsdoc*
rm wordsdoc*
doins *
dosym "${D}"/opt/${MY_P}/latin /usr/bin/latin
fperms 755 /opt/${MY_P}/{latin,words}
}
pkg_postinst() {
elog "Dictionary is launched through 'latin' command"
}
|