mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 15:13:31 -04:00
dev-dotnet/gtk-sharp: new package, add 2.99.3-r2
Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
This commit is contained in:
1
dev-dotnet/gtk-sharp/Manifest
Normal file
1
dev-dotnet/gtk-sharp/Manifest
Normal file
@@ -0,0 +1 @@
|
|||||||
|
DIST gtk-sharp-2.99.3.zip 3967326 BLAKE2B 0ecacd0460256adbb03e9578946362560648fce6ca6fe402b97b53d34efae476e9a1c02f6d00245fc854694ddfe3e613f04e56f9b07e8ceda1fc01f4c351d663 SHA512 2c149456f9beaf41a7d9e47c3a3720fc71484ad18842ffba4c95bb904dc1c53932fbdfd2eba8820c668947b8d4599dd3b5ce73b2584c1194c4dab8991a55c18a
|
||||||
22
dev-dotnet/gtk-sharp/files/gtk-sharp-2.99.3-fix-build.patch
Normal file
22
dev-dotnet/gtk-sharp/files/gtk-sharp-2.99.3-fix-build.patch
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
diff a/gtk/gui-thread-check/profiler/gui-thread-check.c b/gtk/gui-thread-check/profiler/gui-thread-check.c
|
||||||
|
--- a/gtk/gui-thread-check/profiler/gui-thread-check.c
|
||||||
|
+++ b/gtk/gui-thread-check/profiler/gui-thread-check.c
|
||||||
|
@@ -93,5 +93,5 @@
|
||||||
|
|
||||||
|
mono_profiler_install (NULL, NULL);
|
||||||
|
mono_profiler_install_enter_leave (simple_method_enter, NULL);
|
||||||
|
- mono_profiler_set_events (MONO_PROFILE_ENTER_LEAVE);
|
||||||
|
+ mono_profiler_set_events (1 << 12);
|
||||||
|
}
|
||||||
|
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,5 +9,7 @@
|
||||||
|
using System;
|
||||||
|
|
||||||
|
using Gtk;
|
||||||
|
+// disambiguate, Gtk.Range vs System.Range
|
||||||
|
+using Range=Gtk.Range;
|
||||||
|
|
||||||
|
namespace WidgetViewer {
|
||||||
65
dev-dotnet/gtk-sharp/gtk-sharp-2.99.3-r2.ebuild
Normal file
65
dev-dotnet/gtk-sharp/gtk-sharp-2.99.3-r2.ebuild
Normal file
@@ -0,0 +1,65 @@
|
|||||||
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit dotnet autotools
|
||||||
|
|
||||||
|
SLOT="3"
|
||||||
|
DESCRIPTION="gtk bindings for mono"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
HOMEPAGE="https://www.mono-project.com/GtkSharp"
|
||||||
|
KEYWORDS="~amd64 ~ppc ~x86"
|
||||||
|
SRC_URI="https://github.com/mono/${PN}/archive/${PV}.zip -> ${P}.zip"
|
||||||
|
IUSE="debug"
|
||||||
|
PATCHES=( "${FILESDIR}/${P}-fix-build.patch" )
|
||||||
|
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-lang/mono-3.0
|
||||||
|
x11-libs/pango
|
||||||
|
>=dev-libs/glib-2.31
|
||||||
|
dev-libs/atk
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
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"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
base_src_prepare
|
||||||
|
eautoreconf
|
||||||
|
libtoolize
|
||||||
|
eapply "${FILESDIR}/${P}-fix-build.patch"
|
||||||
|
eapply_user
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
econf CSC=/usr/bin/mcs
|
||||||
|
--disable-static \
|
||||||
|
--disable-dependency-tracking \
|
||||||
|
--disable-maintainer-mode \
|
||||||
|
$(use_enable debug)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake CSC=/usr/bin/mcs
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
dotnet_multilib_comply
|
||||||
|
sed -i "s/\\r//g" "${D}"/usr/bin/* || die "sed failed"
|
||||||
|
insinto /usr/lib64/
|
||||||
|
dosym gapi-3.0 /usr/lib/gapi-3.0
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user