Gentoo Archives: gentoo-commits

From: "Johannes Huber (johu)" <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/pykde4: pykde4-4.10.5.ebuild ChangeLog
Date: Tue, 02 Jul 2013 16:49:05
Message-Id: 20130702164723.C0A4021720@flycatcher.gentoo.org
1 johu 13/07/02 16:47:23
2
3 Modified: ChangeLog
4 Added: pykde4-4.10.5.ebuild
5 Log:
6 Version bump KDE SC 4.10.5
7
8 (Portage version: 2.2.0_alpha186/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD)
9
10 Revision Changes Path
11 1.226 kde-base/pykde4/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.226&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.226&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?r1=1.225&r2=1.226
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v
20 retrieving revision 1.225
21 retrieving revision 1.226
22 diff -u -r1.225 -r1.226
23 --- ChangeLog 2 Jul 2013 09:30:38 -0000 1.225
24 +++ ChangeLog 2 Jul 2013 16:47:23 -0000 1.226
25 @@ -1,6 +1,11 @@
26 # ChangeLog for kde-base/pykde4
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.225 2013/07/02 09:30:38 ago Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.226 2013/07/02 16:47:23 johu Exp $
30 +
31 +*pykde4-4.10.5 (02 Jul 2013)
32 +
33 + 02 Jul 2013; Johannes Huber <johu@g.o> +pykde4-4.10.5.ebuild:
34 + Version bump KDE SC 4.10.5
35
36 02 Jul 2013; Agostino Sarubbo <ago@g.o> -pykde4-4.10.3.ebuild:
37 Remove old
38
39
40
41 1.1 kde-base/pykde4/pykde4-4.10.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.10.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.10.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pykde4-4.10.5.ebuild
47 ===================================================================
48 # Copyright 1999-2013 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.10.5.ebuild,v 1.1 2013/07/02 16:47:23 johu Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_5,2_6,2_7,3_1,3_2,3_3} )
54 PYTHON_REQ_USE="threads"
55 OPENGL_REQUIRED="always"
56
57 inherit python-r1 portability kde4-base multilib
58
59 DESCRIPTION="Python bindings for KDE4"
60 KEYWORDS=" ~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
61 IUSE="debug doc examples semantic-desktop test"
62
63 REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( semantic-desktop )"
64
65 # blocker added due to compatibility issues and error during compile time
66 RDEPEND="
67 ${PYTHON_DEPS}
68 >=dev-python/PyQt4-4.9.5[${PYTHON_USEDEP},dbus,declarative,script(+),sql,svg,webkit,X]
69 >=dev-python/sip-4.14:=[${PYTHON_USEDEP}]
70 $(add_kdebase_dep kdelibs 'opengl,semantic-desktop(+)?')
71 semantic-desktop? (
72 $(add_kdebase_dep kdepimlibs 'semantic-desktop(+)')
73 >=dev-libs/soprano-2.9.0
74 )
75 "
76 DEPEND="${RDEPEND}
77 sys-devel/libtool
78 "
79
80 pkg_setup() {
81 kde4-base_pkg_setup
82
83 have_python2=false
84
85 scan_python_versions() {
86 if [[ ${EPYTHON} == python2.* ]]; then
87 have_python2=true
88 fi
89 }
90 python_foreach_impl scan_python_versions
91
92 if ! ${have_python2}; then
93 ewarn "You do not have a Python 2 version selected."
94 ewarn "kpythonpluginfactory will not be built"
95 fi
96 }
97
98 src_prepare() {
99 kde4-base_src_prepare
100
101 if ! use examples; then
102 sed -e '/^ADD_SUBDIRECTORY(examples)/s/^/# DISABLED /' -i CMakeLists.txt \
103 || die "Failed to disable examples"
104 fi
105
106 # See bug 322351
107 use arm && epatch "${FILESDIR}/${PN}-4.10.1-arm-sip.patch"
108
109 sed -e 's/kpythonpluginfactory /kpython${PYTHON_SHORT_VERSION}pluginfactory /g' \
110 -i kpythonpluginfactory/CMakeLists.txt || die
111
112 if ${have_python2}; then
113 mkdir -p "${WORKDIR}/wrapper" || die "failed to copy wrapper"
114 cp "${FILESDIR}/kpythonpluginfactorywrapper.c-r1" "${WORKDIR}/wrapper/kpythonpluginfactorywrapper.c" || die "failed to copy wrapper"
115 fi
116 python_copy_sources
117
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}
129 -DPYKDEUIC4_ALTINSTALL=TRUE
130 )
131 local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
132 kde4-base_src_configure
133 }
134
135 python_foreach_impl run_in_build_dir configuration
136 }
137
138 echo_and_run() {
139 echo "$@"
140 "$@"
141 }
142
143 src_compile() {
144 compilation() {
145 local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
146 kde4-base_src_compile
147 }
148 python_foreach_impl run_in_build_dir compilation
149
150 if ${have_python2}; then
151 pushd "${WORKDIR}/wrapper" > /dev/null
152 echo_and_run libtool --tag=CC --mode=compile $(tc-getCC) \
153 -shared \
154 ${CFLAGS} ${CPPFLAGS} \
155 -DEPREFIX="\"${EPREFIX}\"" \
156 -DPLUGIN_DIR="\"/usr/$(get_libdir)/kde4\"" -c \
157 -o kpythonpluginfactorywrapper.lo \
158 kpythonpluginfactorywrapper.c
159 echo_and_run libtool --tag=CC --mode=link $(tc-getCC) \
160 -shared -module -avoid-version \
161 ${CFLAGS} ${LDFLAGS} \
162 -o kpythonpluginfactory.la \
163 -rpath "${EPREFIX}/usr/$(get_libdir)/kde4" \
164 kpythonpluginfactorywrapper.lo \
165 $(dlopen_lib)
166 popd > /dev/null
167 fi
168 }
169
170 src_test() {
171 python_foreach_impl run_in_build_dir kde4-base_src_test
172 }
173
174 src_install() {
175 installation() {
176 emake DESTDIR="${D}" install
177
178 mv "${ED}"/usr/bin/pykdeuic4-{${EPYTHON/python/},${EPYTHON}} || die
179 python_optimize
180 }
181 python_foreach_impl run_in_build_dir installation
182
183 dosym python-exec /usr/bin/pykdeuic4
184
185 # As we don't call the eclass's src_install, we have to install the docs manually
186 DOCS=("${S}"/{AUTHORS,NEWS,README})
187 use doc && HTML_DOCS=("${S}/docs/html/")
188 base_src_install_docs
189
190 if ${have_python2}; then
191 pushd "${WORKDIR}/wrapper" > /dev/null
192 echo_and_run libtool --mode=install install kpythonpluginfactory.la "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
193 rm "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
194 popd > /dev/null
195 fi
196 }
197
198 pkg_postinst() {
199 kde4-base_pkg_postinst
200
201 if use examples; then
202 echo
203 elog "PyKDE4 examples have been installed to"
204 elog "${EPREFIX}/usr/share/apps/${PN}/examples"
205 echo
206 fi
207 }