Gentoo Archives: gentoo-commits

From: "Jonathan Callen (abcd)" <abcd@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in kde-base/pykde4: pykde4-4.7.2-r1.ebuild ChangeLog pykde4-4.7.2.ebuild
Date: Fri, 28 Oct 2011 20:03:14
Message-Id: 20111028200304.B077520033@flycatcher.gentoo.org
1 abcd 11/10/28 20:03:04
2
3 Modified: ChangeLog
4 Added: pykde4-4.7.2-r1.ebuild
5 Removed: pykde4-4.7.2.ebuild
6 Log:
7 Revbump, use EAPI=4
8
9 (Portage version: 2.2.0_alpha70/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.136 kde-base/pykde4/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.136&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.136&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?r1=1.135&r2=1.136
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v
21 retrieving revision 1.135
22 retrieving revision 1.136
23 diff -u -r1.135 -r1.136
24 --- ChangeLog 28 Oct 2011 19:03:48 -0000 1.135
25 +++ ChangeLog 28 Oct 2011 20:03:04 -0000 1.136
26 @@ -1,6 +1,12 @@
27 # ChangeLog for kde-base/pykde4
28 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.135 2011/10/28 19:03:48 dilfridge Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.136 2011/10/28 20:03:04 abcd Exp $
31 +
32 +*pykde4-4.7.2-r1 (28 Oct 2011)
33 +
34 + 28 Oct 2011; Jonathan Callen <abcd@g.o> +pykde4-4.7.2-r1.ebuild,
35 + -pykde4-4.7.2.ebuild:
36 + Revbump, use EAPI=4
37
38 28 Oct 2011; Andreas K. Huettel <dilfridge@g.o> -pykde4-4.7.1.ebuild:
39 Drop KDEpim 4.6.1 and KDE 4.7.1
40
41
42
43 1.1 kde-base/pykde4/pykde4-4.7.2-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.7.2-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.7.2-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: pykde4-4.7.2-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2011 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/pykde4-4.7.2-r1.ebuild,v 1.1 2011/10/28 20:03:04 abcd Exp $
53
54 EAPI=4
55
56 PYTHON_DEPEND="*:2.5"
57 RESTRICT_PYTHON_ABIS="*-jython 2.4"
58 PYTHON_USE_WITH="threads"
59 SUPPORT_PYTHON_ABIS="1"
60
61 OPENGL_REQUIRED="always"
62 KDE_SCM="git"
63 inherit python portability kde4-base
64
65 DESCRIPTION="Python bindings for KDE4"
66 KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux"
67 IUSE="debug doc examples semantic-desktop"
68
69 # blocker added due to compatibility issues and error during compile time
70 RDEPEND="
71 >=dev-python/sip-4.12.3-r2
72 $(add_kdebase_dep kdelibs 'opengl,semantic-desktop=')
73 semantic-desktop? ( $(add_kdebase_dep kdepimlibs 'semantic-desktop') )
74 aqua? ( >=dev-python/PyQt4-4.8.2[dbus,declarative,sql,svg,webkit,aqua] )
75 !aqua? ( >=dev-python/PyQt4-4.8.2[dbus,declarative,sql,svg,webkit,X] )
76 "
77 DEPEND="${RDEPEND}
78 sys-devel/libtool
79 "
80
81 PATCHES=(
82 "${FILESDIR}"/${PN}-4.6.3-python-3.2.patch
83 )
84
85 pkg_setup() {
86 python_pkg_setup
87 kde4-base_pkg_setup
88
89 have_python2=false
90
91 scan_python_versions() {
92 [[ ${PYTHON_ABI} == 2.* ]] && have_python2=true
93 :
94 }
95 python_execute_function -q scan_python_versions
96 if ! ${have_python2}; then
97 ewarn "You do not have a Python 2 version selected."
98 ewarn "kpythonpluginfactory will not be built"
99 fi
100 }
101
102 src_prepare() {
103 kde4-base_src_prepare
104
105 if ! use examples; then
106 sed -e '/^ADD_SUBDIRECTORY(examples)/s/^/# DISABLED /' -i CMakeLists.txt \
107 || die "Failed to disable examples"
108 fi
109
110 # See bug 322351
111 use arm && epatch "${FILESDIR}/${PN}-4.4.4-arm-sip.patch"
112
113 sed -i -e 's/kpythonpluginfactory /kpython${PYTHON_SHORT_VERSION}pluginfactory /g' kpythonpluginfactory/CMakeLists.txt
114
115 if ${have_python2}; then
116 mkdir -p "${WORKDIR}/wrapper" || die "failed to copy wrapper"
117 cp "${FILESDIR}/kpythonpluginfactorywrapper.c" "${WORKDIR}/wrapper" || die "failed to copy wrapper"
118 fi
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 -a)
130 )
131 local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
132 kde4-base_src_configure
133 }
134
135 python_execute_function 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_execute_function compilation
149
150 if ${have_python2}; then
151 cd "${WORKDIR}/wrapper"
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 fi
167 }
168
169 src_install() {
170 installation() {
171 cd "${S}_build-${PYTHON_ABI}"
172 emake DESTDIR="${T}/images/${PYTHON_ABI}" install || die "emake install failed for Python ${PYTHON_ABI}"
173 }
174 python_execute_function installation
175
176 python_merge_intermediate_installation_images "${T}/images"
177
178 # As we don't call the eclass's src_install, we have to install the docs manually
179 DOCS=("${S}"/{AUTHORS,NEWS,README})
180 use doc && HTML_DOCS=("${S}/docs/html/")
181 base_src_install_docs
182
183 if ${have_python2}; then
184 cd "${WORKDIR}/wrapper"
185 echo_and_run libtool --mode=install install kpythonpluginfactory.la "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
186 rm "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
187 fi
188 }
189
190 pkg_postinst() {
191 kde4-base_pkg_postinst
192
193 python_mod_optimize PyKDE4 PyQt4/uic/pykdeuic4.py PyQt4/uic/widget-plugins/kde4.py
194
195 if use examples; then
196 echo
197 elog "PyKDE4 examples have been installed to"
198 elog "${EPREFIX}/usr/share/apps/${PN}/examples"
199 echo
200 fi
201 }
202
203 pkg_postrm() {
204 kde4-base_pkg_postrm
205
206 python_mod_cleanup PyKDE4 PyQt4/uic/pykdeuic4.py PyQt4/uic/widget-plugins/kde4.py
207 }