Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/kding/, app-text/kding/files/
Date: Thu, 26 May 2016 17:21:06
Message-Id: 1464283247.19834ee0dee9d74c972de1be8efbbd3dc03341dc.johu@gentoo
1 commit: 19834ee0dee9d74c972de1be8efbbd3dc03341dc
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 26 17:18:41 2016 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Thu May 26 17:20:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19834ee0
7
8 app-text/kding: Fix broken png with libpng-1.6
9
10 Gentoo-bug: 510510
11
12 Package-Manager: portage-2.3.0_rc1
13
14 app-text/kding/files/kding-0.6-cmake.patch | 8 ++++++
15 app-text/kding/files/kding-0.6-dtd.patch | 8 +++---
16 app-text/kding/kding-0.6-r3.ebuild | 41 ++++++++++++++++++++++++++++++
17 3 files changed, 53 insertions(+), 4 deletions(-)
18
19 diff --git a/app-text/kding/files/kding-0.6-cmake.patch b/app-text/kding/files/kding-0.6-cmake.patch
20 new file mode 100644
21 index 0000000..bd6929a
22 --- /dev/null
23 +++ b/app-text/kding/files/kding-0.6-cmake.patch
24 @@ -0,0 +1,8 @@
25 +diff -Naur kding-0.6.orig/CMakeLists.txt kding-0.6/CMakeLists.txt
26 +--- kding-0.6.orig/CMakeLists.txt 2009-09-20 14:09:48.000000000 +0200
27 ++++ kding-0.6/CMakeLists.txt 2016-05-26 19:03:47.146777630 +0200
28 +@@ -1,3 +1,4 @@
29 ++cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
30 + project(kding)
31 +
32 + find_package(KDE4 REQUIRED)
33
34 diff --git a/app-text/kding/files/kding-0.6-dtd.patch b/app-text/kding/files/kding-0.6-dtd.patch
35 index 0f8a4d5b..f039b40 100644
36 --- a/app-text/kding/files/kding-0.6-dtd.patch
37 +++ b/app-text/kding/files/kding-0.6-dtd.patch
38 @@ -1,7 +1,7 @@
39 http://bugs.gentoo.org/338466
40
41 ---- doc/de/index.docbook
42 -+++ doc/de/index.docbook
43 +--- a/doc/de/index.docbook
44 ++++ b/doc/de/index.docbook
45 @@ -1,5 +1,5 @@
46 <?xml version="1.0" encoding="UTF-8"?>
47 -<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
48 @@ -9,8 +9,8 @@ http://bugs.gentoo.org/338466
49 <!ENTITY kding "<application>KDing</application>">
50 <!ENTITY kappname "&kding;"><!-- Do *not* replace kappname-->
51 <!ENTITY % addindex "IGNORE">
52 ---- doc/en/index.docbook
53 -+++ doc/en/index.docbook
54 +--- a/doc/en/index.docbook
55 ++++ b/doc/en/index.docbook
56 @@ -1,5 +1,5 @@
57 <?xml version="1.0" ?>
58 -<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.1.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [
59
60 diff --git a/app-text/kding/kding-0.6-r3.ebuild b/app-text/kding/kding-0.6-r3.ebuild
61 new file mode 100644
62 index 0000000..5227bb4
63 --- /dev/null
64 +++ b/app-text/kding/kding-0.6-r3.ebuild
65 @@ -0,0 +1,41 @@
66 +# Copyright 1999-2016 Gentoo Foundation
67 +# Distributed under the terms of the GNU General Public License v2
68 +# $Id$
69 +
70 +EAPI=6
71 +
72 +KDE_HANDBOOK="optional"
73 +KDE_LINGUAS="de"
74 +inherit kde4-base
75 +
76 +DESCRIPTION="KDE port of Ding, a dictionary lookup program"
77 +HOMEPAGE="http://www.rexi.org/software/kding/"
78 +SRC_URI="http://www.rexi.org/downloads/${PN}/${P}.tar.bz2"
79 +
80 +LICENSE="GPL-2"
81 +SLOT="4"
82 +KEYWORDS="~amd64 ~x86"
83 +IUSE="debug"
84 +
85 +DEPEND="media-libs/libpng:0"
86 +
87 +PATCHES=(
88 + "${FILESDIR}/${P}-dtd.patch"
89 + "${FILESDIR}/${P}-cmake.patch"
90 +)
91 +
92 +src_prepare() {
93 + sed -e "/Encoding=UTF-8/d" \
94 + -i resources/kding.desktop || die "fixing .desktop file failed"
95 +
96 + kde4-base_src_prepare
97 +}
98 +
99 +src_install() {
100 + kde4-base_src_install
101 +
102 + # bug 510510
103 + pngfix -q --out=out.png "${ED}/usr/share/icons/hicolor/22x22/apps/kding.png"
104 + mv -f out.png "${ED}/usr/share/icons/hicolor/22x22/apps/kding.png" \
105 + || die "fixing broken png file failed"
106 +}