summaryrefslogtreecommitdiff
path: root/x11-terms
diff options
context:
space:
mode:
authorSimeon Simeonov2020-04-08 21:19:40 +0200
committerSimeon Simeonov2020-04-08 21:19:40 +0200
commit406221dc8d42a6beda5aca96dd7d668751e53635 (patch)
tree8beef75bc0b0ffe9e2b86abd631d3a9837833b56 /x11-terms
Initial release based on sgs' private overlay
Diffstat (limited to 'x11-terms')
-rw-r--r--x11-terms/sakura/Manifest5
-rw-r--r--x11-terms/sakura/files/sakura-3.7.0-gentoo.patch23
-rw-r--r--x11-terms/sakura/files/sakura-3.7.0-single-tab.patch13
-rw-r--r--x11-terms/sakura/metadata.xml20
-rw-r--r--x11-terms/sakura/sakura-3.7.0.ebuild63
5 files changed, 124 insertions, 0 deletions
diff --git a/x11-terms/sakura/Manifest b/x11-terms/sakura/Manifest
new file mode 100644
index 0000000..3113207
--- /dev/null
+++ b/x11-terms/sakura/Manifest
@@ -0,0 +1,5 @@
1AUX sakura-3.7.0-gentoo.patch 866 BLAKE2B a75ff98fc9b13c2d73e1f03930beae00e6260ffdb9b3e91b62386bbd90b2379c88fd00dd45ec1956eac9e08134c428b6c5616b50af7c83a3a1856d9fc46be96b SHA512 a7c9c49218180a5ce59ea4e1e27b662cf1897a15079e642d8c9cc97accfc9cb3cf03926edb91684f87e25e44542fcfbabeeb336dde8a869721f8364111a87532
2AUX sakura-3.7.0-single-tab.patch 722 BLAKE2B ffe3847fc8fe73e63e6ece0f9c4eedc5ec55034e8a777cf6bcff86e1a52c0ad55d186bddd1290c9a3486b19cafd07e3f8d189105b932ad9e91c7381772a92841 SHA512 26b77961df78aadbefb886b165dcc5996ed690023336cd8254df8042ff20bac85e88c96ccce10cf510300c93df690fbad360e0171c1814a062636a72dc6084b8
3DIST sakura-3.7.0.tar.gz 64728 BLAKE2B 637d8c9a393fe2823943190ec3c1676d3dd900b574f58fc3f6d61709ac3b70081736f0804c0e7d8ec5a1409cc2651aa1c3bee04a04c5d3df4ac1432fa2a5c41b SHA512 1018ea952d491f68a05ee3b3d8ac70cbfb485687f76224f9a395ff6508e0e75ff58bfd12dcb534c86430da54803a3016619f441d8bd14e496df32f81e00ca72e
4EBUILD sakura-3.7.0.ebuild 1362 BLAKE2B 8960b814e31128fd8b40991adcd75d7064c574bd18490240a11f1abecd5260465ff9206eeb9c10102226a840272cd51b33a872aaaa6d1289bd5fbf49655ee5af SHA512 06fed686c54ff6cc772c920a5f53fa823b1999051558aea04c6fb9ddb2eacaeac757c5fe8c88b02be3831afaddf2f13331e8df356c7aab4316f1b099b676f8a7
5MISC metadata.xml 928 BLAKE2B 91926b81400896fef6be017fe1d0dacc25bb2331e84b7604223464c2f0862b0935aadf944dcd272a989ae9de5b180f3576725f30fa2a161ba24f27c5ba1884e0 SHA512 95be972f218e92365f8084f3a796199c3f7a182bc42c098761096f2146323afcdb2fc45e6c4ec975f03decdac05b9c01083c768162bf97c88c61dab892419ffb
diff --git a/x11-terms/sakura/files/sakura-3.7.0-gentoo.patch b/x11-terms/sakura/files/sakura-3.7.0-gentoo.patch
new file mode 100644
index 0000000..ab1d8be
--- /dev/null
+++ b/x11-terms/sakura/files/sakura-3.7.0-gentoo.patch
@@ -0,0 +1,23 @@
1--- a/CMakeLists.txt
2+++ b/CMakeLists.txt
3@@ -38,12 +38,6 @@
4 ADD_DEFINITIONS (-DDATADIR="${CMAKE_INSTALL_PREFIX}/share")
5 ADD_DEFINITIONS (-DBUILDTYPE="${CMAKE_BUILD_TYPE}")
6
7-IF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
8- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
9-ELSE (${CMAKE_BUILD_TYPE} NOT MATCHES "Debug")
10- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-deprecated-declarations")
11-ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
12-
13 INCLUDE_DIRECTORIES (. ${GTK_INCLUDE_DIRS} ${VTE_INCLUDE_DIRS})
14 LINK_DIRECTORIES (${GTK_LIBRARY_DIRS} ${VTE_LIBRARY_DIRS} ${X11_LIBRARY_DIRS})
15 LINK_LIBRARIES (${GTK_LIBRARIES} ${VTE_LIBRARIES} ${X11_LIBRARIES} m)
16@@ -57,7 +51,6 @@
17 IF (POD2MAN)
18 INSTALL (FILES ${sakura_BINARY_DIR}/sakura.1 DESTINATION share/man/man1)
19 ENDIF (POD2MAN)
20-INSTALL (FILES INSTALL DESTINATION share/doc/sakura)
21
22 FILE (GLOB MO_FILES po/*.mo)
23
diff --git a/x11-terms/sakura/files/sakura-3.7.0-single-tab.patch b/x11-terms/sakura/files/sakura-3.7.0-single-tab.patch
new file mode 100644
index 0000000..ddd0cec
--- /dev/null
+++ b/x11-terms/sakura/files/sakura-3.7.0-single-tab.patch
@@ -0,0 +1,13 @@
1diff -rupN sakura-3.7.0.old/src/sakura.c sakura-3.7.0/src/sakura.c
2--- sakura-3.7.0.old/src/sakura.c 2019-08-12 23:13:08.000000000 +0200
3+++ sakura-3.7.0/src/sakura.c 2019-12-01 20:21:29.067142517 +0100
4@@ -511,6 +511,9 @@ sakura_key_press (GtkWidget *widget, Gdk
5 if ( ((event->state & sakura.switch_tab_accelerator) == sakura.switch_tab_accelerator) &&
6 ((event->state & sakura.move_tab_accelerator) != sakura.move_tab_accelerator) ) {
7
8+ /* Just propagate the event if there is only one tab */
9+ if(npages < 2) return FALSE;
10+
11 if ((keycode>=sakura_tokeycode(GDK_KEY_1)) && (keycode<=sakura_tokeycode( GDK_KEY_9))) {
12
13 /* User has explicitly disabled this branch, make sure to propagate the event */
diff --git a/x11-terms/sakura/metadata.xml b/x11-terms/sakura/metadata.xml
new file mode 100644
index 0000000..9825940
--- /dev/null
+++ b/x11-terms/sakura/metadata.xml
@@ -0,0 +1,20 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
3<pkgmetadata>
4 <maintainer type="project">
5 <email>desktop-misc@gentoo.org</email>
6 <name>Gentoo Desktop Miscellaneous Project</name>
7 </maintainer>
8 <longdescription>
9 sakura is a terminal emulator based on GTK and VTE. It's a terminal emulator
10 with few dependencies, so you don't need a full GNOME desktop installed to
11 have a decent terminal emulator. Current terminal emulators based on VTE are
12 gnome-terminal, XFCE Terminal, TermIt and a small sample program included
13 in the vte sources. Sakura differences from the last one is that it uses a
14 notebook to provide several terminals in one window and adds a contextual
15 menu with some basic options. No more no less.
16 </longdescription>
17 <upstream>
18 <remote-id type="launchpad">sakura</remote-id>
19 </upstream>
20</pkgmetadata>
diff --git a/x11-terms/sakura/sakura-3.7.0.ebuild b/x11-terms/sakura/sakura-3.7.0.ebuild
new file mode 100644
index 0000000..e53be0d
--- /dev/null
+++ b/x11-terms/sakura/sakura-3.7.0.ebuild
@@ -0,0 +1,63 @@
1# Copyright 1999-2019 Gentoo Authors
2# Distributed under the terms of the GNU General Public License v2
3
4EAPI=7
5inherit cmake-utils eutils flag-o-matic xdg-utils
6
7DESCRIPTION="sakura is a terminal emulator based on GTK and VTE"
8HOMEPAGE="http://www.pleyades.net/david/projects/sakura/"
9SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
10
11LICENSE="GPL-2"
12SLOT="0"
13KEYWORDS="amd64 ~x86 ~x86-linux"
14
15RDEPEND="
16 >=dev-libs/glib-2.20:2
17 >=x11-libs/gtk+-3.20:3[X]
18 x11-libs/libX11
19 >=x11-libs/vte-0.50:2.91
20"
21DEPEND="
22 ${RDEPEND}
23 >=dev-lang/perl-5.10.1
24 virtual/pkgconfig
25"
26PATCHES=(
27 "${FILESDIR}"/${PN}-3.7.0-gentoo.patch
28 "${FILESDIR}"/${PN}-3.7.0-single-tab.patch
29)
30DOCS=(
31 AUTHORS
32)
33
34src_prepare() {
35 strip-linguas -i po/
36 local lingua
37 for lingua in po/*.po; do
38 lingua="${lingua/po\/}"
39 lingua="${lingua/.po}"
40 if ! has ${lingua} ${LINGUAS}; then
41 rm po/${lingua}.po || die
42 fi
43 done
44
45 cmake-utils_src_prepare
46 # sakura.c:1740:3: warning: implicit declaration of function ‘readlink’
47 # [-Wimplicit-function-declaration]
48 append-cppflags -D_DEFAULT_SOURCE
49
50 # sakura.c:1348:9: error: ‘for’ loop initial declarations are only allowed
51 # in C99 or C11 mode
52 append-cflags -std=c99
53}
54
55pkg_postinst() {
56 xdg_desktop_database_update
57 xdg_icon_cache_update
58}
59
60pkg_postrm() {
61 xdg_desktop_database_update
62 xdg_icon_cache_update
63}