summaryrefslogtreecommitdiff
path: root/kde-base/pykde4
diff options
context:
space:
mode:
authorChris Reffett <creffett@gentoo.org>2013-12-03 00:12:19 -0500
committerChris Reffett <creffett@gentoo.org>2013-12-03 00:12:19 -0500
commit328dd88891deb59f9ad03df1c486ebc6a2b73fd6 (patch)
treeaebc2bc86673efd1b94007568d8e82210a1c9796 /kde-base/pykde4
parent27088417b0b801d7cd3386c83ab22b5972865acd (diff)
downloadkde-328dd88891deb59f9ad03df1c486ebc6a2b73fd6.tar.gz
kde-328dd88891deb59f9ad03df1c486ebc6a2b73fd6.tar.bz2
kde-328dd88891deb59f9ad03df1c486ebc6a2b73fd6.zip
[kde-base] Bump KDE SC 4.11.95
Diffstat (limited to 'kde-base/pykde4')
-rw-r--r--kde-base/pykde4/Manifest1
-rw-r--r--kde-base/pykde4/pykde4-4.11.95.ebuild161
2 files changed, 162 insertions, 0 deletions
diff --git a/kde-base/pykde4/Manifest b/kde-base/pykde4/Manifest
index 4329ce4856b..bc1d657087a 100644
--- a/kde-base/pykde4/Manifest
+++ b/kde-base/pykde4/Manifest
@@ -1 +1,2 @@
DIST pykde4-4.11.4.tar.xz 2118476 SHA256 255f3781b1936ecf4343705b047b4e8a245b2edb8ba7a5ab1eba9c9680d09b57 SHA512 11098ea815d043d038990b887e12964f81c5756c99835d6cad749ed794d67c45c9346325448a2593751766a3873542f2680fe8fd0d48b03f9a4955fb3c129dd7 WHIRLPOOL 23dc38ff36ee57629a33f2712bf32bca0a2387943639a8bb48abff80991cd8513332afadb219c14a407ddd0fb9080a22f0d06829578b435e5446e34ed8508d08
+DIST pykde4-4.11.95.tar.xz 2005112 SHA256 2f61d480e259f6aa0cb847f27adc80ba6992984e8d306877c8dc24b6dc239499 SHA512 de08133a9a1cefe43fe3fd385e76d1067b7e6ab97de3aa80f91c5bbe2b8ada3b5c10574b036630237a65c5bfd89c9cec081ff8694b0d36acb7af1065a2bfcbd7 WHIRLPOOL 4fd5d2a816e0b41afe4e909e62dd4c2a91be59d9712fcbc98ccc1d8ba5e25063bae7669f7f19b5ae9cabff426c9f39b3534833831536879f4b8125d7aa7becac
diff --git a/kde-base/pykde4/pykde4-4.11.95.ebuild b/kde-base/pykde4/pykde4-4.11.95.ebuild
new file mode 100644
index 00000000000..65e136d2ce2
--- /dev/null
+++ b/kde-base/pykde4/pykde4-4.11.95.ebuild
@@ -0,0 +1,161 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+PYTHON_COMPAT=( python{2_6,2_7,3_2,3_3} )
+PYTHON_REQ_USE="threads"
+OPENGL_REQUIRED="always"
+
+inherit python-r1 portability kde4-base multilib
+
+DESCRIPTION="Python bindings for KDE4"
+KEYWORDS=" ~amd64 ~x86 ~amd64-linux ~x86-linux"
+IUSE="debug doc examples semantic-desktop test"
+HOMEPAGE="http://techbase.kde.org/Development/Languages/Python"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE} test? ( semantic-desktop )"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=dev-python/PyQt4-4.9.5[${PYTHON_USEDEP},dbus,declarative,script(+),sql,svg,webkit,X]
+ >=dev-python/sip-4.14:=[${PYTHON_USEDEP}]
+ $(add_kdebase_dep kdelibs 'opengl,semantic-desktop?')
+ semantic-desktop? (
+ $(add_kdebase_dep kdepimlibs)
+ >=dev-libs/soprano-2.9.0
+ )
+"
+DEPEND="${RDEPEND}
+ dev-lang/python-exec:0[${PYTHON_USEDEP}]
+ sys-devel/libtool
+"
+
+pkg_setup() {
+ kde4-base_pkg_setup
+
+ have_python2=false
+
+ scan_python_versions() {
+ if [[ ${EPYTHON} == python2.* ]]; then
+ have_python2=true
+ fi
+ }
+ python_foreach_impl scan_python_versions
+
+ if ! ${have_python2}; then
+ ewarn "You do not have a Python 2 version selected."
+ ewarn "kpythonpluginfactory will not be built"
+ fi
+}
+
+src_prepare() {
+ kde4-base_src_prepare
+
+ if ! use examples; then
+ sed -e '/^ADD_SUBDIRECTORY(examples)/s/^/# DISABLED /' -i CMakeLists.txt \
+ || die "Failed to disable examples"
+ fi
+
+ # See bug 322351
+ use arm && epatch "${FILESDIR}/${PN}-4.10.1-arm-sip.patch"
+
+ sed -e 's/kpythonpluginfactory /kpython${PYTHON_SHORT_VERSION}pluginfactory /g' \
+ -i kpythonpluginfactory/CMakeLists.txt || die
+
+ if ${have_python2}; then
+ mkdir -p "${WORKDIR}/wrapper" || die "failed to copy wrapper"
+ cp "${FILESDIR}/kpythonpluginfactorywrapper.c-r1" "${WORKDIR}/wrapper/kpythonpluginfactorywrapper.c" || die "failed to copy wrapper"
+ fi
+ python_copy_sources
+
+}
+
+src_configure() {
+ configuration() {
+ local mycmakeargs=(
+ -DWITH_PolkitQt=OFF
+ -DWITH_QScintilla=OFF
+ $(cmake-utils_use_with semantic-desktop Soprano)
+ $(cmake-utils_use_with semantic-desktop Nepomuk)
+ $(cmake-utils_use_with semantic-desktop KdepimLibs)
+ -DPYTHON_EXECUTABLE=${PYTHON}
+ -DPYKDEUIC4_ALTINSTALL=TRUE
+ )
+ local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
+ kde4-base_src_configure
+ }
+
+ python_foreach_impl run_in_build_dir configuration
+}
+
+echo_and_run() {
+ echo "$@"
+ "$@"
+}
+
+src_compile() {
+ compilation() {
+ local CMAKE_BUILD_DIR=${S}_build-${PYTHON_ABI}
+ kde4-base_src_compile
+ }
+ python_foreach_impl run_in_build_dir compilation
+
+ if ${have_python2}; then
+ pushd "${WORKDIR}/wrapper" > /dev/null
+ echo_and_run libtool --tag=CC --mode=compile $(tc-getCC) \
+ -shared \
+ ${CFLAGS} ${CPPFLAGS} \
+ -DEPREFIX="\"${EPREFIX}\"" \
+ -DPLUGIN_DIR="\"/usr/$(get_libdir)/kde4\"" -c \
+ -o kpythonpluginfactorywrapper.lo \
+ kpythonpluginfactorywrapper.c
+ echo_and_run libtool --tag=CC --mode=link $(tc-getCC) \
+ -shared -module -avoid-version \
+ ${CFLAGS} ${LDFLAGS} \
+ -o kpythonpluginfactory.la \
+ -rpath "${EPREFIX}/usr/$(get_libdir)/kde4" \
+ kpythonpluginfactorywrapper.lo \
+ $(dlopen_lib)
+ popd > /dev/null
+ fi
+}
+
+src_test() {
+ python_foreach_impl run_in_build_dir kde4-base_src_test
+}
+
+src_install() {
+ installation() {
+ emake DESTDIR="${D}" install
+
+ mv "${ED}"/usr/bin/pykdeuic4-{${EPYTHON/python/},${EPYTHON}} || die
+ python_optimize
+ }
+ python_foreach_impl run_in_build_dir installation
+
+ dosym python-exec /usr/bin/pykdeuic4
+
+ # As we don't call the eclass's src_install, we have to install the docs manually
+ DOCS=("${S}"/{AUTHORS,NEWS,README})
+ use doc && HTML_DOCS=("${S}/docs/html/")
+ base_src_install_docs
+
+ if ${have_python2}; then
+ pushd "${WORKDIR}/wrapper" > /dev/null
+ echo_and_run libtool --mode=install install kpythonpluginfactory.la "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
+ rm "${ED}/usr/$(get_libdir)/kde4/kpythonpluginfactory.la"
+ popd > /dev/null
+ fi
+}
+
+pkg_postinst() {
+ kde4-base_pkg_postinst
+
+ if use examples; then
+ echo
+ elog "PyKDE4 examples have been installed to"
+ elog "${EPREFIX}/usr/share/apps/${PN}/examples"
+ echo
+ fi
+}