* [gentoo-commits] repo/proj/guru:master commit in: dev-dotnet/gtk-sharp/, dev-dotnet/gtk-sharp/files/
@ 2022-05-02 7:17 Florian Schmaus
0 siblings, 0 replies; 2+ messages in thread
From: Florian Schmaus @ 2022-05-02 7:17 UTC (permalink / raw
To: gentoo-commits
commit: 5a5dc9a16679c7cd2bbcf5e2f7e6afa6d5a2b31b
Author: Pascal Jäger <pascal.jaeger <AT> leimstift <DOT> de>
AuthorDate: Sat Apr 30 21:14:27 2022 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Sat Apr 30 21:14:55 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5a5dc9a1
dev-dotnet/gtk-sharp: new package, add 2.99.3-r2
Signed-off-by: Pascal Jäger <pascal.jaeger <AT> leimstift.de>
dev-dotnet/gtk-sharp/Manifest | 1 +
.../files/gtk-sharp-2.99.3-fix-build.patch | 22 ++++++++
dev-dotnet/gtk-sharp/gtk-sharp-2.99.3-r2.ebuild | 65 ++++++++++++++++++++++
3 files changed, 88 insertions(+)
diff --git a/dev-dotnet/gtk-sharp/Manifest b/dev-dotnet/gtk-sharp/Manifest
new file mode 100644
index 000000000..734e9237d
--- /dev/null
+++ b/dev-dotnet/gtk-sharp/Manifest
@@ -0,0 +1 @@
+DIST gtk-sharp-2.99.3.zip 3967326 BLAKE2B 0ecacd0460256adbb03e9578946362560648fce6ca6fe402b97b53d34efae476e9a1c02f6d00245fc854694ddfe3e613f04e56f9b07e8ceda1fc01f4c351d663 SHA512 2c149456f9beaf41a7d9e47c3a3720fc71484ad18842ffba4c95bb904dc1c53932fbdfd2eba8820c668947b8d4599dd3b5ce73b2584c1194c4dab8991a55c18a
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 000000000..6db28b7a6
--- /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-2.99.3-r2.ebuild b/dev-dotnet/gtk-sharp/gtk-sharp-2.99.3-r2.ebuild
new file mode 100644
index 000000000..5365f3dfb
--- /dev/null
+++ b/dev-dotnet/gtk-sharp/gtk-sharp-2.99.3-r2.ebuild
@@ -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
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: dev-dotnet/gtk-sharp/, dev-dotnet/gtk-sharp/files/
@ 2023-09-04 11:04 Andrew Ammerlaan
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2023-09-04 11:04 UTC (permalink / raw
To: gentoo-commits
commit: efa9fe9bbd8d982978e21a116f4c7b2450aa7b0c
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 4 10:55:24 2023 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Sep 4 10:58:34 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=efa9fe9b
dev-dotnet/gtk-sharp: add version 3.22.2
Borrowed from the ::fritteli overlay
Required for picoscope 7 in ::natinst
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
dev-dotnet/gtk-sharp/Manifest | 1 +
.../gtk-sharp/files/01-meson-build-gio.patch | 11 +++++
dev-dotnet/gtk-sharp/gtk-sharp-3.22.2-r2.ebuild | 57 ++++++++++++++++++++++
dev-dotnet/gtk-sharp/metadata.xml | 5 ++
4 files changed, 74 insertions(+)
diff --git a/dev-dotnet/gtk-sharp/Manifest b/dev-dotnet/gtk-sharp/Manifest
index af5352df4a..717b88961c 100644
--- a/dev-dotnet/gtk-sharp/Manifest
+++ b/dev-dotnet/gtk-sharp/Manifest
@@ -1 +1,2 @@
DIST gtk-sharp-2.99.3.tar.gz 2319079 BLAKE2B 8af1fd7123ba4e4c17e54d9e87e615c38574c8db23a87374c17b8600f8c5c01e649246eb819930d32c9e0708f562618e0be3cf35a44ee6feeb4e5029eedbba19 SHA512 df643edbe61eeea9f12349b5f467e8bb5eb68e72f2d6b9978daed42a5deff1ca33b1869c7a24f4c15bdc472bc368e7432ad18e7db6e0b39cd93eacdcc750efd9
+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 0000000000..be23b163f9
--- /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/gtk-sharp-3.22.2-r2.ebuild b/dev-dotnet/gtk-sharp/gtk-sharp-3.22.2-r2.ebuild
new file mode 100644
index 0000000000..fddc5d6647
--- /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"
+KEYWORDS="~amd64 ~arm64 ~ppc ~x86"
+SLOT="3"
+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
index 48d860dabb..08aa5909dc 100644
--- a/dev-dotnet/gtk-sharp/metadata.xml
+++ b/dev-dotnet/gtk-sharp/metadata.xml
@@ -2,6 +2,11 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
+ <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>
<upstream>
<remote-id type="github">mono/gtk-sharp</remote-id>
</upstream>
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-04 11:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-02 7:17 [gentoo-commits] repo/proj/guru:master commit in: dev-dotnet/gtk-sharp/, dev-dotnet/gtk-sharp/files/ Florian Schmaus
-- strict thread matches above, loose matches on Subject: below --
2023-09-04 11:04 Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox