1 |
commit: f120036470fea3f6b36a83d6be6fd1175aa50dc6 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Fri Feb 18 21:30:36 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sun Feb 20 19:01:47 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f1200364 |
7 |
|
8 |
gui-libs/gtksourceview: initial import |
9 |
|
10 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
11 |
|
12 |
gui-libs/gtksourceview/Manifest | 1 + |
13 |
gui-libs/gtksourceview/gtksourceview-5.2.0.ebuild | 64 +++++++++++++++++++++++ |
14 |
gui-libs/gtksourceview/metadata.xml | 20 +++++++ |
15 |
3 files changed, 85 insertions(+) |
16 |
|
17 |
diff --git a/gui-libs/gtksourceview/Manifest b/gui-libs/gtksourceview/Manifest |
18 |
new file mode 100644 |
19 |
index 000000000..0716554aa |
20 |
--- /dev/null |
21 |
+++ b/gui-libs/gtksourceview/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST gtksourceview-5.2.0.tar.xz 1206200 BLAKE2B e681c3c1e1c275c237ac77b907b8f75af66b5724eb15a9d926b47b20aa2bb3a2895cca674ffcafbb9f58bb40ac78d4145e87759b00c73f6953501b1134d4858a SHA512 0d71b0340b11b3aadfff662abbaa8606cda696c256855201e559b144b124d6e7c87aee5ea1407928f549b0a5e8480c669403fe73ad76520c2214635a1a31bf52 |
24 |
|
25 |
diff --git a/gui-libs/gtksourceview/gtksourceview-5.2.0.ebuild b/gui-libs/gtksourceview/gtksourceview-5.2.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000..78194f89f |
28 |
--- /dev/null |
29 |
+++ b/gui-libs/gtksourceview/gtksourceview-5.2.0.ebuild |
30 |
@@ -0,0 +1,64 @@ |
31 |
+# Copyright 2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+VALA_MIN_API_VERSION="0.52" |
36 |
+inherit gnome.org meson vala virtualx |
37 |
+ |
38 |
+DESCRIPTION="GTK 4 syntax highlighting widget" |
39 |
+HOMEPAGE="https://gitlab.gnome.org/GNOME/gtksourceview" |
40 |
+ |
41 |
+LICENSE="LGPL-2.1+" |
42 |
+SLOT="5" |
43 |
+IUSE="gtk-doc +introspection +vala" |
44 |
+REQUIRED_USE="vala? ( introspection )" |
45 |
+ |
46 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" |
47 |
+ |
48 |
+DEPEND=" |
49 |
+ dev-libs/fribidi |
50 |
+ dev-libs/glib:2 |
51 |
+ dev-libs/libpcre2:= |
52 |
+ dev-libs/libxml2:2 |
53 |
+ gui-libs/gtk:4 |
54 |
+ media-libs/fontconfig |
55 |
+ x11-libs/cairo |
56 |
+ x11-libs/gdk-pixbuf:2 |
57 |
+ x11-libs/pango |
58 |
+ introspection? ( dev-libs/gobject-introspection:= ) |
59 |
+ |
60 |
+" |
61 |
+RDEPEND="${DEPEND}" |
62 |
+BDEPEND=" |
63 |
+ sys-devel/gettext |
64 |
+ virtual/pkgconfig |
65 |
+ gtk-doc? ( |
66 |
+ dev-util/gtk-doc |
67 |
+ app-text/docbook-xml-dtd:4.3 |
68 |
+ ) |
69 |
+ vala? ( $(vala_depend) ) |
70 |
+" |
71 |
+ |
72 |
+DOCS=( AUTHORS HACKING NEWS README.{md,win32} ) |
73 |
+ |
74 |
+src_prepare() { |
75 |
+ use vala && vala_src_prepare |
76 |
+ default |
77 |
+ |
78 |
+ # deselect failing test |
79 |
+ sed "/test-regex/d" -i testsuite/meson.build || die |
80 |
+} |
81 |
+ |
82 |
+src_configure() { |
83 |
+ local emesonargs=( |
84 |
+ -Dsysprof=false |
85 |
+ $(meson_feature introspection) |
86 |
+ $(meson_use vala vapi) |
87 |
+ $(meson_use gtk-doc gtk_doc) |
88 |
+ ) |
89 |
+ meson_src_configure |
90 |
+} |
91 |
+ |
92 |
+src_test() { |
93 |
+ virtx meson_src_test |
94 |
+} |
95 |
|
96 |
diff --git a/gui-libs/gtksourceview/metadata.xml b/gui-libs/gtksourceview/metadata.xml |
97 |
new file mode 100644 |
98 |
index 000000000..2e04ea776 |
99 |
--- /dev/null |
100 |
+++ b/gui-libs/gtksourceview/metadata.xml |
101 |
@@ -0,0 +1,20 @@ |
102 |
+<?xml version="1.0" encoding="UTF-8"?> |
103 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
104 |
+<pkgmetadata> |
105 |
+<maintainer type="person"> |
106 |
+ <email>cyber+gentoo@×××××.in</email> |
107 |
+ <name>Anna</name> |
108 |
+</maintainer> |
109 |
+<upstream> |
110 |
+ <doc>https://gnome.pages.gitlab.gnome.org/gtksourceview/gtksourceview5/</doc> |
111 |
+ <changelog>https://gitlab.gnome.org/GNOME/gtksourceview/-/raw/master/NEWS</changelog> |
112 |
+ <bugs-to>https://gitlab.gnome.org/GNOME/gtksourceview/-/issues</bugs-to> |
113 |
+</upstream> |
114 |
+<longdescription> |
115 |
+GtkSourceView is a GNOME library that extends GtkTextView, the standard GTK+ |
116 |
+widget for multiline text editing. GtkSourceView adds support for syntax |
117 |
+highlighting, undo/redo, file loading and saving, search and replace, a |
118 |
+completion system, printing, displaying line numbers, and other features typical |
119 |
+of a source code editor. |
120 |
+</longdescription> |
121 |
+</pkgmetadata> |