2020-09-29 22:51:03 +02:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
#inherit dotnet autotools base
|
|
|
|
inherit dotnet autotools
|
|
|
|
|
2021-05-19 00:50:45 +02:00
|
|
|
MY_PN="GtkSharp"
|
|
|
|
MY_P="${MY_PN}-${PV}"
|
2020-09-29 22:51:03 +02:00
|
|
|
SLOT="3"
|
|
|
|
DESCRIPTION="gtk bindings for mono"
|
|
|
|
LICENSE="GPL-2"
|
2021-05-19 00:50:45 +02:00
|
|
|
HOMEPAGE="https://github.com/GtkSharp/GtkSharp"
|
2020-09-29 22:51:03 +02:00
|
|
|
KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
|
2021-05-19 00:50:45 +02:00
|
|
|
SRC_URI="https://github.com/GtkSharp/GtkSharp/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
2020-09-29 22:51:03 +02:00
|
|
|
IUSE="debug"
|
|
|
|
|
2021-05-19 00:50:45 +02:00
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
|
2020-09-29 22:51:03 +02:00
|
|
|
RESTRICT="test"
|
|
|
|
|
2021-05-19 00:50:45 +02:00
|
|
|
CDEPEND="
|
|
|
|
|| (
|
|
|
|
dev-dotnet/dotnetcore-sdk
|
|
|
|
dev-dotnet/dotnetcore-sdk-bin
|
|
|
|
)
|
|
|
|
dev-util/msbuild
|
|
|
|
"
|
|
|
|
|
2020-09-29 22:51:03 +02:00
|
|
|
RDEPEND="
|
2021-05-19 00:50:45 +02:00
|
|
|
>=dev-lang/mono-6.12
|
2020-09-29 22:51:03 +02:00
|
|
|
x11-libs/gtk+:3
|
2021-05-19 00:50:45 +02:00
|
|
|
"
|
|
|
|
# x11-libs/pango
|
|
|
|
# >=dev-libs/glib-2.31
|
|
|
|
# dev-libs/atk
|
|
|
|
# dev-perl/XML-LibXML
|
2020-09-29 22:51:03 +02:00
|
|
|
DEPEND="${RDEPEND}
|
|
|
|
virtual/pkgconfig
|
|
|
|
sys-devel/automake:1.11"
|
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
mkdir "${T}"/the_registry
|
|
|
|
default
|
|
|
|
}
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
eautoreconf
|
|
|
|
_elibtoolize
|
|
|
|
eapply_user
|
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
econf --disable-static \
|
|
|
|
--disable-maintainer-mode \
|
|
|
|
$(use_enable debug)
|
|
|
|
}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
MONO_REGISTRY_PATH="${T}/the_registry" emake
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
dotnet_multilib_comply
|
|
|
|
sed -i "s/\\r//g" "${D}"/usr/bin/* || die "sed failed"
|
|
|
|
dodir /etc/mono/registry || die "failed to create registry dir"
|
|
|
|
insinto /etc/mono/registry
|
|
|
|
doins -r "${T}"/the_registry/* || die "failed to install to registry"
|
|
|
|
}
|