diff options
author | Kenny Ballou <kballou@devnulllabs.io> | 2018-08-08 07:43:06 -0600 |
---|---|---|
committer | Kenny Ballou <kballou@devnulllabs.io> | 2018-08-12 20:48:18 -0600 |
commit | 4dc85403a210102836c55a0fdf0ac084abd1288b (patch) | |
tree | ecb736a63306b288b7d3364cd52592fbdd55cfa7 /x11-terms/sakura/sakura-3.6.0.ebuild | |
parent | a9ab53644f5fea90a507d137e29941f660c9c6f0 (diff) | |
download | gentoo-sakura-update.tar.gz gentoo-sakura-update.tar.xz |
x11-terms/sakura: add new ebuild for version 3.6.0.sakura-update
Bug: https://bugs.gentoo.org/657256
Package-Manager: Portage-3.3.40, Repoman-2.3.9
Diffstat (limited to 'x11-terms/sakura/sakura-3.6.0.ebuild')
-rw-r--r-- | x11-terms/sakura/sakura-3.6.0.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/x11-terms/sakura/sakura-3.6.0.ebuild b/x11-terms/sakura/sakura-3.6.0.ebuild new file mode 100644 index 00000000000..36cb611be37 --- /dev/null +++ b/x11-terms/sakura/sakura-3.6.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit cmake-utils eutils flag-o-matic gnome2-utils xdg-utils + +DESCRIPTION="Terminal emulator based on GTK and VTE" +HOMEPAGE="http://www.pleyades.net/david/projects/sakura/" +SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~arm-linux ~x86-linux" + +RDEPEND=" + >=dev-libs/glib-2.20:2 + x11-libs/gtk+:3[X] + x11-libs/libX11 + x11-libs/vte:2.91 +" +DEPEND=" + ${RDEPEND} + >=dev-lang/perl-5.10.1 + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-3.1.3-flags.patch +) + +src_prepare() { + sed -i "/FILES INSTALL/d" CMakeLists.txt || die + + strip-linguas -i po/ + local lingua + for lingua in po/*.po; do + lingua="${lingua/po\/}" + lingua="${lingua/.po}" + if ! has ${lingua} ${LINGUAS}; then + rm po/${lingua}.po || die + fi + done + + cmake-utils_src_prepare + # sakura.c:1740:3: warning: implicit declaration of function ‘readlink’ + # [-Wimplicit-function-declaration] + append-cppflags -D_DEFAULT_SOURCE + + # sakura.c:1348:9: error: ‘for’ loop initial declarations are only allowed + # in C99 or C11 mode + append-cflags -std=c99 +} + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update +} |