Lines 24-30
Link Here
|
24 |
gtk? ( =x11-libs/gtk+-1* |
24 |
gtk? ( =x11-libs/gtk+-1* |
25 |
=dev-libs/glib-1* ) |
25 |
=dev-libs/glib-1* ) |
26 |
ncurses? ( sys-libs/ncurses |
26 |
ncurses? ( sys-libs/ncurses |
27 |
>=dev-libs/glib-2.12.4-r1 )" |
27 |
elibc_uclibc? ( || ( =dev-libs/glib-1* |
|
|
28 |
>=dev-libs/glib-2.12.4-r1 ) |
29 |
) |
30 |
)" |
31 |
|
28 |
DEPEND="${RDEPEND}" |
32 |
DEPEND="${RDEPEND}" |
29 |
|
33 |
|
30 |
src_unpack() { |
34 |
src_unpack() { |
Lines 43-49
Link Here
|
43 |
epatch "${FILESDIR}/${PV}/BaseName.patch" |
47 |
epatch "${FILESDIR}/${PV}/BaseName.patch" |
44 |
|
48 |
|
45 |
epatch "${FILESDIR}/${P}-as-needed.patch" |
49 |
epatch "${FILESDIR}/${P}-as-needed.patch" |
46 |
epatch "${FILESDIR}/${P}-glib_dep.patch" |
50 |
use elibc_uclibc || epatch "${FILESDIR}/${P}-glib_dep.patch" |
47 |
epatch "${FILESDIR}/${P}-ocfs2.patch" |
51 |
epatch "${FILESDIR}/${P}-ocfs2.patch" |
48 |
epatch "${FILESDIR}/${P}-use_disk_group.patch" |
52 |
epatch "${FILESDIR}/${P}-use_disk_group.patch" |
49 |
|
53 |
|
Lines 56-74
Link Here
|
56 |
replace-flags -O3 -O2 |
60 |
replace-flags -O3 -O2 |
57 |
replace-flags -Os -O2 |
61 |
replace-flags -Os -O2 |
58 |
|
62 |
|
59 |
local excluded_interfaces="" |
63 |
local myconf="" |
60 |
use ncurses || excluded_interfaces="--disable-text-mode" |
64 |
|
61 |
use gtk || excluded_interfaces="${excluded_interfaces} --disable-gui" |
65 |
use ncurses || myconf="--disable-text-mode" |
|
|
66 |
use gtk || myconf="${myconf} --disable-gui" |
62 |
|
67 |
|
63 |
# We have to link statically against glib because evmsn resides in /sbin |
68 |
# We have to link statically against glib because evmsn resides in /sbin |
|
|
69 |
# but we can't do this, glib-2* not supported on uclibc |
70 |
use elibc_uclibc || myconf="${myconf} --with-static-glib" |
71 |
|
72 |
myconf="${myconf} $(use_with debug) \ |
73 |
$(use_enable nls) " |
74 |
|
64 |
econf \ |
75 |
econf \ |
65 |
--libdir=/$(get_libdir) \ |
76 |
--libdir=/$(get_libdir) \ |
66 |
--sbindir=/sbin \ |
77 |
--sbindir=/sbin \ |
67 |
--includedir=/usr/include \ |
78 |
--includedir=/usr/include \ |
68 |
--with-static-glib \ |
79 |
${myconf} || die "Failed configure" |
69 |
$(use_with debug) \ |
|
|
70 |
$(use_enable nls) \ |
71 |
${excluded_interfaces} || die "Failed configure" |
72 |
emake || die "Failed emake" |
80 |
emake || die "Failed emake" |
73 |
} |
81 |
} |
74 |
|
82 |
|