Lines 1-6
Link Here
|
1 |
# Copyright 1999-2008 Gentoo Foundation |
1 |
# Copyright 1999-2008 Gentoo Foundation |
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/app-arch/p7zip/p7zip-4.58.ebuild,v 1.8 2008/12/27 05:00:55 darkside Exp $ |
3 |
# $Header: $ |
|
|
4 |
|
5 |
EAPI=2 |
4 |
|
6 |
|
5 |
inherit eutils toolchain-funcs multilib |
7 |
inherit eutils toolchain-funcs multilib |
6 |
|
8 |
|
Lines 11-25
Link Here
|
11 |
LICENSE="LGPL-2.1" |
13 |
LICENSE="LGPL-2.1" |
12 |
SLOT="0" |
14 |
SLOT="0" |
13 |
KEYWORDS="~alpha amd64 hppa ~ia64 ppc ppc64 sparc x86 ~x86-fbsd" |
15 |
KEYWORDS="~alpha amd64 hppa ~ia64 ppc ppc64 sparc x86 ~x86-fbsd" |
14 |
IUSE="static doc" |
16 |
IUSE="static doc wxwindows" |
15 |
|
17 |
|
16 |
DEPEND="" |
18 |
RDEPEND="wxwindows? ( x11-libs/wxGTK[X] )" |
|
|
19 |
DEPEND="${RDEPENDS}" |
17 |
|
20 |
|
18 |
S=${WORKDIR}/${PN}_${PV} |
21 |
S=${WORKDIR}/${PN}_${PV} |
19 |
|
22 |
|
20 |
src_unpack() { |
23 |
src_prepare() { |
21 |
unpack ${A} |
|
|
22 |
cd "${S}" |
23 |
sed -i \ |
24 |
sed -i \ |
24 |
-e "/^CXX=/s:g++:$(tc-getCXX):" \ |
25 |
-e "/^CXX=/s:g++:$(tc-getCXX):" \ |
25 |
-e "/^CC=/s:gcc:$(tc-getCC):" \ |
26 |
-e "/^CC=/s:gcc:$(tc-getCC):" \ |
Lines 28-33
Link Here
|
28 |
-e '/Rar/d' \ |
29 |
-e '/Rar/d' \ |
29 |
makefile* || die "changing makefiles" |
30 |
makefile* || die "changing makefiles" |
30 |
|
31 |
|
|
|
32 |
use wxwindows && epatch "${FILESDIR}"/${PV}-makefile.patch |
33 |
|
31 |
if use amd64; then |
34 |
if use amd64; then |
32 |
ewarn "Using suboptimal -fPIC upstream makefile due to amd64 being detected. See #126722" |
35 |
ewarn "Using suboptimal -fPIC upstream makefile due to amd64 being detected. See #126722" |
33 |
cp -f makefile.linux_amd64 makefile.machine |
36 |
cp -f makefile.linux_amd64 makefile.machine |
Lines 47-52
Link Here
|
47 |
|
50 |
|
48 |
src_compile() { |
51 |
src_compile() { |
49 |
emake all3 || die "compilation error" |
52 |
emake all3 || die "compilation error" |
|
|
53 |
use wxwindows && emake 7zG || die "error building GUI" |
54 |
} |
55 |
|
56 |
src_test() { |
57 |
emake test_7z test_7zr || die "test failed" |
58 |
use wxwindows && emake test_7zG || die "GUI test failed" |
50 |
} |
59 |
} |
51 |
|
60 |
|
52 |
src_install() { |
61 |
src_install() { |
Lines 55-60
Link Here
|
55 |
make_wrapper 7za "/usr/lib/${PN}/7za" |
64 |
make_wrapper 7za "/usr/lib/${PN}/7za" |
56 |
make_wrapper 7z "/usr/lib/${PN}/7z" |
65 |
make_wrapper 7z "/usr/lib/${PN}/7z" |
57 |
|
66 |
|
|
|
67 |
if use wxwindows; then |
68 |
make_wrapper 7zG "/usr/lib/${PN}/7zG" |
69 |
|
70 |
dobin GUI/p7zipForFilemanager |
71 |
exeinto /usr/$(get_libdir)/${PN} |
72 |
doexe bin/7zG |
73 |
|
74 |
insinto /usr/$(get_libdir)/${PN} |
75 |
doins -r GUI/{Lang,help} |
76 |
fi |
77 |
|
58 |
dobin "${FILESDIR}/p7zip" || die |
78 |
dobin "${FILESDIR}/p7zip" || die |
59 |
|
79 |
|
60 |
# gzip introduced in 4.42, so beware :) |
80 |
# gzip introduced in 4.42, so beware :) |