summaryrefslogtreecommitdiff
blob: 27ed06eb2068a9295f57bf2128f820ddb808a808 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: System Team <system@gentoo.org>
# Author: Daniel Robbins <drobbins@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/sys-apps/e2fsprogs/e2fsprogs-1.25-r1.ebuild,v 1.2 2001/12/12 20:38:13 drobbins Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Standard ext2 and ext3 filesystem utilities"
SRC_URI="http://prdownloads.sourceforge.net/${PN}/${P}.tar.gz"
HOMEPAGE="http://e2fsprogs.sourceforge.net/"

DEPEND="virtual/glibc nls? ( sys-devel/gettext ) sys-apps/texinfo"
RDEPEND="virtual/glibc"

src_compile() {
	local myconf
	if [ "`use nls`" ]
	then
		myconf="--enable-nls"
	else
		myconf="--disable-nls"
	fi
	./configure --host=${CHOST} --prefix=/ --mandir=/usr/share/man --infodir=/usr/share/info --enable-elf-shlibs ${myconf} || die
	# Parallel make sometimes fails
	make || die
}

src_install() {
	local myopts
	myopts="${myopts} mandir=/usr/share/man infodir=/usr/share/info"

	make DESTDIR=${D} ${myopts} install || die
	make DESTDIR=${D} ${myopts} install-libs || die

	if [ "`use nls`" ]
	then
		( cd po; make DESTDIR=${D} install || die )
	fi
	
	dodoc COPYING ChangeLog README RELEASE-NOTES SHLIBS
	docinto e2fsck
	dodoc e2fsck/ChangeLog e2fsck/CHANGES

	dodir /usr/bin /usr/sbin
	cd ${D}/bin
	mv lsattr chattr uuidgen ../usr/bin
	cd ${D}/sbin
	mv mklost+found ../usr/sbin
	
	local i
	for i in e2p et ext2fs ss uuid
	do
		docinto lib/${i}
		dodoc lib/${i}/ChangeLog
	done
	docinto misc
	dodoc misc/ChangeLog
	docinto resize
	dodoc resize/ChangeLog
	docinto util
	dodoc util/ChangeLog
}