Lines 25-32
Link Here
|
25 |
# So, for example, with the bonobo bindings, the original package is libbonobo |
25 |
# So, for example, with the bonobo bindings, the original package is libbonobo |
26 |
# and the packages is named dev-python/libbonobo-python |
26 |
# and the packages is named dev-python/libbonobo-python |
27 |
|
27 |
|
|
|
28 |
SUPPORT_PYTHON_ABIS="1" |
29 |
PYTHON_DEPEND="2" |
30 |
RESTRICT_PYTHON_ABIS="3.*" |
31 |
|
28 |
inherit versionator python autotools gnome2 |
32 |
inherit versionator python autotools gnome2 |
29 |
|
33 |
|
|
|
34 |
case "${EAPI:-0}" in |
35 |
0|1) |
36 |
EXPORT_FUNCTIONS pkg_setup src_unpack src_compile src_install pkg_postinst pkg_postrm |
37 |
;; |
38 |
*) |
39 |
EXPORT_FUNCTIONS pkg_setup src_configure src_prepare src_compile src_install |
40 |
;; |
41 |
esac |
42 |
|
30 |
G_PY_PN=${G_PY_PN:-gnome-python} |
43 |
G_PY_PN=${G_PY_PN:-gnome-python} |
31 |
G_PY_BINDINGS=${G_PY_BINDINGS:-${PN%-python}} |
44 |
G_PY_BINDINGS=${G_PY_BINDINGS:-${PN%-python}} |
32 |
|
45 |
|
Lines 65-75
Link Here
|
65 |
gnome-python-common_src_unpack() { |
78 |
gnome-python-common_src_unpack() { |
66 |
gnome2_src_unpack |
79 |
gnome2_src_unpack |
67 |
|
80 |
|
|
|
81 |
has ${EAPI:-0} 0 1 && gnome-python-common_src_prepare |
82 |
} |
83 |
|
84 |
gnome-python-common_src_prepare() { |
85 |
gnome2_src_prepare |
86 |
|
68 |
# disable pyc compiling |
87 |
# disable pyc compiling |
69 |
if [[ -f py-compile ]]; then |
88 |
if [[ -f py-compile ]]; then |
70 |
rm py-compile |
89 |
rm py-compile |
71 |
ln -s $(type -P true) py-compile |
90 |
ln -s $(type -P true) py-compile |
72 |
fi |
91 |
fi |
|
|
92 |
|
93 |
# The .pc file is installed by respective gnome-python*-base package |
94 |
sed -i '/^pkgconfig_DATA/d' Makefile.in || die "sed failed" |
95 |
sed -i '/^pkgconfigdir/d' Makefile.in || die "sed failed" |
96 |
|
97 |
python_copy_sources |
98 |
} |
99 |
|
100 |
gnome-python-common_src_configure() { |
101 |
python_execute_function -s gnome2_src_configure "$@" |
102 |
} |
103 |
|
104 |
gnome-python-common_src_compile() { |
105 |
has ${EAPI:-0} 0 1 && gnome-python-common_src_configure "$@" |
106 |
python_src_compile "$@" |
107 |
} |
108 |
|
109 |
gnome-python-common_src_test() { |
110 |
python_src_test "$@" |
73 |
} |
111 |
} |
74 |
|
112 |
|
75 |
# Do a regular gnome2 src_install and then install examples if required. |
113 |
# Do a regular gnome2 src_install and then install examples if required. |
Lines 77-87
Link Here
|
77 |
# (to install a directory recursively, specify it with a trailing '/' - for |
115 |
# (to install a directory recursively, specify it with a trailing '/' - for |
78 |
# example, foo/bar/) |
116 |
# example, foo/bar/) |
79 |
gnome-python-common_src_install() { |
117 |
gnome-python-common_src_install() { |
80 |
# The .pc file is installed by respective gnome-python*-base package |
118 |
python_execute_function -s gnome2_src_install "$@" |
81 |
sed -i '/^pkgconfig_DATA/d' Makefile || die "sed failed" |
119 |
python_clean_installation_image |
82 |
sed -i '/^pkgconfigdir/d' Makefile || die "sed failed" |
|
|
83 |
|
84 |
gnome2_src_install |
85 |
|
120 |
|
86 |
if hasq examples ${IUSE} && use examples; then |
121 |
if hasq examples ${IUSE} && use examples; then |
87 |
insinto /usr/share/doc/${PF}/examples |
122 |
insinto /usr/share/doc/${PF}/examples |
Lines 94-114
Link Here
|
94 |
fi |
129 |
fi |
95 |
done |
130 |
done |
96 |
fi |
131 |
fi |
97 |
|
|
|
98 |
# Python does not need these, bug #299243 |
99 |
find "${D%/}${EPREFIX}$(python_get_sitedir)" -name "*.la" -delete \ |
100 |
|| die "failed to remove la files" |
101 |
|
102 |
} |
132 |
} |
103 |
|
133 |
|
104 |
gnome-python-common_pkg_postinst() { |
134 |
gnome-python-common_pkg_postinst() { |
105 |
python_version |
135 |
python_mod_optimize gtk-2.0 |
106 |
python_need_rebuild |
|
|
107 |
python_mod_optimize /usr/$(get_libdir)/python${PYVER}/site-packages/gtk-2.0 |
108 |
} |
136 |
} |
109 |
|
137 |
|
110 |
gnome-python-common_pkg_postrm() { |
138 |
gnome-python-common_pkg_postrm() { |
111 |
python_mod_cleanup |
139 |
python_mod_cleanup gtk-2.0 |
112 |
} |
140 |
} |
113 |
|
|
|
114 |
EXPORT_FUNCTIONS pkg_setup src_unpack src_install pkg_postinst pkg_postrm |