1 |
arfrever 10/10/30 18:23:27 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: PyQt4-4.8.1.ebuild |
5 |
Log: |
6 |
Version bump. |
7 |
|
8 |
(Portage version: 2.2.0_alpha2_p2/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.133 dev-python/PyQt4/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.133&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?rev=1.133&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/ChangeLog?r1=1.132&r2=1.133 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v |
20 |
retrieving revision 1.132 |
21 |
retrieving revision 1.133 |
22 |
diff -u -r1.132 -r1.133 |
23 |
--- ChangeLog 23 Oct 2010 17:27:20 -0000 1.132 |
24 |
+++ ChangeLog 30 Oct 2010 18:23:26 -0000 1.133 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for dev-python/PyQt4 |
27 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.132 2010/10/23 17:27:20 armin76 Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/ChangeLog,v 1.133 2010/10/30 18:23:26 arfrever Exp $ |
30 |
+ |
31 |
+*PyQt4-4.8.1 (30 Oct 2010) |
32 |
+ |
33 |
+ 30 Oct 2010; Arfrever Frehtes Taifersar Arahesis <arfrever@g.o> |
34 |
+ +PyQt4-4.8.1.ebuild: |
35 |
+ Version bump. |
36 |
|
37 |
23 Oct 2010; Raúl Porcel <armin76@g.o> PyQt4-4.7.3.ebuild: |
38 |
ia64/sparc stable wrt #315775 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-python/PyQt4/PyQt4-4.8.1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: PyQt4-4.8.1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-python/PyQt4/PyQt4-4.8.1.ebuild,v 1.1 2010/10/30 18:23:26 arfrever Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
PYTHON_DEPEND="*" |
55 |
PYTHON_EXPORT_PHASE_FUNCTIONS="1" |
56 |
SUPPORT_PYTHON_ABIS="1" |
57 |
|
58 |
inherit python qt4-r2 toolchain-funcs |
59 |
|
60 |
MY_P="PyQt-x11-gpl-${PV/_pre/-snapshot-}" |
61 |
|
62 |
# Minimal supported version of Qt. |
63 |
QT_VER="4.6.2" |
64 |
|
65 |
DESCRIPTION="Python bindings for the Qt toolkit" |
66 |
HOMEPAGE="http://www.riverbankcomputing.co.uk/software/pyqt/intro/ http://pypi.python.org/pypi/PyQt" |
67 |
SRC_URI="http://www.riverbankcomputing.com/static/Downloads/${PN}/${MY_P}.tar.gz" |
68 |
|
69 |
LICENSE="|| ( GPL-2 GPL-3 )" |
70 |
SLOT="0" |
71 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" |
72 |
IUSE="X assistant +dbus debug declarative doc examples kde multimedia opengl phonon sql svg webkit xmlpatterns" |
73 |
|
74 |
DEPEND=">=dev-python/sip-4.11.2 |
75 |
>=x11-libs/qt-core-${QT_VER}:4 |
76 |
>=x11-libs/qt-script-${QT_VER}:4 |
77 |
>=x11-libs/qt-test-${QT_VER}:4 |
78 |
X? ( >=x11-libs/qt-gui-${QT_VER}:4[dbus?] ) |
79 |
assistant? ( >=x11-libs/qt-assistant-${QT_VER}:4 ) |
80 |
dbus? ( |
81 |
>=dev-python/dbus-python-0.80 |
82 |
>=x11-libs/qt-dbus-${QT_VER}:4 |
83 |
) |
84 |
declarative? ( >=x11-libs/qt-declarative-${QT_VER}:4 ) |
85 |
multimedia? ( >=x11-libs/qt-multimedia-${QT_VER}:4 ) |
86 |
opengl? ( >=x11-libs/qt-opengl-${QT_VER}:4 ) |
87 |
phonon? ( |
88 |
!kde? ( || ( >=x11-libs/qt-phonon-${QT_VER}:4 media-sound/phonon ) ) |
89 |
kde? ( media-sound/phonon ) |
90 |
) |
91 |
sql? ( >=x11-libs/qt-sql-${QT_VER}:4 ) |
92 |
svg? ( >=x11-libs/qt-svg-${QT_VER}:4 ) |
93 |
webkit? ( >=x11-libs/qt-webkit-${QT_VER}:4 ) |
94 |
xmlpatterns? ( >=x11-libs/qt-xmlpatterns-${QT_VER}:4 )" |
95 |
RDEPEND="${DEPEND}" |
96 |
|
97 |
S=${WORKDIR}/${MY_P} |
98 |
|
99 |
PATCHES=( |
100 |
"${FILESDIR}/${PN}-4.6.1-configure-multilib.patch" |
101 |
"${FILESDIR}/${PN}-4.7.2-configure.py.patch" |
102 |
) |
103 |
|
104 |
src_prepare() { |
105 |
if ! use dbus; then |
106 |
sed -e "s/^\([[:blank:]]\+\)check_dbus()/\1pass/" -i configure.py || die "sed configure.py failed" |
107 |
fi |
108 |
|
109 |
# Support qreal for arm architecture (bug #322349). |
110 |
use arm && epatch "${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch" |
111 |
|
112 |
qt4-r2_src_prepare |
113 |
|
114 |
# Use proper include directory. |
115 |
sed -e "s:/usr/include:${EPREFIX}/usr/include:g" -i configure.py || die "sed configure.py failed" |
116 |
|
117 |
python_copy_sources |
118 |
|
119 |
preparation() { |
120 |
if [[ "$(python_get_version --major)" == "3" ]]; then |
121 |
rm -fr pyuic/uic/port_v2 |
122 |
else |
123 |
rm -fr pyuic/uic/port_v3 |
124 |
fi |
125 |
} |
126 |
python_execute_function -s preparation |
127 |
} |
128 |
|
129 |
pyqt4_use_enable() { |
130 |
use $1 && echo "--enable=${2:-$1}" |
131 |
} |
132 |
|
133 |
src_configure() { |
134 |
configuration() { |
135 |
local myconf=("$(PYTHON)" |
136 |
configure.py |
137 |
--confirm-license |
138 |
--bindir="${EPREFIX}/usr/bin" |
139 |
--destdir="${EPREFIX}$(python_get_sitedir)" |
140 |
--sipdir="${EPREFIX}/usr/share/sip" |
141 |
--qsci-api |
142 |
$(use debug && echo --debug) |
143 |
--enable=QtCore |
144 |
--enable=QtNetwork |
145 |
--enable=QtScript |
146 |
--enable=QtTest |
147 |
--enable=QtXml |
148 |
$(pyqt4_use_enable X QtGui) |
149 |
$(pyqt4_use_enable X QtDesigner) |
150 |
$(pyqt4_use_enable X QtScriptTools) |
151 |
$(pyqt4_use_enable assistant QtAssistant) |
152 |
$(pyqt4_use_enable assistant QtHelp) |
153 |
$(pyqt4_use_enable declarative QtDeclarative) |
154 |
$(pyqt4_use_enable multimedia QtMultimedia) |
155 |
$(pyqt4_use_enable opengl QtOpenGL) |
156 |
$(pyqt4_use_enable phonon) |
157 |
$(pyqt4_use_enable sql QtSql) |
158 |
$(pyqt4_use_enable svg QtSvg) |
159 |
$(pyqt4_use_enable webkit QtWebKit) |
160 |
$(pyqt4_use_enable xmlpatterns QtXmlPatterns) |
161 |
CC="$(tc-getCC)" |
162 |
CXX="$(tc-getCXX)" |
163 |
LINK="$(tc-getCXX)" |
164 |
LINK_SHLIB="$(tc-getCXX)" |
165 |
CFLAGS="${CFLAGS}" |
166 |
CXXFLAGS="${CXXFLAGS}" |
167 |
LFLAGS="${LDFLAGS}") |
168 |
echo "${myconf[@]}" |
169 |
"${myconf[@]}" || return 1 |
170 |
|
171 |
local mod |
172 |
for mod in QtCore $(use X && echo QtDesigner QtGui); do |
173 |
# Run eqmake4 inside the qpy subdirectories to avoid stripping and many other QA issues. |
174 |
pushd qpy/${mod} > /dev/null || return 1 |
175 |
eqmake4 $(ls w_qpy*.pro) |
176 |
popd > /dev/null || return 1 |
177 |
|
178 |
# Fix insecure runpaths. |
179 |
sed -e "/^LFLAGS/s:-Wl,-rpath,${BUILDDIR}/qpy/${mod}::" -i ${mod}/Makefile || die "Fixing of rpaths failed" |
180 |
done |
181 |
|
182 |
# Fix pre-stripping of libpythonplugin.so |
183 |
if use X; then |
184 |
cd "${BUILDDIR}/designer" |
185 |
eqmake4 python.pro |
186 |
fi |
187 |
} |
188 |
python_execute_function -s configuration |
189 |
} |
190 |
|
191 |
src_compile() { |
192 |
python_src_compile |
193 |
} |
194 |
|
195 |
src_install() { |
196 |
installation() { |
197 |
# INSTALL_ROOT is needed for the QtDesigner module, other Makefiles use DESTDIR. |
198 |
emake DESTDIR="${D}" INSTALL_ROOT="${D}" install |
199 |
} |
200 |
python_execute_function -s installation |
201 |
|
202 |
dodoc doc/pyqt4ref.txt NEWS THANKS || die "dodoc failed" |
203 |
|
204 |
if use doc; then |
205 |
dohtml -r doc/* || die "dohtml failed" |
206 |
fi |
207 |
|
208 |
if use examples; then |
209 |
insinto /usr/share/doc/${PF} |
210 |
doins -r examples || die "doins failed" |
211 |
fi |
212 |
} |
213 |
|
214 |
pkg_postinst() { |
215 |
python_mod_optimize PyQt4 |
216 |
} |
217 |
|
218 |
pkg_postrm() { |
219 |
python_mod_cleanup PyQt4 |
220 |
} |