Lines 2-18
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/squashfs-tools/squashfs-tools-4.0.ebuild,v 1.7 2009/07/18 20:18:30 josejx Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sys-fs/squashfs-tools/squashfs-tools-4.0.ebuild,v 1.7 2009/07/18 20:18:30 josejx Exp $ |
4 |
|
4 |
|
5 |
inherit toolchain-funcs |
5 |
inherit toolchain-funcs eutils |
6 |
|
6 |
|
7 |
MY_PV=${PV} |
7 |
MY_PV=${PV} |
8 |
DESCRIPTION="Tool for creating compressed filesystem type squashfs" |
8 |
DESCRIPTION="Tool for creating compressed filesystem type squashfs" |
9 |
HOMEPAGE="http://squashfs.sourceforge.net/" |
9 |
HOMEPAGE="http://squashfs.sourceforge.net/" |
10 |
SRC_URI="mirror://sourceforge/squashfs/squashfs${MY_PV}.tar.gz" |
10 |
SRC_URI="mirror://sourceforge/squashfs/squashfs${MY_PV}.tar.gz |
|
|
11 |
lzma? ( mirror://sourceforge/sevenzip/lzma465.tar.bz2 )" |
11 |
|
12 |
|
12 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
13 |
SLOT="0" |
14 |
SLOT="0" |
14 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" |
15 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" |
15 |
IUSE="" |
16 |
IUSE="lzma" |
16 |
|
17 |
|
17 |
RDEPEND="sys-libs/zlib" |
18 |
RDEPEND="sys-libs/zlib" |
18 |
|
19 |
|
Lines 21-26
S=${WORKDIR}/squashfs${MY_PV}/squashfs-t
Link Here
|
21 |
src_unpack() { |
22 |
src_unpack() { |
22 |
unpack ${A} |
23 |
unpack ${A} |
23 |
cd "${S}" |
24 |
cd "${S}" |
|
|
25 |
|
26 |
if use lzma ; then |
27 |
EPATCH_OPTS="-p1" epatch "${FILESDIR}/${P}-lzma.patch" |
28 |
fi |
29 |
|
24 |
sed -i \ |
30 |
sed -i \ |
25 |
-e 's:-O2:$(CFLAGS):' \ |
31 |
-e 's:-O2:$(CFLAGS):' \ |
26 |
-e 's:$(CC):$(CC) $(LDFLAGS):' \ |
32 |
-e 's:$(CC):$(CC) $(LDFLAGS):' \ |