Gentoo Archives: gentoo-commits

From: "Alexey Shvetsov (alexxy)" <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/pykde4: pykde4-4.7.0.ebuild ChangeLog
Date: Wed, 27 Jul 2011 14:17:51
Message-Id: 20110727140441.7306520060@flycatcher.gentoo.org
1 alexxy 11/07/27 14:04:41
2
3 Modified: ChangeLog
4 Added: pykde4-4.7.0.ebuild
5 Log:
6 [kde-base] Version bump KDE SC 4.7.0
7
8 (Portage version: 2.2.0_alpha47/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.127 kde-base/pykde4/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.127&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.127&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?r1=1.126&r2=1.127
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v
20 retrieving revision 1.126
21 retrieving revision 1.127
22 diff -u -r1.126 -r1.127
23 --- ChangeLog 21 Jul 2011 10:33:31 -0000 1.126
24 +++ ChangeLog 27 Jul 2011 14:04:41 -0000 1.127
25 @@ -1,6 +1,11 @@
26 # ChangeLog for kde-base/pykde4
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.126 2011/07/21 10:33:31 maekke Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.127 2011/07/27 14:04:41 alexxy Exp $
30 +
31 +*pykde4-4.7.0 (27 Jul 2011)
32 +
33 + 27 Jul 2011; Alexey Shvetsov <alexxy@g.o> +pykde4-4.7.0.ebuild:
34 + Version bump KDE SC 4.7.0
35
36 21 Jul 2011; Markus Meier <maekke@g.o> pykde4-4.6.3-r1.ebuild:
37 x86 stable, bug #374587
38
39
40
41 1.1 kde-base/pykde4/pykde4-4.7.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.7.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.7.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pykde4-4.7.0.ebuild
47 ===================================================================
48 # Copyright 1999-2011 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/pykde4-4.7.0.ebuild,v 1.1 2011/07/27 14:04:41 alexxy Exp $
51
52 EAPI=3
53
54 PYTHON_DEPEND="*:2.5"
55 RESTRICT_PYTHON_ABIS="*-jython 2.4"
56 PYTHON_USE_WITH="threads"
57 SUPPORT_PYTHON_ABIS="1"
58
59 OPENGL_REQUIRED="always"
60 KDE_SCM="git"
61 inherit python portability kde4-base
62
63 DESCRIPTION="Python bindings for KDE4"
64 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
65 IUSE="debug doc examples semantic-desktop"
66
67 # blocker added due to compatibility issues and error during compile time
68 RDEPEND="
69 !dev-python/pykde
70 >=dev-python/sip-4.12.3-r2
71 $(add_kdebase_dep kdelibs 'opengl,semantic-desktop=')
72 semantic-desktop? ( $(add_kdebase_dep kdepimlibs 'semantic-desktop') )
73 aqua? ( >=dev-python/PyQt4-4.8.2[dbus,declarative,sql,svg,webkit,aqua] )
74 !aqua? ( >=dev-python/PyQt4-4.8.2[dbus,declarative,sql,svg,webkit,X] )
75 "
76 DEPEND="${RDEPEND}
77 sys-devel/libtool
78 "
79
80 PATCHES=(
81 "${FILESDIR}"/${PN}-4.6.3-python-3.2.patch
82 )
83
84 pkg_setup() {
85 python_pkg_setup
86 kde4-base_pkg_setup
87
88 have_python2=false
89
90 scan_python_versions() {
91 [[ ${PYTHON_ABI} == 2.* ]] && have_python2=true
92 :
93 }
94 python_execute_function -q scan_python_versions
95 if ! ${have_python2}; then
96 ewarn "You do not have a Python 2 version selected."
97 ewarn "kpythonpluginfactory will not be built"
98 fi
99 }
100
101 src_prepare() {
102 kde4-base_src_prepare
103
104 if ! use examples; then
105 sed -e '/^ADD_SUBDIRECTORY(examples)/s/^/# DISABLED /' -i CMakeLists.txt \
106 || die "Failed to disable examples"
107 fi
108
109 # See bug 322351
110 use arm && epatch "${FILESDIR}/${PN}-4.4.4-arm-sip.patch"
111
112 sed -i -e 's/kpythonpluginfactory /kpython${PYTHON_SHORT_VERSION}pluginfactory /g' kpythonpluginfactory/CMakeLists.txt
113
114 if ${have_python2}; then
115 mkdir -p "${WORKDIR}/wrapper" || die "failed to copy wrapper"
116 cp "${FILESDIR}/kpythonpluginfactorywrapper.c" "${WORKDIR}/wrapper" || die "failed to copy wrapper"
117 fi
118 }
119
120 src_configure() {
121 configuration() {
122 local mycmakeargs=(
123 -DWITH_PolkitQt=OFF
124 -DWITH_QScintilla=OFF
125 $(cmake-utils_use_with semantic-desktop Soprano)
126 $(cmake-utils_use_with semantic-desktop Nepomuk)
127 $(cmake-utils_use_with semantic-desktop KdepimLibs)
128 -DPYTHON_EXECUTABLE=$(PYTHON -a)
129 )
130 local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
131 kde4-base_src_configure
132 }
133
134 python_execute_function configuration
135 }
136
137 echo_and_run() {
138 echo "$@"
139 "$@"
140 }
141
142 src_compile() {
143 compilation() {
144 local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
145 kde4-base_src_compile
146 }
147 python_execute_function compilation
148
149 if ${have_python2}; then
150 cd "${WORKDIR}/wrapper"
151 echo_and_run libtool --tag=CC --mode=compile $(tc-getCC) \
152 -shared \
153 ${CFLAGS} ${CPPFLAGS} \
154 -DEPREFIX="\"${EPREFIX}\"" \
155 -DPLUGIN_DIR="\"/usr/$(get_libdir)/kde4\"" -c \
156 -o kpythonpluginfactorywrapper.lo \
157 kpythonpluginfactorywrapper.c
158 echo_and_run libtool --tag=CC --mode=link $(tc-getCC) \
159 -shared -module -avoid-version \
160 ${CFLAGS} ${LDFLAGS} \
161 -o kpythonpluginfactory.la \
162 -rpath "${EPREFIX}/usr/$(get_libdir)/kde4" \
163 kpythonpluginfactorywrapper.lo \
164 $(dlopen_lib)
165 fi
166 }
167
168 src_install() {
169 installation() {
170 cd "${S}_build-${PYTHON_ABI}"
171 emake DESTDIR="${T}/images/${PYTHON_ABI}" install || die "emake install failed for Python ${PYTHON_ABI}"
172 }
173 python_execute_function installation
174
175 python_merge_intermediate_installation_images "${T}/images/${PYTHON_ABI}"
176
177 # As we don't call the eclass's src_install, we have to install the docs manually
178 DOCS=("${S}"/{AUTHORS,NEWS,README})
179 use doc && HTML_DOCS=("${S}/docs/html/")
180 base_src_install_docs
181
182 if ${have_python2}; then
183 cd "${WORKDIR}/wrapper"
184 echo_and_run libtool --mode=install install kpythonpluginfactory.la "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
185 rm "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
186 fi
187 }
188
189 pkg_postinst() {
190 kde4-base_pkg_postinst
191
192 python_mod_optimize PyKDE4 PyQt4/uic/pykdeuic4.py PyQt4/uic/widget-plugins/kde4.py
193
194 if use examples; then
195 echo
196 elog "PyKDE4 examples have been installed to"
197 elog "${EPREFIX}/usr/share/apps/${PN}/examples"
198 echo
199 fi
200 }
201
202 pkg_postrm() {
203 kde4-base_pkg_postrm
204
205 python_mod_cleanup PyKDE4 PyQt4/uic/pykdeuic4.py PyQt4/uic/widget-plugins/kde4.py
206 }