gtk-sharp: fix build

This commit is contained in:
q66 2019-12-18 20:34:20 +01:00
parent 95de2682b6
commit 44de08083e
2 changed files with 22 additions and 0 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

@ -14,6 +14,12 @@ short_desc="Graphical User Interface Toolkit for mono and .Net (Gtk#)"
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
checksum=6440f571416267ae0cb5698071d087b31e3084693fa2c829b1db37ca7ea2c3a2
if [ "$XBPS_TARGET_ENDIAN" = "be" ]; then
_have_mdoc="no"
elif [[ $XBPS_TARGET_MACHINE == ppc* ]]; then
_have_mdoc="no"
fi
pre_configure() {
# Use mcs instead of the dead gmcs compiler
sed "s/gmcs/mcs/" -i configure.ac
@ -21,5 +27,10 @@ pre_configure() {
# Don't build broken threadcheck module
sed "s/ENABLE_THREADCHECK, true/ENABLE_THREADCHECK, false/" -i configure.ac
# 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.ac
fi
autoreconf -if
}