1 |
johu 12/10/02 18:12:10 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pykde4-4.9.2.ebuild |
5 |
Log: |
6 |
Version bump KDE SC 4.9.2 |
7 |
|
8 |
(Portage version: 2.2.0_alpha134/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.178 kde-base/pykde4/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.178&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.178&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?r1=1.177&r2=1.178 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v |
20 |
retrieving revision 1.177 |
21 |
retrieving revision 1.178 |
22 |
diff -u -r1.177 -r1.178 |
23 |
--- ChangeLog 21 Sep 2012 09:33:18 -0000 1.177 |
24 |
+++ ChangeLog 2 Oct 2012 18:12:09 -0000 1.178 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for kde-base/pykde4 |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.177 2012/09/21 09:33:18 johu Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.178 2012/10/02 18:12:09 johu Exp $ |
30 |
+ |
31 |
+*pykde4-4.9.2 (02 Oct 2012) |
32 |
+ |
33 |
+ 02 Oct 2012; Johannes Huber <johu@g.o> +pykde4-4.9.2.ebuild: |
34 |
+ Version bump KDE SC 4.9.2 |
35 |
|
36 |
21 Sep 2012; Johannes Huber <johu@g.o> -pykde4-4.9.0.ebuild: |
37 |
Remove KDE SC 4.9.0 |
38 |
|
39 |
|
40 |
|
41 |
1.1 kde-base/pykde4/pykde4-4.9.2.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.9.2.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.9.2.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: pykde4-4.9.2.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2012 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.9.2.ebuild,v 1.1 2012/10/02 18:12:09 johu Exp $ |
51 |
|
52 |
EAPI=4 |
53 |
|
54 |
PYTHON_DEPEND="*:2.5" |
55 |
RESTRICT_PYTHON_ABIS="*-jython 2.4 2.7-pypy-*" |
56 |
PYTHON_USE_WITH="threads" |
57 |
SUPPORT_PYTHON_ABIS="1" |
58 |
|
59 |
OPENGL_REQUIRED="always" |
60 |
inherit python portability kde4-base multilib |
61 |
|
62 |
DESCRIPTION="Python bindings for KDE4" |
63 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
64 |
IUSE="debug doc examples semantic-desktop" |
65 |
REQUIRED_USE="test? ( semantic-desktop )" |
66 |
|
67 |
# blocker added due to compatibility issues and error during compile time |
68 |
RDEPEND=" |
69 |
>=dev-python/sip-4.13.1 |
70 |
$(add_kdebase_dep kdelibs 'opengl,semantic-desktop=') |
71 |
semantic-desktop? ( |
72 |
$(add_kdebase_dep kdepimlibs 'semantic-desktop') |
73 |
>=dev-libs/soprano-2.8.0 |
74 |
) |
75 |
aqua? ( >=dev-python/PyQt4-4.9[dbus,declarative,sql,svg,webkit,aqua] ) |
76 |
!aqua? ( >=dev-python/PyQt4-4.9[dbus,declarative,sql,svg,webkit,X] ) |
77 |
" |
78 |
DEPEND="${RDEPEND} |
79 |
sys-devel/libtool |
80 |
" |
81 |
|
82 |
pkg_setup() { |
83 |
python_pkg_setup |
84 |
kde4-base_pkg_setup |
85 |
|
86 |
have_python2=false |
87 |
|
88 |
scan_python_versions() { |
89 |
[[ ${PYTHON_ABI} == 2.* ]] && have_python2=true |
90 |
: |
91 |
} |
92 |
python_execute_function -q scan_python_versions |
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.4.4-arm-sip.patch" |
109 |
|
110 |
sed -i -e 's/kpythonpluginfactory /kpython${PYTHON_SHORT_VERSION}pluginfactory /g' kpythonpluginfactory/CMakeLists.txt |
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 |
} |
117 |
|
118 |
src_configure() { |
119 |
configuration() { |
120 |
local mycmakeargs=( |
121 |
-DWITH_PolkitQt=OFF |
122 |
-DWITH_QScintilla=OFF |
123 |
$(cmake-utils_use_with semantic-desktop Soprano) |
124 |
$(cmake-utils_use_with semantic-desktop Nepomuk) |
125 |
$(cmake-utils_use_with semantic-desktop KdepimLibs) |
126 |
-DPYTHON_EXECUTABLE=$(PYTHON -a) |
127 |
) |
128 |
local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI} |
129 |
kde4-base_src_configure |
130 |
} |
131 |
|
132 |
python_execute_function configuration |
133 |
} |
134 |
|
135 |
echo_and_run() { |
136 |
echo "$@" |
137 |
"$@" |
138 |
} |
139 |
|
140 |
src_compile() { |
141 |
compilation() { |
142 |
local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI} |
143 |
kde4-base_src_compile |
144 |
} |
145 |
python_execute_function compilation |
146 |
|
147 |
if ${have_python2}; then |
148 |
cd "${WORKDIR}/wrapper" |
149 |
echo_and_run libtool --tag=CC --mode=compile $(tc-getCC) \ |
150 |
-shared \ |
151 |
${CFLAGS} ${CPPFLAGS} \ |
152 |
-DEPREFIX="\"${EPREFIX}\"" \ |
153 |
-DPLUGIN_DIR="\"/usr/$(get_libdir)/kde4\"" -c \ |
154 |
-o kpythonpluginfactorywrapper.lo \ |
155 |
kpythonpluginfactorywrapper.c |
156 |
echo_and_run libtool --tag=CC --mode=link $(tc-getCC) \ |
157 |
-shared -module -avoid-version \ |
158 |
${CFLAGS} ${LDFLAGS} \ |
159 |
-o kpythonpluginfactory.la \ |
160 |
-rpath "${EPREFIX}/usr/$(get_libdir)/kde4" \ |
161 |
kpythonpluginfactorywrapper.lo \ |
162 |
$(dlopen_lib) |
163 |
fi |
164 |
} |
165 |
|
166 |
src_install() { |
167 |
installation() { |
168 |
cd "${S}_build-${PYTHON_ABI}" |
169 |
emake DESTDIR="${T}/images/${PYTHON_ABI}" install |
170 |
} |
171 |
python_execute_function installation |
172 |
|
173 |
python_merge_intermediate_installation_images "${T}/images" |
174 |
|
175 |
# As we don't call the eclass's src_install, we have to install the docs manually |
176 |
DOCS=("${S}"/{AUTHORS,NEWS,README}) |
177 |
use doc && HTML_DOCS=("${S}/docs/html/") |
178 |
base_src_install_docs |
179 |
|
180 |
if ${have_python2}; then |
181 |
cd "${WORKDIR}/wrapper" |
182 |
echo_and_run libtool --mode=install install kpythonpluginfactory.la "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la" |
183 |
rm "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la" |
184 |
fi |
185 |
} |
186 |
|
187 |
pkg_postinst() { |
188 |
kde4-base_pkg_postinst |
189 |
|
190 |
python_mod_optimize PyKDE4 PyQt4/uic/pykdeuic4.py PyQt4/uic/widget-plugins/kde4.py |
191 |
|
192 |
if use examples; then |
193 |
echo |
194 |
elog "PyKDE4 examples have been installed to" |
195 |
elog "${EPREFIX}/usr/share/apps/${PN}/examples" |
196 |
echo |
197 |
fi |
198 |
} |
199 |
|
200 |
pkg_postrm() { |
201 |
kde4-base_pkg_postrm |
202 |
|
203 |
python_mod_cleanup PyKDE4 PyQt4/uic/pykdeuic4.py PyQt4/uic/widget-plugins/kde4.py |
204 |
} |