Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/mtd/mtd-20050519.ebuild,v 1.4 2006/12/03 06:32:16 vapier Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/mtd/mtd-20050519.ebuild,v 1.4 2006/12/03 06:32:16 vapier Exp $ |
4 |
|
4 |
|
|
|
5 |
inherit toolchain-funcs |
6 |
|
5 |
DESCRIPTION="JFFS2 is a log-structured file system designed for use on flash devices in embedded systems." |
7 |
DESCRIPTION="JFFS2 is a log-structured file system designed for use on flash devices in embedded systems." |
6 |
HOMEPAGE="http://sources.redhat.com/jffs2/" |
8 |
HOMEPAGE="http://sources.redhat.com/jffs2/" |
7 |
SRC_URI="ftp://ftp.uk.linux.org/pub/people/dwmw2/mtd/cvs/${PN}-snapshot-${PV}.tar.bz2" |
9 |
SRC_URI="ftp://ftp.uk.linux.org/pub/people/dwmw2/mtd/cvs/${PN}-snapshot-${PV}.tar.bz2" |
Lines 12-31
Link Here
|
12 |
|
14 |
|
13 |
S=${WORKDIR}/${PN} |
15 |
S=${WORKDIR}/${PN} |
14 |
|
16 |
|
15 |
DEPEND="sys-libs/zlib |
17 |
DEPEND="sys-libs/zlib" |
16 |
virtual/libc" |
|
|
17 |
|
18 |
|
18 |
src_unpack() { |
19 |
src_unpack() { |
19 |
unpack ${A} |
20 |
unpack ${A} |
20 |
sed -i -e s:'-O2 -Wall':"${CFLAGS}":g -e s:^MANDIR=.*:MANDIR=/usr/share/man: ${S}/util/Makefile || die |
21 |
sed -i -e s:'-O2 -Wall':"${CFLAGS}":g \ |
|
|
22 |
-e s:^MANDIR=.*:MANDIR=/usr/share/man: \ |
23 |
-e "s|^CC :=.*|CC=$(tc-getCC)|" \ |
24 |
"${S}/util/Makefile" || die |
21 |
} |
25 |
} |
22 |
|
26 |
|
23 |
src_compile() { |
27 |
src_compile() { |
24 |
cd ${S}/util |
28 |
cd "${S}/util" |
25 |
emake LINUXDIR=${ROOT}/usr/src/linux/ || die |
29 |
emake LINUXDIR="${ROOT}/usr/src/linux/" || die "emake failed" |
26 |
} |
30 |
} |
27 |
|
31 |
|
28 |
src_install() { |
32 |
src_install() { |
29 |
cd ${S}/util |
33 |
cd "${S}/util" |
30 |
einstall DESTDIR=${D} |
34 |
einstall DESTDIR="${D}" || die "einstall failed" |
31 |
} |
35 |
} |