gtk-sharp2: fix build

This commit is contained in:
q66 2019-12-18 21:44:04 +01:00
parent 44de08083e
commit 377ea98119
2 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,11 @@
--- sample/test/TestRange.cs
+++ sample/test/TestRange.cs
@@ -9,6 +9,8 @@
using System;
using Gtk;
+// disambiguate, Gtk.Range vs System.Range
+using Range=Gtk.Range;
namespace WidgetViewer {

View file

@ -5,7 +5,7 @@ revision=2
wrksrc="gtk-sharp-${version}"
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config mono"
hostmakedepends="pkg-config automake libtool mono"
makedepends="mono-devel gtk+-devel libglade-devel"
maintainer="John <johnz@posteo.net>"
short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
@ -13,3 +13,18 @@ license="LGPL-2.1-only"
homepage="https://www.mono-project.com/docs/gui/gtksharp/"
distfiles="https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-${version}.tar.gz"
checksum=02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
_have_mdoc="no"
elif [[ $XBPS_TARGET_MACHINE == ppc* ]]; then
_have_mdoc="no"
fi
pre_configure() {
# mdoc is not shipped on ppc64le and all BE because it needs roslyn
if [ "$_have_mdoc" = "no" ]; then
sed "s/enable_monodoc=yes/enable_monodoc=no/" -i configure.in
fi
autoreconf -i
}