2022-09-20 15:14:05 +02:00
|
|
|
# Copyright 1999-2022 Gentoo Authors
|
2021-08-22 16:32:08 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2022-09-20 15:14:05 +02:00
|
|
|
EAPI=8
|
2021-08-22 16:32:08 +02:00
|
|
|
|
|
|
|
#inherit dotnet autotools base
|
|
|
|
#inherit dotnet autotools
|
|
|
|
inherit meson
|
|
|
|
|
|
|
|
MY_PN="GtkSharp"
|
|
|
|
MY_P="${MY_PN}-${PV}"
|
|
|
|
SLOT="3"
|
|
|
|
DESCRIPTION="gtk bindings for mono"
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
HOMEPAGE="https://github.com/GLibSharp/GtkSharp"
|
|
|
|
KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
|
|
|
|
SRC_URI="https://github.com/GLibSharp/GtkSharp/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
|
2022-09-20 14:59:53 +02:00
|
|
|
IUSE="+atk +cairo +gdk +gtk +pango"
|
2021-08-22 16:32:08 +02:00
|
|
|
|
2021-08-24 01:24:57 +02:00
|
|
|
REQUIRED_USE="
|
|
|
|
gdk? ( atk cairo pango )
|
|
|
|
gtk? ( atk cairo gdk pango )
|
|
|
|
pango? ( cairo )
|
|
|
|
"
|
|
|
|
|
2021-08-22 16:32:08 +02:00
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
|
|
|
|
RDEPEND="
|
|
|
|
>=dev-libs/glib-2.32
|
|
|
|
x11-libs/gtk+:3
|
|
|
|
"
|
|
|
|
|
|
|
|
DEPEND="${RDEPEND}
|
2021-08-22 16:41:35 +02:00
|
|
|
>=dev-lang/mono-6.12
|
2022-10-25 02:55:36 +02:00
|
|
|
atk? ( app-accessibility/at-spi2-core )
|
2021-08-22 16:32:08 +02:00
|
|
|
cairo? ( x11-libs/cairo )
|
|
|
|
gdk? ( x11-libs/gdk-pixbuf )
|
|
|
|
gtk? ( x11-libs/gtk+:3 )
|
|
|
|
pango? ( x11-libs/pango )"
|
|
|
|
|
|
|
|
PATCHES=( "${FILESDIR}/01-meson-build-gio.patch" )
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local emesonargs=(
|
|
|
|
$(meson_feature atk)
|
|
|
|
$(meson_feature cairo)
|
|
|
|
$(meson_feature gdk)
|
|
|
|
$(meson_feature gtk)
|
|
|
|
$(meson_feature pango)
|
|
|
|
-Dinstall=true
|
|
|
|
)
|
|
|
|
|
|
|
|
meson_src_configure
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
meson_src_install
|
|
|
|
}
|