commit: b7981272757e94951131998ad776148f2cfcee9c Author: Johannes Huber <johu <AT> gentoo <DOT> org> AuthorDate: Tue Jan 17 19:52:05 2017 +0000 Commit: Johannes Huber <johu <AT> gentoo <DOT> org> CommitDate: Tue Jan 17 19:52:05 2017 +0000 URL: https://gitweb.gentoo.org/proj/kde-sunset.git/commit/?id=b7981272
kde-misc/ksplasher: Import latest from gentoo main tree Package-Manager: Portage-2.3.3, Repoman-2.3.1 kde-misc/ksplasher/files/ksplasher-pillow.patch | 13 ++++++++ kde-misc/ksplasher/ksplasher-2.0_beta2-r2.ebuild | 41 ++++++++++++++++++++++++ kde-misc/ksplasher/metadata.xml | 8 +++++ 3 files changed, 62 insertions(+) diff --git a/kde-misc/ksplasher/files/ksplasher-pillow.patch b/kde-misc/ksplasher/files/ksplasher-pillow.patch new file mode 100644 index 0000000..467c60c --- /dev/null +++ b/kde-misc/ksplasher/files/ksplasher-pillow.patch @@ -0,0 +1,13 @@ +https://bugs.gentoo.org/show_bug.cgi?id=471520 +--- a/src/modules/filters.py ++++ b/src/modules/filters.py +@@ -9,7 +9,8 @@ + # + + from __future__ import division +-import sys, os, getopt, Image, ImageFile, ImageEnhance ++import sys, os, getopt ++from PIL import Image, ImageFile, ImageEnhance + + + def blink(srcfile1,destfile): diff --git a/kde-misc/ksplasher/ksplasher-2.0_beta2-r2.ebuild b/kde-misc/ksplasher/ksplasher-2.0_beta2-r2.ebuild new file mode 100644 index 0000000..8a18e13 --- /dev/null +++ b/kde-misc/ksplasher/ksplasher-2.0_beta2-r2.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit python-single-r1 eutils + +DESCRIPTION="A KSplashX engine (KDE4) Splash Screen Creator" +HOMEPAGE="http://ksplasher.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}x${PV/_}.tar.gz" + +LICENSE="GPL-2" +SLOT="4" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND="${PYTHON_DEPS} + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/PyQt4[${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +S=${WORKDIR}/${PN}x + +src_prepare() { + epatch "${FILESDIR}/${PN}-pillow.patch" + # ksplasherx is a bash script which calls 'python foo'. We fix it here. + sed -i -e 's:python:/usr/bin/env python2:g' ksplasherx || die +} + +src_install() { + dobin ksplasherx || die + insinto /usr/share/ksplasherx + doins -r src || die + python_fix_shebang "${ED}/usr/share/ksplasherx/src/" + doicon ksicon.png + make_desktop_entry ${PN}x KSplasherX ksicon "Qt;KDE;Graphics" + dodoc README +} diff --git a/kde-misc/ksplasher/metadata.xml b/kde-misc/ksplasher/metadata.xml new file mode 100644 index 0000000..0601f38 --- /dev/null +++ b/kde-misc/ksplasher/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="sourceforge">ksplasher</remote-id> + </upstream> +</pkgmetadata>
