public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-terms/sakura/, x11-terms/sakura/files/
Date: Sun, 19 Sep 2021 03:42:48 +0000 (UTC)	[thread overview]
Message-ID: <1632022792.4a83d5e115d0631f70e33e3493d2b147854807b9.ionen@gentoo> (raw)

commit:     4a83d5e115d0631f70e33e3493d2b147854807b9
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 19 03:04:02 2021 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Sun Sep 19 03:39:52 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a83d5e1

x11-terms/sakura: add 3.8.3

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 x11-terms/sakura/Manifest                         |  1 +
 x11-terms/sakura/files/sakura-3.8.3-gentoo.patch  | 15 ++++++++
 x11-terms/sakura/files/sakura-3.8.3-opacity.patch | 14 +++++++
 x11-terms/sakura/sakura-3.8.3.ebuild              | 45 +++++++++++++++++++++++
 4 files changed, 75 insertions(+)

diff --git a/x11-terms/sakura/Manifest b/x11-terms/sakura/Manifest
index 6c355d7a1cb..15f4a80713e 100644
--- a/x11-terms/sakura/Manifest
+++ b/x11-terms/sakura/Manifest
@@ -1 +1,2 @@
 DIST sakura-3.7.1.tar.bz2 56315 BLAKE2B 3de45b19f76f765bc611cc7514238c942ea2212d64332aab9befbea4b5fe0cdb29a555017276bd6394c1313ba64ce2bfca6e83c6ff19d6aa676409b51589a838 SHA512 69d3b14f455480e4515337b4a28daafc807f41653ed8d6b6f934a908305fcc28745796b0f290b3ec6e97f6572132664017f943e556cca69df7007e17fcd9b9df
+DIST sakura-3.8.3.tar.bz2 57773 BLAKE2B 20a7b2823d8e2a494c11b15eac4900b935a7a7c99d5cd67a8470e3441b2e8ff7924dd92c35d188863c9c420dcefbfca8d1dcd9dcff06a77d3cd95f855230c23b SHA512 82e77940b4b4c90948235459a0135e74c5778c3bc1df4e803571b316e6ec6298493468a0c8c2517ca6b1680fcdbba6d0e36c8bad696205e3aa3e5b4f402c2a8e

diff --git a/x11-terms/sakura/files/sakura-3.8.3-gentoo.patch b/x11-terms/sakura/files/sakura-3.8.3-gentoo.patch
new file mode 100644
index 00000000000..c9f2c5a85f4
--- /dev/null
+++ b/x11-terms/sakura/files/sakura-3.8.3-gentoo.patch
@@ -0,0 +1,15 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -40,8 +40,2 @@
+ 
+-IF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
+-	SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
+-ELSE (${CMAKE_BUILD_TYPE} NOT MATCHES "Debug")
+-	SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-deprecated-declarations")
+-ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
+-
+ INCLUDE_DIRECTORIES (. ${GTK_INCLUDE_DIRS} ${VTE_INCLUDE_DIRS})
+@@ -59,3 +53,2 @@
+ ENDIF (POD2MAN)
+-INSTALL (FILES README.md DESTINATION share/doc/sakura)	
+ 

diff --git a/x11-terms/sakura/files/sakura-3.8.3-opacity.patch b/x11-terms/sakura/files/sakura-3.8.3-opacity.patch
new file mode 100644
index 00000000000..4bb4ba88f18
--- /dev/null
+++ b/x11-terms/sakura/files/sakura-3.8.3-opacity.patch
@@ -0,0 +1,14 @@
+Fix regression with opacity not being applied on startup.
+https://bugs.launchpad.net/sakura/+bug/1942665
+https://github.com/dabisu/sakura/pull/5
+--- a/src/sakura.c
++++ b/src/sakura.c
+@@ -2180,4 +2180,8 @@
+ 	gtk_widget_add_events(sakura.notebook, GDK_SCROLL_MASK);
+ 
++	screen = gtk_widget_get_screen (GTK_WIDGET (sakura.main_window));
++	GdkVisual *visual = gdk_screen_get_rgba_visual (screen);
++	if (visual != NULL && gdk_screen_is_composited (screen))
++		gtk_widget_set_visual (GTK_WIDGET (sakura.main_window), visual);
+ 	
+ 	/*** Command line options initialization ***/

diff --git a/x11-terms/sakura/sakura-3.8.3.ebuild b/x11-terms/sakura/sakura-3.8.3.ebuild
new file mode 100644
index 00000000000..bb84f11c518
--- /dev/null
+++ b/x11-terms/sakura/sakura-3.8.3.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="GTK/VTE based terminal emulator"
+HOMEPAGE="https://www.pleyades.net/david/projects/sakura"
+SRC_URI="https://launchpad.net/sakura/trunk/${PV}/+download/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-linux"
+
+RDEPEND="
+	dev-libs/glib:2
+	x11-libs/gtk+:3[X]
+	x11-libs/pango
+	x11-libs/vte:2.91"
+DEPEND="
+	${RDEPEND}
+	x11-base/xorg-proto
+	x11-libs/libX11"
+BDEPEND="
+	sys-devel/gettext
+	virtual/perl-podlators"
+
+PATCHES=(
+	"${FILESDIR}"/${P}-gentoo.patch
+	"${FILESDIR}"/${P}-opacity.patch
+)
+
+src_prepare() {
+	cmake_src_prepare
+
+	if [[ -v LINGUAS ]]; then
+		local lingua
+		for lingua in po/*.po; do
+			lingua=${lingua#*/}
+			lingua=${lingua%.*}
+			has ${lingua} ${LINGUAS} || rm po/${lingua}.po || die
+		done
+	fi
+}


             reply	other threads:[~2021-09-19  3:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-19  3:42 Ionen Wolkens [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-01-22  0:34 [gentoo-commits] repo/gentoo:master commit in: x11-terms/sakura/, x11-terms/sakura/files/ Ionen Wolkens
2020-07-03 11:35 Jeroen Roovers
2019-11-30 12:23 Jeroen Roovers
2018-11-04 12:17 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1632022792.4a83d5e115d0631f70e33e3493d2b147854807b9.ionen@gentoo \
    --to=ionen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox