1 |
commit: afb453275f24e59ded1fcb8a6f2fd3e79699c360 |
2 |
Author: Davide Pesavento <davidepesa <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Feb 28 16:09:47 2012 +0000 |
4 |
Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 28 16:09:47 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/qt.git;a=commit;h=afb45327 |
7 |
|
8 |
[dev-python/PyQtMobility] Version bump with some enhancements. |
9 |
|
10 |
--- |
11 |
dev-python/PyQtMobility/Manifest | 2 +- |
12 |
...bility-0.2.ebuild => PyQtMobility-1.0.1.ebuild} | 75 ++++++++++---------- |
13 |
dev-python/PyQtMobility/metadata.xml | 5 +- |
14 |
3 files changed, 42 insertions(+), 40 deletions(-) |
15 |
|
16 |
diff --git a/dev-python/PyQtMobility/Manifest b/dev-python/PyQtMobility/Manifest |
17 |
index 560cd73..52d3667 100644 |
18 |
--- a/dev-python/PyQtMobility/Manifest |
19 |
+++ b/dev-python/PyQtMobility/Manifest |
20 |
@@ -1 +1 @@ |
21 |
-DIST PyQtMobility-gpl-0.2.tar.gz 111981 RMD160 9104385644b6b79fe870a761f40f244b3f6610a2 SHA1 beb58ea29dc30a88ff2695edfdb75e8063a2afd5 SHA256 c2769c5ec5b3451cbe041308e363fca8b2881d163eb8bde0af90fbaa353e2b82 |
22 |
+DIST PyQtMobility-gpl-1.0.1.tar.gz 111999 SHA256 8496a47f5345ff547c04e8301cfcdf7862fe9557f56d0d93818c947060b442df SHA512 09bb77f348abe0caf174dea505f3a10ee2adf99698048c9fffc1da66a36dcb907cef7896ee92af7d9ec98a5b30f5229fd9eedc6a64e1476ca340c29b5d842770 WHIRLPOOL 49bbd93b79418f34872a76665d7d54d4a5adca0bdd44a31fe095bfd148d7a673671bc3b61015bc0489d91b7386dc23c57b462e10def00460cc448c165cfe4d8a |
23 |
|
24 |
diff --git a/dev-python/PyQtMobility/PyQtMobility-0.2.ebuild b/dev-python/PyQtMobility/PyQtMobility-1.0.1.ebuild |
25 |
similarity index 59% |
26 |
rename from dev-python/PyQtMobility/PyQtMobility-0.2.ebuild |
27 |
rename to dev-python/PyQtMobility/PyQtMobility-1.0.1.ebuild |
28 |
index dba9271..b8c902b 100644 |
29 |
--- a/dev-python/PyQtMobility/PyQtMobility-0.2.ebuild |
30 |
+++ b/dev-python/PyQtMobility/PyQtMobility-1.0.1.ebuild |
31 |
@@ -1,12 +1,12 @@ |
32 |
-# Copyright 1999-2011 Gentoo Foundation |
33 |
+# Copyright 1999-2012 Gentoo Foundation |
34 |
# Distributed under the terms of the GNU General Public License v2 |
35 |
# $Header: $ |
36 |
|
37 |
-EAPI="3" |
38 |
+EAPI="4" |
39 |
PYTHON_DEPEND="*" |
40 |
PYTHON_EXPORT_PHASE_FUNCTIONS="1" |
41 |
SUPPORT_PYTHON_ABIS="1" |
42 |
-RESTRICT_PYTHON_ABIS="*-jython" |
43 |
+RESTRICT_PYTHON_ABIS="*-jython 2.7-pypy-*" |
44 |
|
45 |
inherit python |
46 |
|
47 |
@@ -20,42 +20,32 @@ SLOT="0" |
48 |
LICENSE="|| ( GPL-2 GPL-3 )" |
49 |
KEYWORDS="~amd64" |
50 |
|
51 |
-PYQTM_MODULES="bearer contacts location messaging multimedia publishsubscribe serviceframework systeminfo versit" |
52 |
+PYQTM_MODULES="contacts feedback gallery location messaging multimedia organizer |
53 |
+ publishsubscribe sensors serviceframework systeminfo versit" |
54 |
IUSE="debug ${PYQTM_MODULES}" |
55 |
|
56 |
+REQUIRED_USE=" |
57 |
+ || ( ${PYQTM_MODULES} ) |
58 |
+ versit? ( contacts ) |
59 |
+" |
60 |
+ |
61 |
QTM_USE_DEPS= |
62 |
for mod in ${PYQTM_MODULES//+}; do |
63 |
QTM_USE_DEPS+="${mod}?," |
64 |
done |
65 |
unset mod |
66 |
|
67 |
-DEPEND=">=dev-python/sip-4.12 |
68 |
- >=dev-python/PyQt4-4.8.2[X] |
69 |
- >=x11-libs/qt-mobility-1.1.0[${QTM_USE_DEPS%,}]" |
70 |
+DEPEND=" |
71 |
+ >=dev-python/sip-4.12.2 |
72 |
+ >=dev-python/PyQt4-4.8.4[X] |
73 |
+ >=x11-libs/qt-mobility-1.2.0[${QTM_USE_DEPS%,}] |
74 |
+" |
75 |
RDEPEND="${DEPEND}" |
76 |
|
77 |
S=${WORKDIR}/${MY_P} |
78 |
|
79 |
-pkg_setup() { |
80 |
- python_pkg_setup |
81 |
- |
82 |
- # figure out which modules to build |
83 |
- local modules=( $(pyqtm_use_enable bearer) |
84 |
- $(pyqtm_use_enable contacts) |
85 |
- $(pyqtm_use_enable location) |
86 |
- $(pyqtm_use_enable messaging) |
87 |
- $(pyqtm_use_enable multimedia QtMultimediaKit) |
88 |
- $(pyqtm_use_enable publishsubscribe QtPublishSubscribe) |
89 |
- $(pyqtm_use_enable serviceframework QtServiceFramework) |
90 |
- $(pyqtm_use_enable systeminfo QtSystemInfo) |
91 |
- $(pyqtm_use_enable versit) ) |
92 |
- if [[ ${#modules[@]} -eq 0 ]]; then |
93 |
- ewarn "At least one module must be selected for building, but you have selected none." |
94 |
- ewarn "The QtContacts module will be automatically enabled." |
95 |
- myconf="--enable=QtContacts" |
96 |
- else |
97 |
- myconf="${modules[@]}" |
98 |
- fi |
99 |
+pyqtm_use_enable() { |
100 |
+ use $1 && echo --enable=${2:-Qt$(echo ${1:0:1} | tr '[:lower:]' '[:upper:]')${1:1}} |
101 |
} |
102 |
|
103 |
src_prepare() { |
104 |
@@ -67,13 +57,26 @@ src_prepare() { |
105 |
|
106 |
src_configure() { |
107 |
configuration() { |
108 |
- set -- "$(PYTHON)" configure.py \ |
109 |
- --destdir="${EPREFIX}$(python_get_sitedir)" \ |
110 |
- --sipdir="${EPREFIX}/usr/share/sip" \ |
111 |
- $(use debug && echo --debug) \ |
112 |
- ${myconf} |
113 |
- echo "$@" |
114 |
- "$@" || die "configure.py failed" |
115 |
+ local myconf=("$(PYTHON)" |
116 |
+ configure.py |
117 |
+ --destdir="${EPREFIX}$(python_get_sitedir)" |
118 |
+ --sipdir="${EPREFIX}/usr/share/sip" |
119 |
+ $(use debug && echo --debug) |
120 |
+ $(pyqtm_use_enable contacts) |
121 |
+ $(pyqtm_use_enable feedback) |
122 |
+ $(pyqtm_use_enable gallery) |
123 |
+ $(pyqtm_use_enable location) |
124 |
+ $(pyqtm_use_enable messaging) |
125 |
+ $(pyqtm_use_enable multimedia QtMultimediaKit) |
126 |
+ $(pyqtm_use_enable organizer) |
127 |
+ $(pyqtm_use_enable publishsubscribe QtPublishSubscribe) |
128 |
+ $(pyqtm_use_enable sensors) |
129 |
+ $(pyqtm_use_enable serviceframework QtServiceFramework) |
130 |
+ $(pyqtm_use_enable systeminfo QtSystemInfo) |
131 |
+ $(pyqtm_use_enable versit) |
132 |
+ ) |
133 |
+ echo "${myconf[@]}" |
134 |
+ "${myconf[@]}" |
135 |
} |
136 |
python_execute_function -s configuration |
137 |
} |
138 |
@@ -85,7 +88,3 @@ pkg_postinst() { |
139 |
pkg_postrm() { |
140 |
python_mod_cleanup QtMobility |
141 |
} |
142 |
- |
143 |
-pyqtm_use_enable() { |
144 |
- use $1 && echo --enable=${2:-Qt$(echo ${1:0:1} | tr '[:lower:]' '[:upper:]')${1:1}} |
145 |
-} |
146 |
|
147 |
diff --git a/dev-python/PyQtMobility/metadata.xml b/dev-python/PyQtMobility/metadata.xml |
148 |
index f84354a..4a09006 100644 |
149 |
--- a/dev-python/PyQtMobility/metadata.xml |
150 |
+++ b/dev-python/PyQtMobility/metadata.xml |
151 |
@@ -3,12 +3,15 @@ |
152 |
<pkgmetadata> |
153 |
<herd>qt</herd> |
154 |
<use> |
155 |
- <flag name="bearer">Build bindings for the QtBearer module</flag> |
156 |
<flag name="contacts">Build bindings for the QtContacts module</flag> |
157 |
+ <flag name="feedback">Build bindings for the QtFeedback module</flag> |
158 |
+ <flag name="gallery">Build bindings for the QtGallery module</flag> |
159 |
<flag name="location">Build bindings for the QtLocation module</flag> |
160 |
<flag name="messaging">Build bindings for the QtMessaging module</flag> |
161 |
<flag name="multimedia">Build bindings for the QtMultimediaKit module</flag> |
162 |
+ <flag name="organizer">Build bindings for the QtOrganizer module</flag> |
163 |
<flag name="publishsubscribe">Build bindings for the QtPublishSubscribe module</flag> |
164 |
+ <flag name="sensors">Build bindings for the QtSensors module</flag> |
165 |
<flag name="serviceframework">Build bindings for the QtServiceFramework module</flag> |
166 |
<flag name="systeminfo">Build bindings for the QtSystemInfo module</flag> |
167 |
<flag name="versit">Build bindings for the QtVersit module</flag> |