Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/sakura/
Date: Tue, 11 Sep 2018 17:09:56
Message-Id: 1536685753.77766779ec401543be785e47f814d38afcf247b6.jer@gentoo
1 commit: 77766779ec401543be785e47f814d38afcf247b6
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Tue Sep 11 17:09:13 2018 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 11 17:09:13 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=77766779
7
8 x11-terms/sakura: Version 3.6.0.
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 x11-terms/sakura/Manifest | 1 +
13 x11-terms/sakura/sakura-3.6.0.ebuild | 66 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/x11-terms/sakura/Manifest b/x11-terms/sakura/Manifest
17 index 1ac194a7bd7..e6c31dce20d 100644
18 --- a/x11-terms/sakura/Manifest
19 +++ b/x11-terms/sakura/Manifest
20 @@ -1 +1,2 @@
21 DIST sakura-3.5.0.tar.bz2 55432 BLAKE2B 9accd09eac359b64637ff5c318e50e32f5bfa27cf7fb5d4a99c91391e14f145020bd19077e20585b78149e5ac5f281abaf1098dbbaf111e54fd5ad5fbb2f4887 SHA512 20c691342c68a2a6f7397da754c83b19c7622e25984ae9fe9fef47492e19cd7589dd9d1bd2ccb82bd9c6ab82f92c97c1b742795434a101a0e169c6f901f40d9e
22 +DIST sakura-3.6.0.tar.bz2 56044 BLAKE2B 746de744ad562c4202acf4cb6803917530bde6edb13799630124e64e3e423ee423770cdebd5f8f42b5c2bd56b8863c82eb2015c65b2f168933c87337026c1313 SHA512 4b9d2c15305a2b9a193031194afc0b50deeb32ae52f8b13967801cd57aa71424d7dedf0a9aedf7470aef8b58d8341c85ae37ef67b941b8b97912eb845c5df08f
23
24 diff --git a/x11-terms/sakura/sakura-3.6.0.ebuild b/x11-terms/sakura/sakura-3.6.0.ebuild
25 new file mode 100644
26 index 00000000000..db76e0ca9c4
27 --- /dev/null
28 +++ b/x11-terms/sakura/sakura-3.6.0.ebuild
29 @@ -0,0 +1,66 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +inherit cmake-utils eutils flag-o-matic gnome2-utils xdg-utils
35 +
36 +DESCRIPTION="sakura is a terminal emulator based on GTK and VTE"
37 +HOMEPAGE="http://www.pleyades.net/david/projects/sakura/"
38 +SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +KEYWORDS="~amd64 ~x86 ~x86-linux"
43 +
44 +RDEPEND="
45 + >=dev-libs/glib-2.20:2
46 + x11-libs/gtk+:3[X]
47 + x11-libs/libX11
48 + >x11-libs/vte-0.50:2.91
49 +"
50 +DEPEND="
51 + ${RDEPEND}
52 + >=dev-lang/perl-5.10.1
53 + virtual/pkgconfig
54 +"
55 +
56 +PATCHES=(
57 + "${FILESDIR}"/${PN}-3.1.3-flags.patch
58 +)
59 +
60 +DOCS=(
61 + AUTHORS
62 +)
63 +
64 +src_prepare() {
65 + sed -i "/FILES INSTALL/d" CMakeLists.txt || die
66 +
67 + strip-linguas -i po/
68 + local lingua
69 + for lingua in po/*.po; do
70 + lingua="${lingua/po\/}"
71 + lingua="${lingua/.po}"
72 + if ! has ${lingua} ${LINGUAS}; then
73 + rm po/${lingua}.po || die
74 + fi
75 + done
76 +
77 + cmake-utils_src_prepare
78 + # sakura.c:1740:3: warning: implicit declaration of function ‘readlink’
79 + # [-Wimplicit-function-declaration]
80 + append-cppflags -D_DEFAULT_SOURCE
81 +
82 + # sakura.c:1348:9: error: ‘for’ loop initial declarations are only allowed
83 + # in C99 or C11 mode
84 + append-cflags -std=c99
85 +}
86 +
87 +pkg_postinst() {
88 + gnome2_icon_cache_update
89 + xdg_desktop_database_update
90 +}
91 +
92 +pkg_postrm() {
93 + gnome2_icon_cache_update
94 + xdg_desktop_database_update
95 +}