Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=5 |
5 |
EAPI=5 |
6 |
|
6 |
|
7 |
inherit eutils autotools |
7 |
inherit autotools-multilib eutils |
8 |
|
8 |
|
9 |
DESCRIPTION="Library to handle, display and manipulate GIF images" |
9 |
DESCRIPTION="Library to handle, display and manipulate GIF images" |
10 |
HOMEPAGE="http://sourceforge.net/projects/giflib/" |
10 |
HOMEPAGE="http://sourceforge.net/projects/giflib/" |
Lines 16-25
Link Here
|
16 |
IUSE="static-libs X" |
16 |
IUSE="static-libs X" |
17 |
|
17 |
|
18 |
DEPEND="X? ( |
18 |
DEPEND="X? ( |
19 |
x11-libs/libXt |
19 |
x11-libs/libX11[${MULTILIB_USEDEP}] |
20 |
x11-libs/libX11 |
|
|
21 |
x11-libs/libICE |
22 |
x11-libs/libSM |
23 |
)" |
20 |
)" |
24 |
RDEPEND="${DEPEND}" |
21 |
RDEPEND="${DEPEND}" |
25 |
|
22 |
|
Lines 30-52
Link Here
|
30 |
epatch "${FILESDIR}"/${PN}-4.1.6-giffix-null-Extension-fix.patch |
27 |
epatch "${FILESDIR}"/${PN}-4.1.6-giffix-null-Extension-fix.patch |
31 |
sed -i \ |
28 |
sed -i \ |
32 |
-e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \ |
29 |
-e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \ |
33 |
configure.ac || die #486542 |
30 |
-e 's:${X_PRE_LIBS}::' \ |
|
|
31 |
configure.ac || die #486542,#483258 |
34 |
eautoreconf |
32 |
eautoreconf |
|
|
33 |
autotools-utils_src_prepare |
35 |
} |
34 |
} |
36 |
|
35 |
|
37 |
src_configure() { |
36 |
src_configure() { |
38 |
econf \ |
37 |
local myeconfargs=( |
39 |
$(use_enable static-libs static) \ |
38 |
$(use_enable static-libs static) |
40 |
$(use_enable X x11) |
39 |
$(use_enable X x11) |
|
|
40 |
) |
41 |
autotools-multilib_src_configure |
41 |
} |
42 |
} |
42 |
|
43 |
|
43 |
src_test() { |
44 |
src_test() { |
44 |
cd tests || die |
45 |
autotools-multilib_src_test -C tests |
45 |
emake |
|
|
46 |
} |
46 |
} |
47 |
|
47 |
|
48 |
src_install() { |
48 |
src_install() { |
49 |
default |
49 |
autotools-multilib_src_install |
|
|
50 |
|
50 |
# for static libs the .la file is required if built with +X |
51 |
# for static libs the .la file is required if built with +X |
51 |
use static-libs || find "${ED}" -name '*.la' -exec rm -f {} + |
52 |
use static-libs || find "${ED}" -name '*.la' -exec rm -f {} + |
52 |
doman doc/*.1 |
53 |
doman doc/*.1 |