Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/radare/radare-1.5.2-r1.ebuild,v 1.2 2011/03/23 06:20:21 ssuominen Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/radare/radare-1.5.2-r1.ebuild,v 1.2 2011/03/23 06:20:21 ssuominen Exp $ |
4 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI="3" |
6 |
inherit base eutils |
6 |
PYTHON_DEPEND="2" |
|
|
7 |
|
8 |
inherit base eutils python |
7 |
|
9 |
|
8 |
DESCRIPTION="Advanced command line hexadecimal editor and more" |
10 |
DESCRIPTION="Advanced command line hexadecimal editor and more" |
9 |
HOMEPAGE="http://www.radare.org" |
11 |
HOMEPAGE="http://www.radare.org" |
Lines 15-21
Link Here
|
15 |
IUSE="gui lua readline" |
17 |
IUSE="gui lua readline" |
16 |
|
18 |
|
17 |
RDEPEND=" |
19 |
RDEPEND=" |
18 |
dev-lang/python |
|
|
19 |
dev-lang/perl |
20 |
dev-lang/perl |
20 |
gui? ( |
21 |
gui? ( |
21 |
x11-libs/gtk+:2 |
22 |
x11-libs/gtk+:2 |
Lines 26-31
Link Here
|
26 |
dev-util/pkgconfig |
27 |
dev-util/pkgconfig |
27 |
gui? ( >=dev-lang/vala-0.5:0.10 )" |
28 |
gui? ( >=dev-lang/vala-0.5:0.10 )" |
28 |
|
29 |
|
|
|
30 |
pkg_setup() { |
31 |
if [[ $(eselect python show) == "python2.5" ]]; then |
32 |
python_set_active_version 2.5 |
33 |
elif [[ $(eselect python show) == "python2.6" ]]; then |
34 |
python_set_active_version 2.6 |
35 |
fi |
36 |
} |
37 |
|
29 |
src_prepare() { |
38 |
src_prepare() { |
30 |
base_src_prepare |
39 |
base_src_prepare |
31 |
epatch "${FILESDIR}"/${PN}-1.5-ldflags.patch \ |
40 |
epatch "${FILESDIR}"/${PN}-1.5-ldflags.patch \ |
Lines 42-50
Link Here
|
42 |
} |
51 |
} |
43 |
|
52 |
|
44 |
src_compile() { |
53 |
src_compile() { |
45 |
emake -j1 || die "compile failed" |
54 |
emake || die "compile failed" |
46 |
} |
55 |
} |
47 |
|
56 |
|
48 |
src_install() { |
57 |
src_install() { |
49 |
emake DESTDIR="${ED}" install || die "install failed" |
58 |
emake DESTDIR="${ED}" install || die "install failed" |
50 |
} |
59 |
} |
|
|
60 |
|
61 |
pkg_postinst() { |
62 |
if [[ $(eselect python show) == "python2.5" ]] || |
63 |
[[ $(eselect python show) == "python2.6" ]]; then |
64 |
python_mod_optimize radare |
65 |
else |
66 |
ewarn "optimization of python modules can only occur" |
67 |
ewarn "if the active version of python is 2.5 or 2.6" |
68 |
ewarn "this will be skipped" |
69 |
fi |
70 |
} |
71 |
|
72 |
pkg_postrm() { |
73 |
if ([[ $(eselect python show) == "python2.5" ]]) || \ |
74 |
([[ $(eselect python show) == "python2.6" ]]); then |
75 |
python_mod_cleanup radare |
76 |
fi |
77 |
} |