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/, x11-terms/sakura/files/
Date: Sat, 30 Nov 2019 12:24:00
Message-Id: 1575116631.34dc5a0de3247ac88d24af95a4301d3d8ef9562d.jer@gentoo
1 commit: 34dc5a0de3247ac88d24af95a4301d3d8ef9562d
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Sat Nov 30 12:21:05 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 30 12:23:51 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=34dc5a0d
7
8 x11-terms/sakura: Version 3.7.0
9
10 Package-Manager: Portage-2.3.80, Repoman-2.3.19
11 Fixes: https://bugs.gentoo.org/701518
12 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
13
14 x11-terms/sakura/Manifest | 1 +
15 x11-terms/sakura/files/sakura-3.7.0-gentoo.patch | 23 +++++++++
16 x11-terms/sakura/sakura-3.7.0.ebuild | 62 ++++++++++++++++++++++++
17 3 files changed, 86 insertions(+)
18
19 diff --git a/x11-terms/sakura/Manifest b/x11-terms/sakura/Manifest
20 index e6c31dce20d..f2946fd9813 100644
21 --- a/x11-terms/sakura/Manifest
22 +++ b/x11-terms/sakura/Manifest
23 @@ -1,2 +1,3 @@
24 DIST sakura-3.5.0.tar.bz2 55432 BLAKE2B 9accd09eac359b64637ff5c318e50e32f5bfa27cf7fb5d4a99c91391e14f145020bd19077e20585b78149e5ac5f281abaf1098dbbaf111e54fd5ad5fbb2f4887 SHA512 20c691342c68a2a6f7397da754c83b19c7622e25984ae9fe9fef47492e19cd7589dd9d1bd2ccb82bd9c6ab82f92c97c1b742795434a101a0e169c6f901f40d9e
25 DIST sakura-3.6.0.tar.bz2 56044 BLAKE2B 746de744ad562c4202acf4cb6803917530bde6edb13799630124e64e3e423ee423770cdebd5f8f42b5c2bd56b8863c82eb2015c65b2f168933c87337026c1313 SHA512 4b9d2c15305a2b9a193031194afc0b50deeb32ae52f8b13967801cd57aa71424d7dedf0a9aedf7470aef8b58d8341c85ae37ef67b941b8b97912eb845c5df08f
26 +DIST sakura-3.7.0.tar.gz 64728 BLAKE2B 637d8c9a393fe2823943190ec3c1676d3dd900b574f58fc3f6d61709ac3b70081736f0804c0e7d8ec5a1409cc2651aa1c3bee04a04c5d3df4ac1432fa2a5c41b SHA512 1018ea952d491f68a05ee3b3d8ac70cbfb485687f76224f9a395ff6508e0e75ff58bfd12dcb534c86430da54803a3016619f441d8bd14e496df32f81e00ca72e
27
28 diff --git a/x11-terms/sakura/files/sakura-3.7.0-gentoo.patch b/x11-terms/sakura/files/sakura-3.7.0-gentoo.patch
29 new file mode 100644
30 index 00000000000..ab1d8bebc93
31 --- /dev/null
32 +++ b/x11-terms/sakura/files/sakura-3.7.0-gentoo.patch
33 @@ -0,0 +1,23 @@
34 +--- a/CMakeLists.txt
35 ++++ b/CMakeLists.txt
36 +@@ -38,12 +38,6 @@
37 + ADD_DEFINITIONS (-DDATADIR="${CMAKE_INSTALL_PREFIX}/share")
38 + ADD_DEFINITIONS (-DBUILDTYPE="${CMAKE_BUILD_TYPE}")
39 +
40 +-IF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
41 +- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
42 +-ELSE (${CMAKE_BUILD_TYPE} NOT MATCHES "Debug")
43 +- SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -Wno-deprecated-declarations")
44 +-ENDIF (${CMAKE_BUILD_TYPE} MATCHES "Debug")
45 +-
46 + INCLUDE_DIRECTORIES (. ${GTK_INCLUDE_DIRS} ${VTE_INCLUDE_DIRS})
47 + LINK_DIRECTORIES (${GTK_LIBRARY_DIRS} ${VTE_LIBRARY_DIRS} ${X11_LIBRARY_DIRS})
48 + LINK_LIBRARIES (${GTK_LIBRARIES} ${VTE_LIBRARIES} ${X11_LIBRARIES} m)
49 +@@ -57,7 +51,6 @@
50 + IF (POD2MAN)
51 + INSTALL (FILES ${sakura_BINARY_DIR}/sakura.1 DESTINATION share/man/man1)
52 + ENDIF (POD2MAN)
53 +-INSTALL (FILES INSTALL DESTINATION share/doc/sakura)
54 +
55 + FILE (GLOB MO_FILES po/*.mo)
56 +
57
58 diff --git a/x11-terms/sakura/sakura-3.7.0.ebuild b/x11-terms/sakura/sakura-3.7.0.ebuild
59 new file mode 100644
60 index 00000000000..80e1ce96127
61 --- /dev/null
62 +++ b/x11-terms/sakura/sakura-3.7.0.ebuild
63 @@ -0,0 +1,62 @@
64 +# Copyright 1999-2019 Gentoo Authors
65 +# Distributed under the terms of the GNU General Public License v2
66 +
67 +EAPI=7
68 +inherit cmake-utils eutils flag-o-matic xdg-utils
69 +
70 +DESCRIPTION="sakura is a terminal emulator based on GTK and VTE"
71 +HOMEPAGE="http://www.pleyades.net/david/projects/sakura/"
72 +SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
73 +
74 +LICENSE="GPL-2"
75 +SLOT="0"
76 +KEYWORDS="~amd64 ~x86 ~x86-linux"
77 +
78 +RDEPEND="
79 + >=dev-libs/glib-2.20:2
80 + >=x11-libs/gtk+-3.20:3[X]
81 + x11-libs/libX11
82 + >=x11-libs/vte-0.50:2.91
83 +"
84 +DEPEND="
85 + ${RDEPEND}
86 + >=dev-lang/perl-5.10.1
87 + virtual/pkgconfig
88 +"
89 +PATCHES=(
90 + "${FILESDIR}"/${PN}-3.7.0-gentoo.patch
91 +)
92 +DOCS=(
93 + AUTHORS
94 +)
95 +
96 +src_prepare() {
97 + strip-linguas -i po/
98 + local lingua
99 + for lingua in po/*.po; do
100 + lingua="${lingua/po\/}"
101 + lingua="${lingua/.po}"
102 + if ! has ${lingua} ${LINGUAS}; then
103 + rm po/${lingua}.po || die
104 + fi
105 + done
106 +
107 + cmake-utils_src_prepare
108 + # sakura.c:1740:3: warning: implicit declaration of function ‘readlink’
109 + # [-Wimplicit-function-declaration]
110 + append-cppflags -D_DEFAULT_SOURCE
111 +
112 + # sakura.c:1348:9: error: ‘for’ loop initial declarations are only allowed
113 + # in C99 or C11 mode
114 + append-cflags -std=c99
115 +}
116 +
117 +pkg_postinst() {
118 + xdg_desktop_database_update
119 + xdg_icon_cache_update
120 +}
121 +
122 +pkg_postrm() {
123 + xdg_desktop_database_update
124 + xdg_icon_cache_update
125 +}