summaryrefslogtreecommitdiff
path: root/dev-dotnet/gtk-sharp
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 16:47:34 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 16:47:34 -0500
commitdda948891d3731927b821ce31f9d9a2d03ba20c5 (patch)
tree99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-dotnet/gtk-sharp
parenta3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff)
downloadbaldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz
baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz
baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip
Adding metadata
Diffstat (limited to 'dev-dotnet/gtk-sharp')
-rw-r--r--dev-dotnet/gtk-sharp/Manifest1
-rw-r--r--dev-dotnet/gtk-sharp/files/01-meson-build-gio.patch11
-rw-r--r--dev-dotnet/gtk-sharp/files/gtk-sharp-2.99.3-fix-build.patch22
-rw-r--r--dev-dotnet/gtk-sharp/gtk-sharp-3.22.2-r2.ebuild57
-rw-r--r--dev-dotnet/gtk-sharp/metadata.xml10
5 files changed, 101 insertions, 0 deletions
diff --git a/dev-dotnet/gtk-sharp/Manifest b/dev-dotnet/gtk-sharp/Manifest
new file mode 100644
index 000000000000..5db36f2ed90e
--- /dev/null
+++ b/dev-dotnet/gtk-sharp/Manifest
@@ -0,0 +1 @@
+DIST gtk-sharp-3.22.2.tar.gz 3297236 BLAKE2B ed6f9e19cc2db3e3a86a14107239b25ec4868222d5ef3d694372e824b8f323d70f5a4847c72a0c2a780cc474375fbf74c74ca3165fbed4255e68671614b9f9fc SHA512 8d4fdcbd54ec795dd5d8bd1fd9e4ec5ea5fff5169392891c99656d3fa1fffda28bbe6ac4e32f1201e7ed03b9702f37e85cd315946bf055efdd7b264d23e6007a
diff --git a/dev-dotnet/gtk-sharp/files/01-meson-build-gio.patch b/dev-dotnet/gtk-sharp/files/01-meson-build-gio.patch
new file mode 100644
index 000000000000..be23b163f939
--- /dev/null
+++ b/dev-dotnet/gtk-sharp/files/01-meson-build-gio.patch
@@ -0,0 +1,11 @@
+diff --git a/Source/gio/generated/meson.build b/Source/gio/generated/meson.build
+index f8e3978..416ed5c 100644
+--- a/Source/gio/generated/meson.build
++++ b/Source/gio/generated/meson.build
+@@ -413,5 +413,5 @@ pkgs += [pkg]
+ source_gen = files(generated_sources)
+ gio_api_includes = join_paths(meson.current_source_dir(), 'gio-api.xml')
+ if install
+- install_data(gdk_api_includes, install_dir: gapi_xml_installdir)
++ install_data(gio_api_includes, install_dir: gapi_xml_installdir)
+ endif
diff --git a/dev-dotnet/gtk-sharp/files/gtk-sharp-2.99.3-fix-build.patch b/dev-dotnet/gtk-sharp/files/gtk-sharp-2.99.3-fix-build.patch
new file mode 100644
index 000000000000..6db28b7a6fcc
--- /dev/null
+++ b/dev-dotnet/gtk-sharp/files/gtk-sharp-2.99.3-fix-build.patch
@@ -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 {
diff --git a/dev-dotnet/gtk-sharp/gtk-sharp-3.22.2-r2.ebuild b/dev-dotnet/gtk-sharp/gtk-sharp-3.22.2-r2.ebuild
new file mode 100644
index 000000000000..75a3643d3916
--- /dev/null
+++ b/dev-dotnet/gtk-sharp/gtk-sharp-3.22.2-r2.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit meson
+
+MY_PN="GtkSharp"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="gtk bindings for mono"
+HOMEPAGE="https://github.com/GLibSharp/GtkSharp"
+SRC_URI="https://github.com/GLibSharp/GtkSharp/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="3"
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
+IUSE="+atk +cairo +gdk +gtk +pango"
+
+REQUIRED_USE="
+ gdk? ( atk cairo pango )
+ gtk? ( atk cairo gdk pango )
+ pango? ( cairo )
+"
+
+RDEPEND="
+ >=dev-libs/glib-2.32
+ x11-libs/gtk+:3
+"
+
+DEPEND="${RDEPEND}
+ >=dev-lang/mono-6.12
+ atk? ( app-accessibility/at-spi2-core )
+ cairo? ( x11-libs/cairo )
+ gdk? ( x11-libs/gdk-pixbuf )
+ gtk? ( x11-libs/gtk+:3 )
+ pango? ( x11-libs/pango )"
+
+PATCHES=( "${FILESDIR}/01-meson-build-gio.patch" )
+
+src_configure() {
+ local emesonargs=(
+ $(meson_feature atk)
+ $(meson_feature cairo)
+ $(meson_feature gdk)
+ $(meson_feature gtk)
+ $(meson_feature pango)
+ -Dinstall=true
+ )
+
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+}
diff --git a/dev-dotnet/gtk-sharp/metadata.xml b/dev-dotnet/gtk-sharp/metadata.xml
new file mode 100644
index 000000000000..92d030eb1e55
--- /dev/null
+++ b/dev-dotnet/gtk-sharp/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <use>
+ <flag name="atk">Build the ATK bindings.</flag>
+ <flag name="gdk">Build the GDK bindings.</flag>
+ <flag name="pango">Build the Pango bindings.</flag>
+ </use>
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>