mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
dev-dotnet/gtk-sharp: add 3.22.2-r3
Import Fedora patches to fix installation directory and install cairo-2.dll. These two changes are needed for software such as gbrainy. Add myself as maintainer. Signed-off-by: Gilles Dartiguelongue <gilles.dartiguelongue@esiee.org>
This commit is contained in:
4 files changed
+119
-1
No files matched your search
@@ -0,0 +1,35 @@
|
|||||||
|
From 8cce7f0d19e6378f652aa75dcaac348a869f6ece Mon Sep 17 00:00:00 2001
|
||||||
|
From: noup <mail@pedrocastro.org>
|
||||||
|
Date: Thu, 2 Jun 2022 23:45:55 +0100
|
||||||
|
Subject: [PATCH] Add cairo-sharp.dll.config
|
||||||
|
|
||||||
|
---
|
||||||
|
Source/cairo/cairo-sharp.dll.config.in | 3 +++
|
||||||
|
Source/cairo/meson.build | 4 ++++
|
||||||
|
2 files changed, 7 insertions(+)
|
||||||
|
create mode 100644 Source/cairo/cairo-sharp.dll.config.in
|
||||||
|
|
||||||
|
diff --git a/Source/cairo/cairo-sharp.dll.config.in b/Source/cairo/cairo-sharp.dll.config.in
|
||||||
|
new file mode 100644
|
||||||
|
index 000000000..a92bcfbd9
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/Source/cairo/cairo-sharp.dll.config.in
|
||||||
|
@@ -0,0 +1,3 @@
|
||||||
|
+<configuration>
|
||||||
|
+ <dllmap dll="cairo-2.dll" target="libcairo@LIB_PREFIX@.2@LIB_SUFFIX@"/>
|
||||||
|
+</configuration>
|
||||||
|
diff --git a/Source/cairo/meson.build b/Source/cairo/meson.build
|
||||||
|
index 032e899d8..04e1edd56 100644
|
||||||
|
--- a/Source/cairo/meson.build
|
||||||
|
+++ b/Source/cairo/meson.build
|
||||||
|
@@ -3,6 +3,10 @@ assembly_name = 'cairo-sharp'
|
||||||
|
raw_api_fname = join_paths(meson.current_source_dir(), 'cairo-api.raw')
|
||||||
|
metadata_fname = join_paths(meson.current_source_dir(), 'cairo.metadata')
|
||||||
|
|
||||||
|
+configure_file(input: assembly_name + '.dll.config.in',
|
||||||
|
+ output: assembly_name + '.dll.config',
|
||||||
|
+ configuration : remap_dl_data)
|
||||||
|
+
|
||||||
|
sources = [
|
||||||
|
'Antialias.cs',
|
||||||
|
'Cairo.cs',
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
--- a/Source/meson.build 2021-07-30 05:34:33.000000000 +0200
|
||||||
|
+++ b/Source/meson.build 2022-08-07 14:27:13.414754013 +0200
|
||||||
|
@@ -74,7 +74,7 @@ version_data.set('PACKAGE_VERSION', pkg_
|
||||||
|
|
||||||
|
install_infos = []
|
||||||
|
nuget_infos = []
|
||||||
|
-lib_install_dir = join_paths(get_option('libdir'), 'mono', pkg_version)
|
||||||
|
+lib_install_dir = join_paths(get_option('prefix'), 'lib', 'mono', pkg_version)
|
||||||
|
pkg_install_dir = join_paths(get_option('libdir'), 'pkgconfig')
|
||||||
|
gapi_xml_installdir = join_paths(get_option('datadir'), 'gapi-3.0')
|
||||||
|
|
||||||
|
--- a/Source/parser/meson.build 2021-07-30 05:34:33.000000000 +0200
|
||||||
|
+++ b/Source/parser/meson.build 2022-08-07 14:24:57.849163225 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-gapi_installdir = join_paths(get_option('libdir'), 'gapi-3.0')
|
||||||
|
+gapi_installdir = join_paths(get_option('prefix'), 'lib', 'gapi-3.0')
|
||||||
|
pkg_install_dir = '@0@/pkgconfig'.format(get_option('libdir'))
|
||||||
|
|
||||||
|
gapi_parser = executable('gapi-parser', 'gapi-parser.cs',
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
# 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
|
||||||
|
"${FILESDIR}"/${P}-add-cairo-sharp-dll-config.patch
|
||||||
|
"${FILESDIR}"/${P}-nolibdir.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
|
||||||
|
}
|
||||||
@@ -1,7 +1,10 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<!-- maintainer-needed -->
|
<maintainer type="person">
|
||||||
|
<email>gilles.dartiguelongue@esiee.org</email>
|
||||||
|
<name>Gilles Dartiguelongue</name>
|
||||||
|
</maintainer>
|
||||||
<use>
|
<use>
|
||||||
<flag name="atk">Build the ATK bindings.</flag>
|
<flag name="atk">Build the ATK bindings.</flag>
|
||||||
<flag name="gdk">Build the GDK bindings.</flag>
|
<flag name="gdk">Build the GDK bindings.</flag>
|
||||||
|
|||||||
Reference in new issue
Block a user