blob: 3db8fef86f6790ee5782b75963848e239950ab45 (
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
42
43
44
45
46
47
48
49
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/miscfiles/miscfiles-1.4.2.ebuild,v 1.5 2007/01/22 17:49:54 vapier Exp $
inherit eutils
DESCRIPTION="Miscellaneous files"
HOMEPAGE="http://www.gnu.org/directory/miscfiles.html"
SRC_URI="mirror://gnu/miscfiles/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
IUSE="minimal"
DEPEND=""
RDEPEND=""
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/miscfiles-1.3-Makefile.diff
}
src_install() {
emake install prefix="${D}/usr" || die
dodoc GNU* NEWS ORIGIN README dict-README
rm -f "${D}"/usr/share/dict/README
if use minimal ; then
cd "${D}"/usr/share/dict
rm -f words extra.words
gzip -9 *
ln -s web2.gz words
ln -s web2a.gz extra.words
ln -s connectives{.gz,}
ln -s propernames{.gz,}
cd ..
rm -r misc rfc
fi
}
pkg_postinst() {
if [[ ${ROOT} == "/" ]] ; then
ebegin "Regenerating cracklib dictionary"
create-cracklib-dict /usr/share/dict/* > /dev/null
eend $?
fi
}
|