Commit c6f19989 authored by satmandu's avatar satmandu Committed by GitHub

Mono add binaries (#5276)

* Update mono.rb

* Update gtksharp2.rb
parent 749f0c38
......@@ -8,6 +8,19 @@ class Gtksharp2 < Package
source_url 'https://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-2.12.45.tar.gz'
source_sha256 '02680578e4535441064aac21d33315daa009d742cab8098ac8b2749d86fffb6a'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/gtksharp2-2.12.45-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/gtksharp2-2.12.45-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/gtksharp2-2.12.45-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/gtksharp2-2.12.45-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: 'f7b0e0626a8561f4a24297d97322c2f4b280644e9b6015e03ce0d8a198bc2cfb',
armv7l: 'f7b0e0626a8561f4a24297d97322c2f4b280644e9b6015e03ce0d8a198bc2cfb',
i686: '8d3ee4c1e2fc91f85dbefae6ab26910e53ff5f57cbb9554489f6052c64160030',
x86_64: '5215930d8372096829d725e24a500a3eb97387e390e621d145e05194c2570b5f'
})
depends_on 'mono'
depends_on 'libglade'
depends_on 'pango'
......@@ -16,32 +29,35 @@ class Gtksharp2 < Package
depends_on 'glib'
def self.patch
@ambiguousrange = <<~EOF
--- a/sample/test/TestRange.cs
+++ b/sample/test/TestRange.cs
@@ -10,6 +10,10 @@
using Gtk;
+// disambiguate, Gtk.Range vs System.Range
+using Range=Gtk.Range;
+
+
namespace WidgetViewer {
public class TestRange
EOF
IO.write("ambiguousrange.patch", @ambiguousrange)
@ambiguousrange = <<~PATCH_EOF
--- a/sample/test/TestRange.cs
+++ b/sample/test/TestRange.cs
@@ -10,6 +10,10 @@
#{' '}
using Gtk;
#{' '}
+// disambiguate, Gtk.Range vs System.Range
+using Range=Gtk.Range;
+
+
namespace WidgetViewer {
#{' '}
public class TestRange
PATCH_EOF
IO.write('ambiguousrange.patch', @ambiguousrange)
system 'patch -p 1 -i ambiguousrange.patch'
system 'filefix'
end
def self.build
system "./configure #{CREW_OPTIONS} \
--disable-maintainer-mode"
system "make"
system "CFLAGS='-flto=auto' CXXFLAGS='-flto=auto'
LDFLAGS='-flto=auto' \
./configure #{CREW_OPTIONS} \
--disable-maintainer-mode"
system 'make'
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
......@@ -8,26 +8,47 @@ class Mono < Package
source_url 'https://download.mono-project.com/sources/mono/mono-6.12.0.107.tar.xz'
source_sha256 '61f3cd629f8e99371c6b47c1f8d96b8ac46d9e851b5531eef20cdf9ab60d2a5f'
binary_url({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.107-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.107-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.107-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/mono-6.12.0.107-chromeos-x86_64.tar.xz'
})
binary_sha256({
aarch64: '0a978da374a9ee65506283b67be2cbae8aa5ca4f52d2db776120b4efe7654d0d',
armv7l: '0a978da374a9ee65506283b67be2cbae8aa5ca4f52d2db776120b4efe7654d0d',
i686: 'f39118c36d3356e6ad3c934041821dd9d22a0d60200b4e67a4efb6f9dbb88a65',
x86_64: '4b32a060c7bfefdb6d57f419df73b57ae39ff79ea1bb7fca5605c9db8aae9b92'
})
depends_on 'bc'
depends_on 'libgdiplus'
depends_on 'python3' => :build
depends_on 'imake' => :build
def self.prebuild
system 'if [ ! -f /proc/config.gz ]; then sudo modprobe configs -v; fi'
system 'cat /proc/config.gz | gunzip | grep SYSVIPC=y || false' # Mono build hangs without this feature enabled.
# Just build on a system or on a container booted from a kernel
# with SYSVIPC=y set.
# system 'if [ ! -f /proc/config.gz ]; then sudo modprobe configs -v; fi'
# system 'cat /proc/config.gz | gunzip | grep SYSVIPC=y || false' # Mono build hangs without this feature enabled.
end
def self.patch
system 'filefix'
end
def self.build
system "env XMKMF=#{CREW_PREFIX}/bin/xmkmf \
./configure #{CREW_OPTIONS} \
--disable-maintainer-mode \
--enable-ninja \
--with-x \
--with-libgdiplus"
./configure #{CREW_OPTIONS} \
--disable-maintainer-mode \
--enable-llvm \
--enable-loadedllvm \
--enable-system-aot \
--enable-ninja \
--with-x \
--with-libgdiplus"
system 'make || make' # Make might fail the first time. This is a known upstream bug.
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment