summaryrefslogtreecommitdiff
blob: 078669a1e1b7795ed85b282cfb072683d114acfa (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
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Michael Conrad Tilstra <michael@gentoo.org> <tadpol@tadpol.org>
# $Header: /var/cvsroot/gentoo-x86/app-text/dictd-jargon/dictd-jargon-4.2.3.ebuild,v 1.2 2001/04/24 22:58:35 michael Exp $

#P=
A=jargon_4.2.3.tar.gz
S=${WORKDIR}
DESCRIPTION="Jargon lexicon"
SRC_URI="ftp://ftp.dict.org/pub/dict/pre/${A}"
HOMEPAGE="http://www.dict.org"

DEPEND=">=app-text/dictd-1.5.5"

src_install () {
	dodoc README
	dodir /usr/lib/dict
	insinto /usr/lib/dict
	doins jargon.dict.dz
	doins jargon.index
}

pkg_postinst() {
if [ -f /etc/dict/dictd.conf ]; then
cat >> /etc/dict/dictd.conf << __EOF__
database jargon { data "/usr/lib/dict/jargon.dict.dz"
                  index "/usr/lib/dict/jargon.index" }
__EOF__
fi
}

pkg_postrm() {
if [ -f /etc/dict/dictd.conf ]; then
  cat /etc/dict/dictd.conf | sed -e '/jargon/d' > /etc/dict/dictd.conf.$$
  mv /etc/dict/dictd.conf.$$ /etc/dict/dictd.conf
fi
}


# vim: ai et sw=4 ts=4