mono, libgdiplus, gtk-sharp: new packages
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
shelltools.export("LC_ALL", "C")
|
||||
|
||||
def setup():
|
||||
shelltools.export("MONO_SHARED_DIR", get.workDIR())
|
||||
shelltools.system("sed -i 's/gmcs/mcs/' configure{,.ac}")
|
||||
shelltools.system("sed -e '/MONO_PROFILE_ENTER_LEAVE/d' -i gtk/gui-thread-check/profiler/gui-thread-check.c") # Fix build with newer mono
|
||||
#autotools.autoreconf("-fi")
|
||||
#shelltools.system("./bootstrap-2.99")
|
||||
autotools.configure("--prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static")
|
||||
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
|
||||
def build():
|
||||
shelltools.export("MONO_SHARED_DIR", get.workDIR())
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
shelltools.export("MONO_SHARED_DIR", get.workDIR())
|
||||
autotools.install()
|
||||
@@ -0,0 +1,45 @@
|
||||
From a00552ad68ae349e89e440dca21b86dbd6bccd30 Mon Sep 17 00:00:00 2001
|
||||
From: Ankit Jain <radical@gmail.com>
|
||||
Date: Tue, 19 Feb 2019 23:53:27 -0500
|
||||
Subject: [PATCH] Fix build failure with mcs caused by C#8 changes in mcs
|
||||
(#263)
|
||||
|
||||
Recent addition of C#8 features to mcs possibly broke this:
|
||||
|
||||
```
|
||||
mcs -out:WidgetViewer.exe -r:../../glib/glib-sharp.dll -r:../../pango/pango-sharp.dll -r:../../atk/atk-sharp.dll -r:../../gdk/gdk-sharp.dll -r:../../gtk/gtk-sharp.dll ./TestCheckButton.cs ./TestColorSelection.cs ./TestRadioButton.cs ./TestRange.cs ./TestStatusbar.cs ./TestDialog.cs ./TestFlipping.cs ./TestSizeGroup.cs ./TestCombo.cs ./TestComboBox.cs ./WidgetViewer.cs
|
||||
./TestCombo.cs(17,14): warning CS0612: `Gtk.Combo' is obsolete
|
||||
./TestRange.cs(35,6): error CS0104: `Range' is an ambiguous reference between `System.Range' and `Gtk.Range'
|
||||
@/external/bockbuild/stage/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
|
||||
@/external/bockbuild/builds/gtk-sharp-None/sample/test/../../gtk/gtk-sharp.dll (Location of the symbol related to previous error)
|
||||
./TestRange.cs(35,13): error CS0030: Cannot convert type `Gtk.HScale' to `System.Range'
|
||||
./TestRange.cs(42,6): error CS0104: `Range' is an ambiguous reference between `System.Range' and `Gtk.Range'
|
||||
@/external/bockbuild/stage/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
|
||||
@/external/bockbuild/builds/gtk-sharp-None/sample/test/../../gtk/gtk-sharp.dll (Location of the symbol related to previous error)
|
||||
./TestRange.cs(42,13): error CS0030: Cannot convert type `Gtk.HScrollbar' to `System.Range'
|
||||
./TestRange.cs(62,6): error CS0104: `Range' is an ambiguous reference between `System.Range' and `Gtk.Range'
|
||||
@/external/bockbuild/stage/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error)
|
||||
@/external/bockbuild/builds/gtk-sharp-None/sample/test/../../gtk/gtk-sharp.dll (Location of the symbol related to previous error)
|
||||
./TestRange.cs(62,13): error CS0030: Cannot convert type `Gtk.VScale' to `System.Range'
|
||||
```
|
||||
|
||||
This is because the compiler is resolving `Range` in the test as `System.Range`
|
||||
instead of `Gtk.Range`, so we disambiguate it.
|
||||
|
||||
/cc @marek-safar
|
||||
---
|
||||
sample/test/TestRange.cs | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/sample/test/TestRange.cs b/sample/test/TestRange.cs
|
||||
index 35fc8a6dd..d44a77d85 100644
|
||||
--- a/sample/test/TestRange.cs
|
||||
+++ b/sample/test/TestRange.cs
|
||||
@@ -9,6 +9,8 @@
|
||||
using System;
|
||||
|
||||
using Gtk;
|
||||
+// disambiguate, Gtk.Range vs System.Range
|
||||
+using Range=Gtk.Range;
|
||||
|
||||
namespace WidgetViewer {
|
||||
@@ -0,0 +1,75 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "https://pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gtk-sharp</Name>
|
||||
<Homepage>https://www.mono-project.com/docs/gui/gtksharp/</Homepage>
|
||||
<Packager>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>library</IsA>
|
||||
<Icon>gtk-sharp</Icon>
|
||||
<Summary>A C# language binding for the GTK+ 3</Summary>
|
||||
<Description>Gtk-sharp is a C# language binding for the GTK+ 3 toolkit.</Description>
|
||||
<Archive sha1sum="410b57e1404401cead082d35a155628a5a8c0fda" type="tarxz">https://download.gnome.org/sources/gtk-sharp/2.99/gtk-sharp-2.99.3.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>atk-devel</Dependency>
|
||||
<Dependency>mono-devel</Dependency>
|
||||
<Dependency>gtk3-devel</Dependency>
|
||||
<Dependency>pango-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
<Patch>fix-build.patch</Patch>
|
||||
</Patches>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gtk-sharp</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>atk</Dependency>
|
||||
<Dependency>gtk3</Dependency>
|
||||
<Dependency>glib2</Dependency>
|
||||
<Dependency>pango</Dependency>
|
||||
<Dependency>fontconfig</Dependency>
|
||||
<Dependency>mono-runtime</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib/mono/gac/gtk-sharp</Path>
|
||||
<Path fileType="library">/usr/lib/libgiosharpglue*</Path>
|
||||
<Path fileType="library">/usr/lib/libatksharpglue*</Path>
|
||||
<Path fileType="library">/usr/lib/libgtksharpglue*</Path>
|
||||
<Path fileType="library">/usr/lib/libpangosharpglue*</Path>
|
||||
<Path fileType="library">/usr/lib/libmono-profiler*</Path>
|
||||
<Path fileType="library">/usr/lib/monodoc</Path>
|
||||
<Path fileType="library">/usr/lib/gapi-3*</Path>
|
||||
<Path fileType="library">/usr/lib/mono/gac</Path>
|
||||
<Path fileType="library">/usr/lib/mono/gtk-sharp-3.0</Path>
|
||||
<Path fileType="data">/usr/share/gapi-*</Path>
|
||||
<Path fileType="doc">/usr/share/doc/</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>gtk-sharp-devel</Name>
|
||||
<Summary>Development files for gtk-sharp</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">gtk-sharp</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="data">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2022-0-12</Date>
|
||||
<Version>2.99.3</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Kamil Atlı</Name>
|
||||
<Email>suvari@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>gtk-sharp</Name>
|
||||
<Summary xml:lang="tr">Gtk3 için C# bağlayıcıları</Summary>
|
||||
<Summary xml:lang="fr">Gtk# 3 est un lien (binding) en langage C# pour la boîte à outils GTK2.</Summary>
|
||||
<Description xml:lang="tr">Gtk-sharp, GTK+ 3 araç kiti için yazılmış C# bağlayıcılarıdır.</Description>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>gtk-sharp-devel</Name>
|
||||
<Summary xml:lang="tr">gtk-sharp için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
|
||||
<!-- <Package>
|
||||
<Name>gtk-sharp-docs</Name>
|
||||
<Summary xml:lang="tr">gtk-sharp dokümanları</Summary>
|
||||
</Package> -->
|
||||
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user