summaryrefslogtreecommitdiff
blob: 75cdbc4bd419258d6090959eccde7dd12111a3bd (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-fs/mtd/mtd-20040825.ebuild,v 1.3 2004/08/30 16:33:04 dholm Exp $

DESCRIPTION="JFFS2 is a log-structured file system designed for use on flash devices in embedded systems."
HOMEPAGE="http://sources.redhat.com/jffs2/"
SRC_URI="ftp://ftp.uk.linux.org/pub/people/dwmw2/mtd/cvs/${PN}-snapshot-${PV}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~mips ~arm ~amd64 ~ppc"
IUSE=""

S=${WORKDIR}/${PN}

DEPEND="sys-libs/zlib
	virtual/libc"

src_unpack() {
	unpack ${A}
	sed -i -e s:'-O2 -Wall':"${CFLAGS}":g -e s:^MANDIR=.*:MANDIR=/usr/share/man: ${S}/util/Makefile || die
}

src_compile() {
	cd ${S}/util
	emake LINUXDIR=${ROOT}/usr/src/linux/ || die
}

src_install() {
	cd ${S}/util
	einstall DESTDIR=${D}
}