diff options
Diffstat (limited to 'x11-terms/sakura/sakura-3.7.0.ebuild')
| -rw-r--r-- | x11-terms/sakura/sakura-3.7.0.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
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 | |||
| 4 | EAPI=7 | ||
| 5 | inherit cmake-utils eutils flag-o-matic xdg-utils | ||
| 6 | |||
| 7 | DESCRIPTION="sakura is a terminal emulator based on GTK and VTE" | ||
| 8 | HOMEPAGE="http://www.pleyades.net/david/projects/sakura/" | ||
| 9 | SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz" | ||
| 10 | |||
| 11 | LICENSE="GPL-2" | ||
| 12 | SLOT="0" | ||
| 13 | KEYWORDS="amd64 ~x86 ~x86-linux" | ||
| 14 | |||
| 15 | RDEPEND=" | ||
| 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 | " | ||
| 21 | DEPEND=" | ||
| 22 | ${RDEPEND} | ||
| 23 | >=dev-lang/perl-5.10.1 | ||
| 24 | virtual/pkgconfig | ||
| 25 | " | ||
| 26 | PATCHES=( | ||
| 27 | "${FILESDIR}"/${PN}-3.7.0-gentoo.patch | ||
| 28 | "${FILESDIR}"/${PN}-3.7.0-single-tab.patch | ||
| 29 | ) | ||
| 30 | DOCS=( | ||
| 31 | AUTHORS | ||
| 32 | ) | ||
| 33 | |||
| 34 | src_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 | |||
| 55 | pkg_postinst() { | ||
| 56 | xdg_desktop_database_update | ||
| 57 | xdg_icon_cache_update | ||
| 58 | } | ||
| 59 | |||
| 60 | pkg_postrm() { | ||
| 61 | xdg_desktop_database_update | ||
| 62 | xdg_icon_cache_update | ||
| 63 | } | ||
