summaryrefslogtreecommitdiff
blob: ffc114ff50bc50aab03b656f91680b88f2ff4e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Copyright 1999-2022 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 ~riscv 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
)

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
}