blob: 52fefaaa4855d44e3879a1f23004ed90f65f0b4b (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/lzma-utils/lzma-utils-4.32.7.ebuild,v 1.7 2008/10/27 22:29:04 ranger Exp $
# Remember: we cannot leverage autotools in this ebuild in order
# to avoid circular deps with autotools
inherit eutils
MY_P="lzma-${PV/_}"
DESCRIPTION="LZMA interface made easy"
HOMEPAGE="http://tukaani.org/lzma/"
SRC_URI="http://tukaani.org/lzma/${MY_P}.tar.gz
nocxx? ( mirror://gentoo/${PN}-4.32.6-nocxx.patch.bz2 )"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc ~sparc-fbsd x86 ~x86-fbsd"
IUSE="nocxx"
RDEPEND="!app-arch/lzma
!<app-arch/p7zip-4.57"
S=${WORKDIR}/${MY_P}
src_unpack() {
unpack ${A}
cd "${S}"
if use nocxx ; then
epatch "${WORKDIR}"/${PN}-4.32.6-nocxx.patch
find -type f -print0 | xargs -0 touch -r configure
epunt_cxx
fi
}
src_install() {
emake install DESTDIR="${D}" || die
dodoc AUTHORS ChangeLog NEWS README THANKS
use nocxx && newbin "${FILESDIR}"/lzma-nocxx.sh lzma
}
pkg_postinst() {
if use nocxx ; then
ewarn "You have a neutered lzma package install due to USE=nocxx."
ewarn "You will only be able to unpack lzma archives."
fi
}
|