summaryrefslogtreecommitdiff
blob: 15edde92c9a0ed57f11b0e5be76a60acc4514081 (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-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=6
GNOME2_EAUTORECONF="yes"
inherit gnome2

DESCRIPTION="Gtk3 frontend for rdesktop"
HOMEPAGE="http://www.nongnu.org/grdesktop/"
SRC_URI="https://savannah.nongnu.org/download/${PN}/${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~leio/distfiles/${P}-patchset.tar.xz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE=""

RDEPEND="
	>=x11-libs/gtk+-3.21.4:3
	net-misc/rdesktop
"
DEPEND="${RDEPEND}
	app-text/rarian
	virtual/pkgconfig
"

PATCHES=(
	# Patches from debian:
	# Correct icon path. See bug #50295.
	# Fix compilation with format-security, bug #517662
	# gsettings, gtk3 port, gcc10 compat, etc
	"${WORKDIR}"/grdesktop-0.23+d040330-7
)

src_prepare() {
	gnome2_src_prepare
	# Fix desktop file validation after debian patchset (it removes Action line, but not the action itself - remove that here)
	sed -e '/Desktop Action Full/,+1d' -i grdesktop.desktop
}

src_configure() {
	gnome2_src_configure \
		--with-keymap-path=/usr/share/rdesktop/keymaps/
}