Lines 1-14
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2012 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/dev-libs/gobject-introspection/gobject-introspection-1.32.1.ebuild,v 1.15 2012/12/09 18:33:49 tetromino Exp $ |
3 |
# $Header: $ |
4 |
|
4 |
|
5 |
EAPI="4" |
5 |
EAPI=5 |
6 |
GCONF_DEBUG="no" |
6 |
GCONF_DEBUG="no" |
7 |
GNOME2_LA_PUNT="yes" |
7 |
GNOME2_LA_PUNT="yes" |
8 |
PYTHON_DEPEND="2:2.7" |
8 |
PYTHON_DEPEND="2:2.7" |
9 |
PYTHON_USE_WITH="xml" |
9 |
PYTHON_USE_WITH="xml" |
10 |
|
10 |
|
11 |
inherit gnome2 python toolchain-funcs |
11 |
inherit gnome2 python toolchain-funcs autotools multilib-minimal |
12 |
|
12 |
|
13 |
DESCRIPTION="Introspection infrastructure for generating gobject library bindings for various languages" |
13 |
DESCRIPTION="Introspection infrastructure for generating gobject library bindings for various languages" |
14 |
HOMEPAGE="http://live.gnome.org/GObjectIntrospection/" |
14 |
HOMEPAGE="http://live.gnome.org/GObjectIntrospection/" |
Lines 48-53
Link Here
|
48 |
python_pkg_setup |
48 |
python_pkg_setup |
49 |
} |
49 |
} |
50 |
|
50 |
|
|
|
51 |
disable_unrequired_stuff_for_x86() { |
52 |
if [ "$(get_libdir)" == "lib32" ]; then |
53 |
cd ${BUILD_DIR} |
54 |
|
55 |
# disable configure checks |
56 |
epatch ${FILESDIR}/disable_python.patch |
57 |
|
58 |
# disable python bindings |
59 |
sed -i "s/include Makefile-giscanner.am//" Makefile.am || die "sed failed" |
60 |
|
61 |
# disable stuff we won't install for x86 anyways |
62 |
sed -i "s/include Makefile-tools.am//" Makefile.am || die "sed failed" |
63 |
sed -i "s/include Makefile-gir.am//" Makefile.am || die "sed failed" |
64 |
|
65 |
# disable tests |
66 |
sed -i "s/SUBDIRS = . docs tests/SUBDIRS = . docs/" Makefile.am || die "sed failed" |
67 |
eautoreconf |
68 |
fi |
69 |
} |
70 |
|
51 |
src_prepare() { |
71 |
src_prepare() { |
52 |
# FIXME: Parallel compilation failure with USE=doc |
72 |
# FIXME: Parallel compilation failure with USE=doc |
53 |
use doc && MAKEOPTS="-j1" |
73 |
use doc && MAKEOPTS="-j1" |
Lines 74-87
Link Here
|
74 |
ewarn "on your system. Consider installing it to get tests to run." |
94 |
ewarn "on your system. Consider installing it to get tests to run." |
75 |
fi |
95 |
fi |
76 |
fi |
96 |
fi |
|
|
97 |
|
98 |
multilib_copy_sources |
99 |
multilib_foreach_abi disable_unrequired_stuff_for_x86 |
77 |
} |
100 |
} |
78 |
|
101 |
|
79 |
src_test() { |
102 |
multilib_src_test() { |
80 |
[[ -z ${gi_skip_tests} ]] && default |
103 |
[[ -z ${gi_skip_tests} ]] && default |
81 |
} |
104 |
} |
82 |
|
105 |
|
83 |
src_install() { |
106 |
multilib_src_install() { |
84 |
gnome2_src_install |
107 |
gnome2_src_install |
|
|
108 |
} |
109 |
|
110 |
multilib_src_install_all() { |
85 |
python_convert_shebangs 2 "${ED}"usr/bin/g-ir-{annotation-tool,scanner} |
111 |
python_convert_shebangs 2 "${ED}"usr/bin/g-ir-{annotation-tool,scanner} |
86 |
use doctool && python_convert_shebangs 2 "${ED}"usr/bin/g-ir-doc-tool |
112 |
use doctool && python_convert_shebangs 2 "${ED}"usr/bin/g-ir-doc-tool |
87 |
|
113 |
|