blob: 601cd56496c984b5f363897f1b28abfa6543d8d0 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/dosfstools/dosfstools-2.10.ebuild,v 1.14 2005/01/03 00:09:22 ciaranm Exp $
inherit eutils flag-o-matic
DESCRIPTION="DOS filesystem tools - provides mkdosfs, mkfs.msdos, mkfs.vfat"
HOMEPAGE="ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/"
SRC_URI="ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/${P}.src.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc sparc ~alpha hppa amd64 ia64"
IUSE=""
DEPEND="virtual/libc"
src_unpack() {
unpack ${A}; cd ${S}
epatch ${FILESDIR}/errno.patch
epatch ${FILESDIR}/${P}-2.6.headers.patch
sed -i "s:PREFIX\ \=:PREFIX\ \=\ \/usr:" Makefile
sed -i "s:\/usr\/man:\/share\/man:" Makefile
# Bug: 34785 hardened-gcc transparently adds -fPIC so we must filter
# that away because this package cant cope. (Nov 30 2003 -solar)
# has_version 'sys-devel/hardened-gcc' && \
# sed -i -e "s:^DEBUGFLAGS.*:DEBUGFLAGS=-yet_exec:g" Makefile
}
src_compile() {
filter-flags -fPIC
# this package does *not* play well with optimisations
# please dont change to: make OPTFLAGS="${CFLAGS}"
make || die
}
src_install() {
make PREFIX=${D}/usr install || die
dodoc CHANGES TODO
newdoc dosfsck/README README.dosfsck
newdoc dosfsck/CHANGES CHANGES.dosfsck
newdoc dosfsck/COPYING COPYING.dosfsck
newdoc mkdosfs/README README.mkdosfs
newdoc mkdosfs/ChangeLog ChangeLog.mkdosfs
}
|