1 |
johu 12/08/01 22:17:17 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pykde4-4.9.0.ebuild |
5 |
Log: |
6 |
Version bump KDE SC 4.9.0 |
7 |
|
8 |
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.165 kde-base/pykde4/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.165&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.165&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?r1=1.164&r2=1.165 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v |
20 |
retrieving revision 1.164 |
21 |
retrieving revision 1.165 |
22 |
diff -u -r1.164 -r1.165 |
23 |
--- ChangeLog 21 Jun 2012 21:54:50 -0000 1.164 |
24 |
+++ ChangeLog 1 Aug 2012 22:17:17 -0000 1.165 |
25 |
@@ -1,6 +1,12 @@ |
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.164 2012/06/21 21:54:50 dilfridge Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.165 2012/08/01 22:17:17 johu Exp $ |
30 |
+ |
31 |
+*pykde4-4.9.0 (01 Aug 2012) |
32 |
+ |
33 |
+ 01 Aug 2012; Johannes Huber <johu@g.o> +pykde4-4.9.0.ebuild, |
34 |
+ files/kpythonpluginfactorywrapper.c: |
35 |
+ Version bump KDE SC 4.9.0 |
36 |
|
37 |
*pykde4-4.8.4 (21 Jun 2012) |
38 |
|
39 |
|
40 |
|
41 |
|
42 |
1.1 kde-base/pykde4/pykde4-4.9.0.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.9.0.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.9.0.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: pykde4-4.9.0.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/pykde4-4.9.0.ebuild,v 1.1 2012/08/01 22:17:17 johu Exp $ |
52 |
|
53 |
EAPI=4 |
54 |
|
55 |
PYTHON_DEPEND="*:2.5" |
56 |
RESTRICT_PYTHON_ABIS="*-jython 2.4 2.7-pypy-*" |
57 |
PYTHON_USE_WITH="threads" |
58 |
SUPPORT_PYTHON_ABIS="1" |
59 |
|
60 |
OPENGL_REQUIRED="always" |
61 |
KDE_SCM="git" |
62 |
inherit python portability kde4-base multilib |
63 |
|
64 |
DESCRIPTION="Python bindings for KDE4" |
65 |
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
66 |
IUSE="debug doc examples semantic-desktop" |
67 |
REQUIRED_USE="test? ( semantic-desktop )" |
68 |
|
69 |
# blocker added due to compatibility issues and error during compile time |
70 |
RDEPEND=" |
71 |
>=dev-python/sip-4.13.1 |
72 |
$(add_kdebase_dep kdelibs 'opengl,semantic-desktop=') |
73 |
semantic-desktop? ( |
74 |
$(add_kdebase_dep kdepimlibs 'semantic-desktop') |
75 |
>=dev-libs/soprano-2.8.0 |
76 |
) |
77 |
aqua? ( >=dev-python/PyQt4-4.9[dbus,declarative,sql,svg,webkit,aqua] ) |
78 |
!aqua? ( >=dev-python/PyQt4-4.9[dbus,declarative,sql,svg,webkit,X] ) |
79 |
" |
80 |
DEPEND="${RDEPEND} |
81 |
sys-devel/libtool |
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 |
172 |
} |
173 |
python_execute_function installation |
174 |
|
175 |
python_merge_intermediate_installation_images "${T}/images" |
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 |
} |