Gentoo Archives: gentoo-commits

From: Davide Pesavento <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/PyQt4/
Date: Fri, 29 Apr 2016 01:29:37
Message-Id: 1461893351.202d341ee73bf25a79d5a78b6c0183080c0df2d3.pesa@gentoo
1 commit: 202d341ee73bf25a79d5a78b6c0183080c0df2d3
2 Author: Davide Pesavento <pesa <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 29 01:29:11 2016 +0000
4 Commit: Davide Pesavento <pesa <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 01:29:11 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=202d341e
7
8 dev-python/PyQt4: add 4.12 snapshot
9
10 Package-Manager: portage-2.2.28
11
12 dev-python/PyQt4/Manifest | 1 +
13 dev-python/PyQt4/PyQt4-4.12_pre1604171631.ebuild | 164 +++++++++++++++++++++++
14 2 files changed, 165 insertions(+)
15
16 diff --git a/dev-python/PyQt4/Manifest b/dev-python/PyQt4/Manifest
17 index ecc6905..175af22 100644
18 --- a/dev-python/PyQt4/Manifest
19 +++ b/dev-python/PyQt4/Manifest
20 @@ -1,2 +1,3 @@
21 DIST PyQt-x11-gpl-4.11.1.tar.gz 11118850 SHA256 df9d7358d70748efa5b84fa3fe9e182a80c39ac590157daaabcc2618df176da3 SHA512 3851d4e61d9c6a0c62cbfd2a08153972fa3446c1982fc925796eb1d4c6524e7054cdb14ed2f4566386727e9e0cf67246765de19fab79152b0834477452681113 WHIRLPOOL 17e23997afcf06b99028d0d2115bc9328848acaaa1b6bcd8ec7397409ab2001d5fa29ca08bf42e0cef6dcd0441d0cff04e349fa8913a2b0fc86da878b79b5a5d
22 DIST PyQt-x11-gpl-4.11.4.tar.gz 11317088 SHA256 fc1fe77495432ba3b0d74ff5cb164d375a97f5dddb728256330f615a7cdcf407 SHA512 58d0c5e30b0480c1b6ce1a3cc3ef0a1841bb15631830fb937d1f17f5d3d8cbe66a5e2adcfb2c3990fae38db66dd430668bd25413e254e72064a38c48f689f170 WHIRLPOOL cf635d6399bd04def2648eee65e038d720f06dddfac70f3df6f87deb7483e023ee1a4aa07285a5075adc19dc91bca4500b82f65b342e07a8845023cf98bb6233
23 +DIST PyQt4_gpl_x11-4.12.dev1604171631.tar.xz 8055208 SHA256 0c8440d871fe25c78ef1deaba449cc188b11b65a4e4cd485844bb1f5e3e97604 SHA512 ae114f235e179bd21992ae17c17e843f2cafc70b6e4afa152201052d52a0e531335bc90137d81b8c195e5f4fbba69ed8e19cc72535c2484f58f922a548abd43e WHIRLPOOL dbb40ad3e9498e90fe21e8255805f13b5a37ad8fbf826ce83eeded23c271646e709985545fd991db21ba0be1480176d341bb934ca8b3b196bebe01bc71fb970d
24
25 diff --git a/dev-python/PyQt4/PyQt4-4.12_pre1604171631.ebuild b/dev-python/PyQt4/PyQt4-4.12_pre1604171631.ebuild
26 new file mode 100644
27 index 0000000..dfb5cb6
28 --- /dev/null
29 +++ b/dev-python/PyQt4/PyQt4-4.12_pre1604171631.ebuild
30 @@ -0,0 +1,164 @@
31 +# Copyright 1999-2016 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +# $Id$
34 +
35 +EAPI=6
36 +PYTHON_COMPAT=( python2_7 python3_{3,4,5} )
37 +
38 +inherit multibuild python-r1 qmake-utils
39 +
40 +DESCRIPTION="Python bindings for the Qt framework"
41 +HOMEPAGE="http://www.riverbankcomputing.com/software/pyqt/intro
42 + https://pypi.python.org/pypi/PyQt4"
43 +
44 +MY_P=${PN}_gpl_x11-${PV/_pre/.dev}
45 +if [[ ${PV} == *_pre* ]]; then
46 + SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.xz"
47 +else
48 + SRC_URI="mirror://sourceforge/pyqt/${MY_P}.tar.gz"
49 +fi
50 +
51 +LICENSE="GPL-3"
52 +SLOT="0"
53 +KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
54 +
55 +IUSE="X dbus debug declarative designer doc examples help kde multimedia
56 + opengl phonon script scripttools sql svg testlib webkit xmlpatterns"
57 +REQUIRED_USE="
58 + ${PYTHON_REQUIRED_USE}
59 + sql? ( X )
60 + testlib? ( X )
61 +"
62 +
63 +# Minimal supported version of Qt.
64 +QT_PV="4.8.5:4"
65 +
66 +RDEPEND="
67 + ${PYTHON_DEPS}
68 + >=dev-python/sip-4.18:=[${PYTHON_USEDEP}]
69 + >=dev-qt/qtcore-${QT_PV}
70 + X? ( >=dev-qt/qtgui-${QT_PV} )
71 + dbus? (
72 + dev-python/dbus-python[${PYTHON_USEDEP}]
73 + >=dev-qt/qtdbus-${QT_PV}
74 + )
75 + declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
76 + designer? ( >=dev-qt/designer-${QT_PV} )
77 + help? ( >=dev-qt/qthelp-${QT_PV} )
78 + multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} )
79 + opengl? ( >=dev-qt/qtopengl-${QT_PV} )
80 + phonon? (
81 + kde? ( >=media-libs/phonon-4.7[qt4] )
82 + !kde? ( || ( >=dev-qt/qtphonon-${QT_PV} >=media-libs/phonon-4.7[qt4] ) )
83 + )
84 + script? ( >=dev-qt/qtscript-${QT_PV} )
85 + scripttools? ( >=dev-qt/qtgui-${QT_PV} )
86 + sql? ( >=dev-qt/qtsql-${QT_PV} )
87 + svg? ( >=dev-qt/qtsvg-${QT_PV} )
88 + testlib? ( >=dev-qt/qttest-${QT_PV} )
89 + webkit? ( >=dev-qt/qtwebkit-${QT_PV} )
90 + xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
91 +"
92 +DEPEND="${RDEPEND}
93 + dbus? ( virtual/pkgconfig )
94 +"
95 +
96 +S=${WORKDIR}/${MY_P}
97 +
98 +DOCS=( "${S}"/{ChangeLog,NEWS,THANKS} )
99 +PATCHES=(
100 + # Allow building against KDE's phonon (bug 525354)
101 + "${FILESDIR}/${PN}-4.11.2-phonon.patch"
102 +)
103 +
104 +src_prepare() {
105 + # Support qreal on arm architecture (bug 322349)
106 + use arm && PATCHES+=("${FILESDIR}/${PN}-4.7.3-qreal_float_support.patch")
107 +
108 + # Typo?
109 + sed -i -e '/pyqt4_qtdbus/ s/pyqtslots_/pyqtslot_/' \
110 + sip/QtDBus/qdbusconnection.sip || die
111 +
112 + default
113 +}
114 +
115 +pyqt_use_enable() {
116 + use "$1" || return
117 +
118 + echo --enable=${2:-Qt$(tr 'a-z' 'A-Z' <<< ${1:0:1})${1:1}}
119 +}
120 +
121 +src_configure() {
122 + configuration() {
123 + local myconf=(
124 + "${PYTHON}"
125 + "${S}"/configure-ng.py
126 + $(usex debug '--debug --trace' '')
127 + --verbose
128 + --confirm-license
129 + --qmake="$(qt4_get_bindir)"/qmake
130 + --bindir="${EPREFIX}/usr/bin"
131 + --destdir="$(python_get_sitedir)"
132 + --sip-incdir="$(python_get_includedir)"
133 + --qsci-api
134 + --enable=QtCore
135 + --enable=QtNetwork
136 + --enable=QtXml
137 + $(pyqt_use_enable X QtGui)
138 + $(pyqt_use_enable dbus QtDBus)
139 + $(usex dbus '' --no-python-dbus)
140 + $(pyqt_use_enable declarative)
141 + $(pyqt_use_enable designer)
142 + $(usex designer '' --no-designer-plugin)
143 + $(pyqt_use_enable help)
144 + $(pyqt_use_enable multimedia)
145 + $(pyqt_use_enable opengl QtOpenGL)
146 + $(pyqt_use_enable phonon phonon)
147 + $(pyqt_use_enable script)
148 + $(pyqt_use_enable scripttools QtScriptTools)
149 + $(pyqt_use_enable sql)
150 + $(pyqt_use_enable svg)
151 + $(pyqt_use_enable testlib QtTest)
152 + $(pyqt_use_enable webkit QtWebKit)
153 + $(pyqt_use_enable xmlpatterns QtXmlPatterns)
154 + )
155 + echo "${myconf[@]}"
156 + "${myconf[@]}" || die
157 +
158 + eqmake4 -recursive ${PN}.pro
159 + }
160 + python_foreach_impl run_in_build_dir configuration
161 +}
162 +
163 +src_compile() {
164 + python_foreach_impl run_in_build_dir default
165 +}
166 +
167 +src_install() {
168 + installation() {
169 + local tmp_root=${D%/}/tmp
170 + emake INSTALL_ROOT="${tmp_root}" install
171 +
172 + local uic_dir=${tmp_root}$(python_get_sitedir)/${PN}/uic
173 + if python_is_python3; then
174 + rm -r "${uic_dir}"/port_v2 || die
175 + else
176 + rm -r "${uic_dir}"/port_v3 || die
177 + fi
178 +
179 + python_doexe "${tmp_root}${EPREFIX}"/usr/bin/pyuic4
180 + rm "${tmp_root}${EPREFIX}"/usr/bin/pyuic4 || die
181 +
182 + multibuild_merge_root "${tmp_root}" "${D}"
183 + python_optimize
184 + }
185 + python_foreach_impl run_in_build_dir installation
186 +
187 + einstalldocs
188 + use doc && dodoc -r doc/html
189 +
190 + if use examples; then
191 + insinto /usr/share/doc/${PF}
192 + doins -r examples
193 + fi
194 +}