41 lines
898 B
Bash
41 lines
898 B
Bash
# 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"
|
|
}
|