summaryrefslogtreecommitdiff
blob: 0b45260630f9a015751144d3e8df5544b6d95d1a (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-apps/miscfiles/miscfiles-1.3-r1.ebuild,v 1.10 2004/06/24 22:17:07 agriffis Exp $

inherit eutils

DESCRIPTION="Miscellaneous files"
HOMEPAGE="http://www.gnu.org/directory/miscfiles.html"
SRC_URI="ftp://ftp.gnu.org/gnu/${PN}/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc mips alpha arm hppa amd64 ia64 ppc64 s390"
IUSE="uclibc"

DEPEND="virtual/glibc
	uclibc? ( app-arch/gzip )"

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/tasks.info.diff
	epatch ${FILESDIR}/${P}-Makefile.diff
}

src_install() {
	einstall || die
	dodoc GNU* NEWS ORIGIN README dict-README

	if use uclibc ; then
		cd ${D}/usr/share/dict
		# need to remove the hardlinks, else gzip won't work
		rm -f words extra.words README
		gzip -9 *
		ln -s web2.gz words
		ln -s web2a.gz extra.words
		cd ..
		# which app uses these?
		rm -rf misc state rfc
		#rm -f misc/GNU-manifesto
		#gzip -9 misc/* state/* rfc/*
		cd ${S}
	fi
}