Files
gentoo/dev-dotnet/gtk-sharp/gtk-sharp-2.12.21.ebuild
T
Sam James b28d37bb05 dev-dotnet/gtk-sharp: fix build
This is a long-standing bug with a simple patch to fix
an ambiguous property reference.

Closes: https://bugs.gentoo.org/697108
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Sam James <sam@gentoo.org>
2020-07-18 20:03:49 +00:00

63 lines
1.1 KiB
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit dotnet autotools base
SLOT="2"
DESCRIPTION="gtk bindings for mono"
LICENSE="GPL-2"
HOMEPAGE="http://www.mono-project.com/GtkSharp"
KEYWORDS="amd64 x86"
SRC_URI="http://download.mono-project.com/sources/gtk-sharp212/${P}.tar.gz"
IUSE="debug"
RESTRICT="test"
RDEPEND="
>=dev-lang/mono-3.0
x11-libs/pango
>=dev-libs/glib-2.31
dev-libs/atk
x11-libs/gtk+:2
gnome-base/libglade
dev-perl/XML-LibXML
!dev-dotnet/gtk-sharp-gapi
!dev-dotnet/gtk-sharp-docs
!dev-dotnet/gtk-dotnet-sharp
!dev-dotnet/gdk-sharp
!dev-dotnet/glib-sharp
!dev-dotnet/glade-sharp
!dev-dotnet/pango-sharp
!dev-dotnet/atk-sharp"
DEPEND="${RDEPEND}
virtual/pkgconfig
sys-devel/automake:1.11"
PATCHES=(
"${FILESDIR}/${PN}-2.12.21-mono-ambiguous-range.patch"
)
src_prepare() {
base_src_prepare
eautoreconf
libtoolize
}
src_configure() {
econf --disable-static \
--disable-maintainer-mode \
$(use_enable debug)
}
src_compile() {
emake
}
src_install() {
default
dotnet_multilib_comply
sed -i "s/\\r//g" "${D}"/usr/bin/* || die "sed failed"
}