You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/kde-misc/ksplasher/ksplasher-2.0_beta2-r1.ebuild

41 lines
997 B

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/ksplasher/ksplasher-2.0_beta2-r1.ebuild,v 1.1 2010/08/21 15:12:38 tampakrap Exp $
EAPI=2
PYTHON_DEPEND="2"
inherit python 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="dev-python/imaging
dev-python/PyQt4"
S=${WORKDIR}/${PN}x
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
python_convert_shebangs -r 2 .
# 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
doicon ksicon.png
make_desktop_entry ${PN}x KSplasherX ksicon "Qt;KDE;Graphics"
dodoc README
}