Gentoo Archives: gentoo-commits

From: "Davide Pesavento (pesa)" <pesa@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pyside: pyside-1.2.2.ebuild ChangeLog
Date: Fri, 23 May 2014 12:36:59
Message-Id: 20140523123655.71E042004C@flycatcher.gentoo.org
1 pesa 14/05/23 12:36:55
2
3 Modified: ChangeLog
4 Added: pyside-1.2.2.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xDADED6B2671CB57D!)
9
10 Revision Changes Path
11 1.60 dev-python/pyside/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyside/ChangeLog?rev=1.60&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyside/ChangeLog?rev=1.60&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyside/ChangeLog?r1=1.59&r2=1.60
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-python/pyside/ChangeLog,v
20 retrieving revision 1.59
21 retrieving revision 1.60
22 diff -u -r1.59 -r1.60
23 --- ChangeLog 24 Feb 2014 01:19:22 -0000 1.59
24 +++ ChangeLog 23 May 2014 12:36:55 -0000 1.60
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-python/pyside
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-python/pyside/ChangeLog,v 1.59 2014/02/24 01:19:22 phajdan.jr Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-python/pyside/ChangeLog,v 1.60 2014/05/23 12:36:55 pesa Exp $
30 +
31 +*pyside-1.2.2 (23 May 2014)
32 +
33 + 23 May 2014; Davide Pesavento <pesa@g.o> +pyside-1.2.2.ebuild:
34 + Version bump.
35
36 24 Feb 2014; Pawel Hajdan jr <phajdan.jr@g.o> pyside-1.2.1-r1.ebuild:
37 x86 stable wrt bug #499408
38
39
40
41 1.1 dev-python/pyside/pyside-1.2.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyside/pyside-1.2.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/pyside/pyside-1.2.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pyside-1.2.2.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-python/pyside/pyside-1.2.2.ebuild,v 1.1 2014/05/23 12:36:55 pesa Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
55
56 inherit multilib cmake-utils python-r1 virtualx
57
58 MY_P="${PN}-qt4.8+${PV}"
59
60 DESCRIPTION="Python bindings for the Qt framework"
61 HOMEPAGE="http://qt-project.org/wiki/PySide"
62 SRC_URI="http://download.qt-project.org/official_releases/${PN}/${MY_P}.tar.bz2"
63
64 LICENSE="LGPL-2.1"
65 SLOT="0"
66 KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
67 IUSE="X declarative designer help multimedia opengl phonon script scripttools sql svg test webkit xmlpatterns"
68
69 REQUIRED_USE="
70 declarative? ( X )
71 designer? ( X )
72 help? ( X )
73 multimedia? ( X )
74 opengl? ( X )
75 phonon? ( X )
76 scripttools? ( X script )
77 sql? ( X )
78 svg? ( X )
79 test? ( X )
80 webkit? ( X )
81 "
82
83 # Minimal supported version of Qt.
84 QT_PV="4.7.0:4"
85
86 RDEPEND="
87 >=dev-python/shiboken-${PV}[${PYTHON_USEDEP}]
88 >=dev-qt/qtcore-${QT_PV}
89 X? (
90 >=dev-qt/qtgui-${QT_PV}[accessibility]
91 >=dev-qt/qttest-${QT_PV}
92 )
93 declarative? ( >=dev-qt/qtdeclarative-${QT_PV} )
94 designer? ( || ( dev-qt/designer:4 <dev-qt/qtgui-4.8.5:4 ) )
95 help? ( >=dev-qt/qthelp-${QT_PV} )
96 multimedia? ( >=dev-qt/qtmultimedia-${QT_PV} )
97 opengl? ( >=dev-qt/qtopengl-${QT_PV} )
98 phonon? ( || (
99 media-libs/phonon[qt4(+)]
100 >=dev-qt/qtphonon-${QT_PV}
101 ) )
102 script? ( >=dev-qt/qtscript-${QT_PV} )
103 sql? ( >=dev-qt/qtsql-${QT_PV} )
104 svg? ( >=dev-qt/qtsvg-${QT_PV}[accessibility] )
105 webkit? ( >=dev-qt/qtwebkit-${QT_PV} )
106 xmlpatterns? ( >=dev-qt/qtxmlpatterns-${QT_PV} )
107 "
108 DEPEND="${RDEPEND}
109 >=dev-qt/qtgui-${QT_PV}
110 "
111
112 S=${WORKDIR}/${MY_P}
113
114 DOCS=( ChangeLog )
115
116 src_prepare() {
117 # Fix generated pkgconfig file to require the shiboken
118 # library suffixed with the correct python version.
119 sed -i -e '/^Requires:/ s/shiboken$/&@SHIBOKEN_PYTHON_SUFFIX@/' \
120 libpyside/pyside.pc.in || die
121
122 if use prefix; then
123 cp "${FILESDIR}"/rpath.cmake . || die
124 sed -i -e '1iinclude(rpath.cmake)' CMakeLists.txt || die
125 fi
126 }
127
128 src_configure() {
129 local mycmakeargs=(
130 $(cmake-utils_use_build test TESTS)
131 $(cmake-utils_use_disable X QtGui)
132 $(cmake-utils_use_disable X QtTest)
133 $(cmake-utils_use_disable declarative QtDeclarative)
134 $(cmake-utils_use_disable designer QtDesigner)
135 $(cmake-utils_use_disable designer QtUiTools)
136 $(cmake-utils_use_disable help QtHelp)
137 $(cmake-utils_use_disable multimedia QtMultimedia)
138 $(cmake-utils_use_disable opengl QtOpenGL)
139 $(cmake-utils_use_disable phonon)
140 $(cmake-utils_use_disable script QtScript)
141 $(cmake-utils_use_disable scripttools QtScriptTools)
142 $(cmake-utils_use_disable sql QtSql)
143 $(cmake-utils_use_disable svg QtSvg)
144 $(cmake-utils_use_disable webkit QtWebKit)
145 $(cmake-utils_use_disable xmlpatterns QtXmlPatterns)
146 )
147
148 if use phonon && has_version "media-libs/phonon[qt4(+)]"; then
149 # bug 475786
150 mycmakeargs+=(
151 -DQT_PHONON_INCLUDE_DIR="${EPREFIX}/usr/include/phonon"
152 -DQT_PHONON_LIBRARY_RELEASE="${EPREFIX}/usr/$(get_libdir)/libphonon.so"
153 )
154 fi
155
156 configuration() {
157 local mycmakeargs=(
158 -DPYTHON_SUFFIX="-${EPYTHON}"
159 "${mycmakeargs[@]}"
160 )
161 cmake-utils_src_configure
162 }
163 python_foreach_impl configuration
164 }
165
166 src_compile() {
167 python_foreach_impl cmake-utils_src_make
168 }
169
170 src_test() {
171 local PYTHONDONTWRITEBYTECODE
172 export PYTHONDONTWRITEBYTECODE
173
174 local VIRTUALX_COMMAND="cmake-utils_src_test"
175 python_foreach_impl virtualmake
176 }
177
178 src_install() {
179 installation() {
180 cmake-utils_src_install
181 mv "${ED}"usr/$(get_libdir)/pkgconfig/${PN}{,-${EPYTHON}}.pc || die
182 }
183 python_foreach_impl installation
184 }