1 |
mgorny 14/09/01 14:13:52 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: pykde4-4.14.0-r1.ebuild |
5 |
Log: |
6 |
Support python-exec:2. |
7 |
|
8 |
(Portage version: 2.2.11_p178/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!) |
9 |
|
10 |
Revision Changes Path |
11 |
1.300 kde-base/pykde4/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.300&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?rev=1.300&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/ChangeLog?r1=1.299&r2=1.300 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v |
20 |
retrieving revision 1.299 |
21 |
retrieving revision 1.300 |
22 |
diff -u -r1.299 -r1.300 |
23 |
--- ChangeLog 28 Aug 2014 11:31:52 -0000 1.299 |
24 |
+++ ChangeLog 1 Sep 2014 14:13:51 -0000 1.300 |
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.299 2014/08/28 11:31:52 kensington Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/kde-base/pykde4/ChangeLog,v 1.300 2014/09/01 14:13:51 mgorny Exp $ |
30 |
+ |
31 |
+*pykde4-4.14.0-r1 (01 Sep 2014) |
32 |
+ |
33 |
+ 01 Sep 2014; Michał Górny <mgorny@g.o> +pykde4-4.14.0-r1.ebuild: |
34 |
+ Support python-exec:2. |
35 |
|
36 |
28 Aug 2014; Michael Palimaka <kensington@g.o> |
37 |
+files/pykde4-4.14.0-arm-sip.patch, pykde4-4.14.0.ebuild: |
38 |
|
39 |
|
40 |
|
41 |
1.1 kde-base/pykde4/pykde4-4.14.0-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.14.0-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/kde-base/pykde4/pykde4-4.14.0-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: pykde4-4.14.0-r1.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.14.0-r1.ebuild,v 1.1 2014/09/01 14:13:51 mgorny Exp $ |
51 |
|
52 |
EAPI=5 |
53 |
PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} ) |
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="akonadi debug doc examples nepomuk test" |
62 |
HOMEPAGE="http://techbase.kde.org/Development/Languages/Python" |
63 |
|
64 |
REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( nepomuk )" |
65 |
|
66 |
RDEPEND=" |
67 |
${PYTHON_DEPS} |
68 |
>=dev-python/PyQt4-4.11.1[${PYTHON_USEDEP},dbus,declarative,script,sql,svg,webkit,X] |
69 |
>=dev-python/sip-4.16.2:=[${PYTHON_USEDEP}] |
70 |
$(add_kdebase_dep kdelibs 'nepomuk?,opengl') |
71 |
akonadi? ( $(add_kdebase_dep kdepimlibs) ) |
72 |
nepomuk? ( >=dev-libs/soprano-2.9.0 ) |
73 |
" |
74 |
DEPEND="${RDEPEND} |
75 |
dev-lang/python-exec:2[${PYTHON_USEDEP}] |
76 |
sys-devel/libtool |
77 |
" |
78 |
|
79 |
pkg_setup() { |
80 |
kde4-base_pkg_setup |
81 |
|
82 |
have_python2=false |
83 |
|
84 |
scan_python_versions() { |
85 |
if [[ ${EPYTHON} == python2.* ]]; then |
86 |
have_python2=true |
87 |
fi |
88 |
} |
89 |
python_foreach_impl scan_python_versions |
90 |
|
91 |
if ! ${have_python2}; then |
92 |
ewarn "You do not have a Python 2 version selected." |
93 |
ewarn "kpythonpluginfactory will not be built" |
94 |
fi |
95 |
} |
96 |
|
97 |
src_prepare() { |
98 |
kde4-base_src_prepare |
99 |
|
100 |
if ! use examples; then |
101 |
sed -e '/^ADD_SUBDIRECTORY(examples)/s/^/# DISABLED /' -i CMakeLists.txt \ |
102 |
|| die "Failed to disable examples" |
103 |
fi |
104 |
|
105 |
# See bug 322351 |
106 |
use arm && epatch "${FILESDIR}/${PN}-4.14.0-arm-sip.patch" |
107 |
|
108 |
sed -e 's/kpythonpluginfactory /kpython${PYTHON_SHORT_VERSION}pluginfactory /g' \ |
109 |
-i kpythonpluginfactory/CMakeLists.txt || die |
110 |
|
111 |
if ${have_python2}; then |
112 |
mkdir -p "${WORKDIR}/wrapper" || die "failed to copy wrapper" |
113 |
cp "${FILESDIR}/kpythonpluginfactorywrapper.c-r1" "${WORKDIR}/wrapper/kpythonpluginfactorywrapper.c" || die "failed to copy wrapper" |
114 |
fi |
115 |
python_copy_sources |
116 |
|
117 |
} |
118 |
|
119 |
src_configure() { |
120 |
configuration() { |
121 |
local mycmakeargs=( |
122 |
-DWITH_PolkitQt=OFF |
123 |
-DWITH_QScintilla=OFF |
124 |
$(cmake-utils_use_with akonadi KdepimLibs) |
125 |
$(cmake-utils_use_with nepomuk) |
126 |
$(cmake-utils_use_with nepomuk Soprano) |
127 |
-DPYTHON_EXECUTABLE=${PYTHON} |
128 |
-DPYKDEUIC4_ALTINSTALL=TRUE |
129 |
) |
130 |
local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI} |
131 |
kde4-base_src_configure |
132 |
} |
133 |
|
134 |
python_foreach_impl run_in_build_dir 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_foreach_impl run_in_build_dir compilation |
148 |
|
149 |
if ${have_python2}; then |
150 |
pushd "${WORKDIR}/wrapper" > /dev/null |
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 |
popd > /dev/null |
166 |
fi |
167 |
} |
168 |
|
169 |
src_test() { |
170 |
python_foreach_impl run_in_build_dir kde4-base_src_test |
171 |
} |
172 |
|
173 |
src_install() { |
174 |
installation() { |
175 |
emake DESTDIR="${D}" install |
176 |
|
177 |
mkdir -p "${D%/}$(python_get_scriptdir)" || die |
178 |
mv "${ED%/}/usr/bin/pykdeuic4-${EPYTHON/python/}" \ |
179 |
"${D%/}$(python_get_scriptdir)"/pykdeuic4 || die |
180 |
|
181 |
python_fix_shebang "${D%/}$(python_get_scriptdir)"/pykdeuic4 |
182 |
python_optimize |
183 |
} |
184 |
python_foreach_impl run_in_build_dir installation |
185 |
|
186 |
dosym ../lib/python-exec/python-exec2 /usr/bin/pykdeuic4 |
187 |
|
188 |
# As we don't call the eclass's src_install, we have to install the docs manually |
189 |
DOCS=("${S}"/{AUTHORS,NEWS,README}) |
190 |
use doc && HTML_DOCS=("${S}/docs/html/") |
191 |
einstalldocs |
192 |
|
193 |
if ${have_python2}; then |
194 |
pushd "${WORKDIR}/wrapper" > /dev/null |
195 |
echo_and_run libtool --mode=install install kpythonpluginfactory.la "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la" |
196 |
rm "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la" |
197 |
popd > /dev/null |
198 |
fi |
199 |
} |
200 |
|
201 |
pkg_postinst() { |
202 |
kde4-base_pkg_postinst |
203 |
|
204 |
if use examples; then |
205 |
echo |
206 |
elog "PyKDE4 examples have been installed to" |
207 |
elog "${EPREFIX}/usr/share/apps/${PN}/examples" |
208 |
echo |
209 |
fi |
210 |
} |