diff options
author | Ionen Wolkens <ionen@gentoo.org> | 2021-09-18 23:04:02 -0400 |
---|---|---|
committer | Ionen Wolkens <ionen@gentoo.org> | 2021-09-18 23:39:52 -0400 |
commit | 4a83d5e115d0631f70e33e3493d2b147854807b9 (patch) | |
tree | a51ba18f1c39ebfee3fec47c1989b5348a0d7c88 /x11-terms | |
parent | x11-terms/sakura: add github remote-id, indent longdesc (diff) | |
download | gentoo-4a83d5e115d0631f70e33e3493d2b147854807b9.tar.gz gentoo-4a83d5e115d0631f70e33e3493d2b147854807b9.tar.bz2 gentoo-4a83d5e115d0631f70e33e3493d2b147854807b9.zip |
x11-terms/sakura: add 3.8.3
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'x11-terms')
-rw-r--r-- | x11-terms/sakura/Manifest | 1 | ||||
-rw-r--r-- | x11-terms/sakura/files/sakura-3.8.3-gentoo.patch | 15 | ||||
-rw-r--r-- | x11-terms/sakura/files/sakura-3.8.3-opacity.patch | 14 | ||||
-rw-r--r-- | x11-terms/sakura/sakura-3.8.3.ebuild | 45 |
4 files changed, 75 insertions, 0 deletions
diff --git a/x11-terms/sakura/Manifest b/x11-terms/sakura/Manifest index 6c355d7a1cb8..15f4a80713eb 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 000000000000..c9f2c5a85f44 --- /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 000000000000..4bb4ba88f189 --- /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 000000000000..bb84f11c518d --- /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 +} |