Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/sakura/, x11-terms/sakura/files/
Date: Sun, 19 Sep 2021 03:42:52
Message-Id: 1632022792.4a83d5e115d0631f70e33e3493d2b147854807b9.ionen@gentoo
1 commit: 4a83d5e115d0631f70e33e3493d2b147854807b9
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 19 03:04:02 2021 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 19 03:39:52 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a83d5e1
7
8 x11-terms/sakura: add 3.8.3
9
10 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
11
12 x11-terms/sakura/Manifest | 1 +
13 x11-terms/sakura/files/sakura-3.8.3-gentoo.patch | 15 ++++++++
14 x11-terms/sakura/files/sakura-3.8.3-opacity.patch | 14 +++++++
15 x11-terms/sakura/sakura-3.8.3.ebuild | 45 +++++++++++++++++++++++
16 4 files changed, 75 insertions(+)
17
18 diff --git a/x11-terms/sakura/Manifest b/x11-terms/sakura/Manifest
19 index 6c355d7a1cb..15f4a80713e 100644
20 --- a/x11-terms/sakura/Manifest
21 +++ b/x11-terms/sakura/Manifest
22 @@ -1 +1,2 @@
23 DIST sakura-3.7.1.tar.bz2 56315 BLAKE2B 3de45b19f76f765bc611cc7514238c942ea2212d64332aab9befbea4b5fe0cdb29a555017276bd6394c1313ba64ce2bfca6e83c6ff19d6aa676409b51589a838 SHA512 69d3b14f455480e4515337b4a28daafc807f41653ed8d6b6f934a908305fcc28745796b0f290b3ec6e97f6572132664017f943e556cca69df7007e17fcd9b9df
24 +DIST sakura-3.8.3.tar.bz2 57773 BLAKE2B 20a7b2823d8e2a494c11b15eac4900b935a7a7c99d5cd67a8470e3441b2e8ff7924dd92c35d188863c9c420dcefbfca8d1dcd9dcff06a77d3cd95f855230c23b SHA512 82e77940b4b4c90948235459a0135e74c5778c3bc1df4e803571b316e6ec6298493468a0c8c2517ca6b1680fcdbba6d0e36c8bad696205e3aa3e5b4f402c2a8e
25
26 diff --git a/x11-terms/sakura/files/sakura-3.8.3-gentoo.patch b/x11-terms/sakura/files/sakura-3.8.3-gentoo.patch
27 new file mode 100644
28 index 00000000000..c9f2c5a85f4
29 --- /dev/null
30 +++ b/x11-terms/sakura/files/sakura-3.8.3-gentoo.patch
31 @@ -0,0 +1,15 @@
32 +--- a/CMakeLists.txt
33 ++++ b/CMakeLists.txt
34 +@@ -40,8 +40,2 @@
35 +
36 +-IF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
37 +- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
38 +-ELSE (${CMAKE_BUILD_TYPE} NOT MATCHES "Debug")
39 +- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-deprecated-declarations")
40 +-ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
41 +-
42 + INCLUDE_DIRECTORIES (. ${GTK_INCLUDE_DIRS} ${VTE_INCLUDE_DIRS})
43 +@@ -59,3 +53,2 @@
44 + ENDIF (POD2MAN)
45 +-INSTALL (FILES README.md DESTINATION share/doc/sakura)
46 +
47
48 diff --git a/x11-terms/sakura/files/sakura-3.8.3-opacity.patch b/x11-terms/sakura/files/sakura-3.8.3-opacity.patch
49 new file mode 100644
50 index 00000000000..4bb4ba88f18
51 --- /dev/null
52 +++ b/x11-terms/sakura/files/sakura-3.8.3-opacity.patch
53 @@ -0,0 +1,14 @@
54 +Fix regression with opacity not being applied on startup.
55 +https://bugs.launchpad.net/sakura/+bug/1942665
56 +https://github.com/dabisu/sakura/pull/5
57 +--- a/src/sakura.c
58 ++++ b/src/sakura.c
59 +@@ -2180,4 +2180,8 @@
60 + gtk_widget_add_events(sakura.notebook, GDK_SCROLL_MASK);
61 +
62 ++ screen = gtk_widget_get_screen (GTK_WIDGET (sakura.main_window));
63 ++ GdkVisual *visual = gdk_screen_get_rgba_visual (screen);
64 ++ if (visual != NULL && gdk_screen_is_composited (screen))
65 ++ gtk_widget_set_visual (GTK_WIDGET (sakura.main_window), visual);
66 +
67 + /*** Command line options initialization ***/
68
69 diff --git a/x11-terms/sakura/sakura-3.8.3.ebuild b/x11-terms/sakura/sakura-3.8.3.ebuild
70 new file mode 100644
71 index 00000000000..bb84f11c518
72 --- /dev/null
73 +++ b/x11-terms/sakura/sakura-3.8.3.ebuild
74 @@ -0,0 +1,45 @@
75 +# Copyright 1999-2021 Gentoo Authors
76 +# Distributed under the terms of the GNU General Public License v2
77 +
78 +EAPI=8
79 +
80 +inherit cmake
81 +
82 +DESCRIPTION="GTK/VTE based terminal emulator"
83 +HOMEPAGE="https://www.pleyades.net/david/projects/sakura"
84 +SRC_URI="https://launchpad.net/sakura/trunk/${PV}/+download/${P}.tar.bz2"
85 +
86 +LICENSE="GPL-2"
87 +SLOT="0"
88 +KEYWORDS="~amd64 ~x86 ~x86-linux"
89 +
90 +RDEPEND="
91 + dev-libs/glib:2
92 + x11-libs/gtk+:3[X]
93 + x11-libs/pango
94 + x11-libs/vte:2.91"
95 +DEPEND="
96 + ${RDEPEND}
97 + x11-base/xorg-proto
98 + x11-libs/libX11"
99 +BDEPEND="
100 + sys-devel/gettext
101 + virtual/perl-podlators"
102 +
103 +PATCHES=(
104 + "${FILESDIR}"/${P}-gentoo.patch
105 + "${FILESDIR}"/${P}-opacity.patch
106 +)
107 +
108 +src_prepare() {
109 + cmake_src_prepare
110 +
111 + if [[ -v LINGUAS ]]; then
112 + local lingua
113 + for lingua in po/*.po; do
114 + lingua=${lingua#*/}
115 + lingua=${lingua%.*}
116 + has ${lingua} ${LINGUAS} || rm po/${lingua}.po || die
117 + done
118 + fi
119 +}