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/app-text/kding/kding-0.6-r3.ebuild

42 lines
898 B

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
KDE_HANDBOOK="optional"
KDE_LINGUAS="de"
inherit kde4-base
DESCRIPTION="KDE port of Ding, a dictionary lookup program"
HOMEPAGE="http://www.rexi.org/software/kding/"
SRC_URI="http://www.rexi.org/downloads/${PN}/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="4"
KEYWORDS="amd64 x86"
IUSE="debug"
DEPEND="media-libs/libpng:0"
PATCHES=(
"${FILESDIR}/${P}-dtd.patch"
"${FILESDIR}/${P}-cmake.patch"
)
src_prepare() {
sed -e "/Encoding=UTF-8/d" \
-i resources/kding.desktop || die "fixing .desktop file failed"
kde4-base_src_prepare
}
src_install() {
kde4-base_src_install
# bug 510510
pngfix -q --out=out.png "${ED}/usr/share/icons/hicolor/22x22/apps/kding.png"
mv -f out.png "${ED}/usr/share/icons/hicolor/22x22/apps/kding.png" \
|| die "fixing broken png file failed"
}