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.12.4.ebuild ChangeLog
Date: Tue, 01 Apr 2014 18:13:30
Message-Id: 20140401180935.4BD0A20061@flycatcher.gentoo.org
1 johu 14/04/01 18:09:35
2
3 Modified: ChangeLog
4 Added: pykde4-4.12.4.ebuild
5 Log:
6 Version bump KDE SC 4.12.4
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key F3CFD2BD)
9
10 Revision Changes Path
11 1.270 kde-base/pykde4/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.270&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.270&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?r1=1.269&r2=1.270
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v
20 retrieving revision 1.269
21 retrieving revision 1.270
22 diff -u -r1.269 -r1.270
23 --- ChangeLog 11 Mar 2014 13:07:07 -0000 1.269
24 +++ ChangeLog 1 Apr 2014 18:09:35 -0000 1.270
25 @@ -1,6 +1,11 @@
26 # ChangeLog for kde-base/pykde4
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.269 2014/03/11 13:07:07 johu Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.270 2014/04/01 18:09:35 johu Exp $
30 +
31 +*pykde4-4.12.4 (01 Apr 2014)
32 +
33 + 01 Apr 2014; Johannes Huber <johu@g.o> +pykde4-4.12.4.ebuild:
34 + Version bump KDE SC 4.12.4
35
36 11 Mar 2014; Johannes Huber <johu@g.o> -pykde4-4.12.2.ebuild:
37 Remove KDE SC 4.12.2
38
39
40
41 1.1 kde-base/pykde4/pykde4-4.12.4.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.12.4.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.12.4.ebuild?rev=1.1&content-type=text/plain
45
46 Index: pykde4-4.12.4.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/kde-base/pykde4/pykde4-4.12.4.ebuild,v 1.1 2014/04/01 18:09:35 johu Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
54 PYTHON_REQ_USE="threads"
55 OPENGL_REQUIRED="always"
56
57 inherit python-r1 portability kde4-base multilib eutils
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 HOMEPAGE="http://techbase.kde.org/Development/Languages/Python"
63
64 REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( semantic-desktop )"
65
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)
73 >=dev-libs/soprano-2.9.0
74 )
75 "
76 DEPEND="${RDEPEND}
77 dev-lang/python-exec:0[${PYTHON_USEDEP}]
78 sys-devel/libtool
79 "
80
81 pkg_setup() {
82 kde4-base_pkg_setup
83
84 have_python2=false
85
86 scan_python_versions() {
87 if [[ ${EPYTHON} == python2.* ]]; then
88 have_python2=true
89 fi
90 }
91 python_foreach_impl scan_python_versions
92
93 if ! ${have_python2}; then
94 ewarn "You do not have a Python 2 version selected."
95 ewarn "kpythonpluginfactory will not be built"
96 fi
97 }
98
99 src_prepare() {
100 kde4-base_src_prepare
101
102 if ! use examples; then
103 sed -e '/^ADD_SUBDIRECTORY(examples)/s/^/# DISABLED /' -i CMakeLists.txt \
104 || die "Failed to disable examples"
105 fi
106
107 # See bug 322351
108 use arm && epatch "${FILESDIR}/${PN}-4.10.1-arm-sip.patch"
109
110 sed -e 's/kpythonpluginfactory /kpython${PYTHON_SHORT_VERSION}pluginfactory /g' \
111 -i kpythonpluginfactory/CMakeLists.txt || die
112
113 if ${have_python2}; then
114 mkdir -p "${WORKDIR}/wrapper" || die "failed to copy wrapper"
115 cp "${FILESDIR}/kpythonpluginfactorywrapper.c-r1" "${WORKDIR}/wrapper/kpythonpluginfactorywrapper.c" || die "failed to copy wrapper"
116 fi
117 python_copy_sources
118
119 }
120
121 src_configure() {
122 configuration() {
123 local mycmakeargs=(
124 -DWITH_PolkitQt=OFF
125 -DWITH_QScintilla=OFF
126 $(cmake-utils_use_with semantic-desktop Soprano)
127 $(cmake-utils_use_with semantic-desktop Nepomuk)
128 $(cmake-utils_use_with semantic-desktop KdepimLibs)
129 -DPYTHON_EXECUTABLE=${PYTHON}
130 -DPYKDEUIC4_ALTINSTALL=TRUE
131 )
132 local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
133 kde4-base_src_configure
134 }
135
136 python_foreach_impl run_in_build_dir configuration
137 }
138
139 echo_and_run() {
140 echo "$@"
141 "$@"
142 }
143
144 src_compile() {
145 compilation() {
146 local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
147 kde4-base_src_compile
148 }
149 python_foreach_impl run_in_build_dir compilation
150
151 if ${have_python2}; then
152 pushd "${WORKDIR}/wrapper" > /dev/null
153 echo_and_run libtool --tag=CC --mode=compile $(tc-getCC) \
154 -shared \
155 ${CFLAGS} ${CPPFLAGS} \
156 -DEPREFIX="\"${EPREFIX}\"" \
157 -DPLUGIN_DIR="\"/usr/$(get_libdir)/kde4\"" -c \
158 -o kpythonpluginfactorywrapper.lo \
159 kpythonpluginfactorywrapper.c
160 echo_and_run libtool --tag=CC --mode=link $(tc-getCC) \
161 -shared -module -avoid-version \
162 ${CFLAGS} ${LDFLAGS} \
163 -o kpythonpluginfactory.la \
164 -rpath "${EPREFIX}/usr/$(get_libdir)/kde4" \
165 kpythonpluginfactorywrapper.lo \
166 $(dlopen_lib)
167 popd > /dev/null
168 fi
169 }
170
171 src_test() {
172 python_foreach_impl run_in_build_dir kde4-base_src_test
173 }
174
175 src_install() {
176 installation() {
177 emake DESTDIR="${D}" install
178
179 mv "${ED}"/usr/bin/pykdeuic4-{${EPYTHON/python/},${EPYTHON}} || die
180 python_optimize
181 }
182 python_foreach_impl run_in_build_dir installation
183
184 dosym python-exec /usr/bin/pykdeuic4
185
186 # As we don't call the eclass's src_install, we have to install the docs manually
187 DOCS=("${S}"/{AUTHORS,NEWS,README})
188 use doc && HTML_DOCS=("${S}/docs/html/")
189 einstalldocs
190
191 if ${have_python2}; then
192 pushd "${WORKDIR}/wrapper" > /dev/null
193 echo_and_run libtool --mode=install install kpythonpluginfactory.la "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
194 rm "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
195 popd > /dev/null
196 fi
197 }
198
199 pkg_postinst() {
200 kde4-base_pkg_postinst
201
202 if use examples; then
203 echo
204 elog "PyKDE4 examples have been installed to"
205 elog "${EPREFIX}/usr/share/apps/${PN}/examples"
206 echo
207 fi
208 }