--- /usr/portage/sys-fs/squashfs-tools/squashfs-tools-4.0.ebuild 2009-07-18 20:37:03.000000000 +0000 +++ squashfs-tools-4.0-lzma.ebuild 2009-12-08 11:28:50.000000000 +0000 @@ -2,17 +2,18 @@ # Distributed under the terms of the GNU General Public License v2 # $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 $ -inherit toolchain-funcs +inherit toolchain-funcs eutils MY_PV=${PV} DESCRIPTION="Tool for creating compressed filesystem type squashfs" HOMEPAGE="http://squashfs.sourceforge.net/" -SRC_URI="mirror://sourceforge/squashfs/squashfs${MY_PV}.tar.gz" +SRC_URI="mirror://sourceforge/squashfs/squashfs${MY_PV}.tar.gz + lzma? ( mirror://sourceforge/sevenzip/lzma465.tar.bz2 )" LICENSE="GPL-2" SLOT="0" KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86" -IUSE="" +IUSE="lzma" RDEPEND="sys-libs/zlib" @@ -21,6 +22,11 @@ S=${WORKDIR}/squashfs${MY_PV}/squashfs-t src_unpack() { unpack ${A} cd "${S}" + + if use lzma ; then + EPATCH_OPTS="-p1" epatch "${FILESDIR}/${P}-lzma.patch" + fi + sed -i \ -e 's:-O2:$(CFLAGS):' \ -e 's:$(CC):$(CC) $(LDFLAGS):' \