1 |
commit: e972ee1f4ddf9c00d170c5f607af5138adda3fbc |
2 |
Author: Davide Pesavento <davidepesa <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Mar 3 14:35:18 2012 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Mar 3 14:35:18 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=e972ee1f |
7 |
|
8 |
[dev-python/PyQt4] Sync with portage (EAPI 4). |
9 |
|
10 |
(Portage version: 2.2.0_alpha89/git/Linux x86_64, unsigned Manifest commit) |
11 |
|
12 |
--- |
13 |
dev-python/PyQt4/PyQt4-4.9.1_pre20120204.ebuild | 38 +++++++++++++--------- |
14 |
1 files changed, 22 insertions(+), 16 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/PyQt4/PyQt4-4.9.1_pre20120204.ebuild b/dev-python/PyQt4/PyQt4-4.9.1_pre20120204.ebuild |
17 |
index 1ca6a55..46326ef 100644 |
18 |
--- a/dev-python/PyQt4/PyQt4-4.9.1_pre20120204.ebuild |
19 |
+++ b/dev-python/PyQt4/PyQt4-4.9.1_pre20120204.ebuild |
20 |
@@ -2,13 +2,14 @@ |
21 |
# Distributed under the terms of the GNU General Public License v2 |
22 |
# $Header: $ |
23 |
|
24 |
-EAPI="3" |
25 |
+EAPI=4 |
26 |
+ |
27 |
PYTHON_DEPEND="*" |
28 |
PYTHON_EXPORT_PHASE_FUNCTIONS="1" |
29 |
SUPPORT_PYTHON_ABIS="1" |
30 |
RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*" |
31 |
|
32 |
-inherit python qt4-r2 toolchain-funcs |
33 |
+inherit toolchain-funcs qt4-r2 python |
34 |
|
35 |
REVISION=83ed847d0273 |
36 |
|
37 |
@@ -29,7 +30,18 @@ fi |
38 |
LICENSE="|| ( GPL-2 GPL-3 )" |
39 |
SLOT="0" |
40 |
KEYWORDS="~amd64 ~arm ~ia64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" |
41 |
-IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns" |
42 |
+IUSE="X assistant dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns" |
43 |
+ |
44 |
+REQUIRED_USE=" |
45 |
+ assistant? ( X ) |
46 |
+ declarative? ( X ) |
47 |
+ multimedia? ( X ) |
48 |
+ opengl? ( X ) |
49 |
+ phonon? ( X ) |
50 |
+ sql? ( X ) |
51 |
+ svg? ( X ) |
52 |
+ webkit? ( X ) |
53 |
+" |
54 |
|
55 |
RDEPEND=" |
56 |
>=dev-python/sip-4.13.1 |
57 |
@@ -73,7 +85,7 @@ PYTHON_VERSIONED_EXECUTABLES=("/usr/bin/pyuic4") |
58 |
|
59 |
src_prepare() { |
60 |
if ! use dbus; then |
61 |
- sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed" |
62 |
+ sed -e 's/^\([[:blank:]]\+\)check_dbus()/\1pass/' -i configure.py || die |
63 |
fi |
64 |
|
65 |
# Support qreal for arm architecture (bug #322349). |
66 |
@@ -82,12 +94,12 @@ src_prepare() { |
67 |
qt4-r2_src_prepare |
68 |
|
69 |
# Use proper include directory. |
70 |
- sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed" |
71 |
+ sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die |
72 |
|
73 |
python_copy_sources |
74 |
|
75 |
preparation() { |
76 |
- if [[ "$(python_get_version -l --major)" == "3" ]]; then |
77 |
+ if [[ $(python_get_version -l --major) == 3 ]]; then |
78 |
rm -fr pyuic/uic/port_v2 |
79 |
else |
80 |
rm -fr pyuic/uic/port_v3 |
81 |
@@ -120,8 +132,6 @@ src_configure() { |
82 |
$(pyqt4_use_enable X QtDesigner) $(use X || echo --no-designer-plugin) |
83 |
$(pyqt4_use_enable X QtScriptTools) |
84 |
$(pyqt4_use_enable X QtTest) |
85 |
- # QtAssistant module is not available with Qt >=4.7.0. |
86 |
- $(pyqt4_use_enable assistant QtAssistant) |
87 |
$(pyqt4_use_enable assistant QtHelp) |
88 |
$(pyqt4_use_enable dbus QtDBus) |
89 |
$(pyqt4_use_enable declarative QtDeclarative) |
90 |
@@ -140,7 +150,7 @@ src_configure() { |
91 |
CXXFLAGS="${CXXFLAGS}" |
92 |
LFLAGS="${LDFLAGS}") |
93 |
echo "${myconf[@]}" |
94 |
- "${myconf[@]}" || return 1 |
95 |
+ "${myconf[@]}" || die |
96 |
|
97 |
local mod |
98 |
for mod in QtCore \ |
99 |
@@ -169,10 +179,6 @@ src_configure() { |
100 |
python_execute_function -s configuration |
101 |
} |
102 |
|
103 |
-src_compile() { |
104 |
- python_src_compile |
105 |
-} |
106 |
- |
107 |
src_install() { |
108 |
installation() { |
109 |
# INSTALL_ROOT is used by designer/Makefile, other Makefiles use DESTDIR. |
110 |
@@ -181,15 +187,15 @@ src_install() { |
111 |
python_execute_function -s installation |
112 |
python_merge_intermediate_installation_images "${T}/images" |
113 |
|
114 |
- dodoc NEWS THANKS || die "dodoc failed" |
115 |
+ dodoc NEWS THANKS |
116 |
|
117 |
if use doc; then |
118 |
- dohtml -r doc/html/* || die "dohtml failed" |
119 |
+ dohtml -r doc/html/* |
120 |
fi |
121 |
|
122 |
if use examples; then |
123 |
insinto /usr/share/doc/${PF} |
124 |
- doins -r examples || die "doins failed" |
125 |
+ doins -r examples |
126 |
fi |
127 |
} |