Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/gedit/
Date: Fri, 27 May 2022 10:22:15
Message-Id: 1653646862.6fcaaed4a4ccd45ad18ba07b15f9958451f70ce1.pacho@gentoo
1 commit: 6fcaaed4a4ccd45ad18ba07b15f9958451f70ce1
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 27 10:20:59 2022 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Fri May 27 10:21:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6fcaaed4
7
8 app-editors/gedit: add 42.1
9
10 It also needs gtksourceview with vala support to build
11
12 Thanks-to: Ryoto Yayame
13 Closes: https://bugs.gentoo.org/811075
14 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
15
16 app-editors/gedit/Manifest | 1 +
17 app-editors/gedit/gedit-42.1.ebuild | 93 +++++++++++++++++++++++++++++++++++++
18 2 files changed, 94 insertions(+)
19
20 diff --git a/app-editors/gedit/Manifest b/app-editors/gedit/Manifest
21 index 0cc443d02577..d8193281fc31 100644
22 --- a/app-editors/gedit/Manifest
23 +++ b/app-editors/gedit/Manifest
24 @@ -1,2 +1,3 @@
25 DIST gedit-41.0.tar.xz 6889320 BLAKE2B c4d2b923eab18cd27ffc0ff99882953e952c0956135fa7f6401ef01dd5cd0e1cf9a5a86c5751db9206fd88200c70434710881cd5b934a3620f14130a5066f18f SHA512 97c51ef24e53d6bd4b29350a8749eacbfcfb90b7c66c9f6d462101c53966282452f6a02043628e157e8179cf6260f103b41c61d7ba2a31da08b0687f8031974e
26 DIST gedit-42.0.tar.xz 6923352 BLAKE2B 751c4cae8ad0c146f2607f259ab72f4723c433934f75356bf71e44daadc82d4403e19228b52ec2f98c3fa7bc61274a6ed648ef8af143adb7c89213d39db64473 SHA512 d0f3c05e0a6f96634cc2deb24d95d906e5bb9d380b248a810560b60ac8590831fb25672a41e143fe7bba3882a08ec7ec85208f896751a7b66cabe4ade00cdaca
27 +DIST gedit-42.1.tar.xz 6916780 BLAKE2B a4350a62811ee689f9a7f70a4b166aa82185a17ab6c6f0f6264404756a2e7f2b93e81b2cf88beaf4141527720437f9e6ee9f7584e65e63fe242975e346d26586 SHA512 b7b1dd4ab31412a2bdeb6298065d1e3f52a9c813e26e943aea606b30e3de9b7690cc8ba478e2d0e49fb51bed57dd3f7c441184964270629d51dc1f6d132045a6
28
29 diff --git a/app-editors/gedit/gedit-42.1.ebuild b/app-editors/gedit/gedit-42.1.ebuild
30 new file mode 100644
31 index 000000000000..5d3830ed2ae1
32 --- /dev/null
33 +++ b/app-editors/gedit/gedit-42.1.ebuild
34 @@ -0,0 +1,93 @@
35 +# Copyright 1999-2022 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=8
39 +PYTHON_COMPAT=( python3_{8..10} )
40 +VALA_MIN_API_VERSION="0.26"
41 +VALA_USE_DEPEND="vapigen"
42 +
43 +inherit gnome.org gnome2-utils meson python-single-r1 vala xdg
44 +
45 +DESCRIPTION="A text editor for the GNOME desktop"
46 +HOMEPAGE="https://wiki.gnome.org/Apps/Gedit https://gitlab.gnome.org/GNOME/gedit"
47 +
48 +LICENSE="GPL-2+ CC-BY-SA-3.0"
49 +SLOT="0"
50 +
51 +IUSE="+python gtk-doc spell"
52 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
53 +
54 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
55 +
56 +DEPEND="
57 + >=dev-libs/glib-2.64:2
58 + >=x11-libs/gtk+-3.22.0:3[introspection]
59 + >=x11-libs/gtksourceview-4.0.2:4[introspection,vala]
60 + >=dev-libs/libpeas-1.14.1[gtk]
61 + >=dev-libs/libxml2-2.5.0:2
62 + >=dev-libs/gobject-introspection-1.54:=
63 +
64 + spell? ( >=app-text/gspell-0.2.5:0= )
65 + python? (
66 + ${PYTHON_DEPS}
67 + $(python_gen_cond_dep '
68 + dev-python/pycairo[${PYTHON_USEDEP}]
69 + >=dev-python/pygobject-3:3[cairo,${PYTHON_USEDEP}]
70 + dev-libs/libpeas[python,${PYTHON_SINGLE_USEDEP}]
71 + ')
72 + )
73 +"
74 +RDEPEND="${DEPEND}
75 + x11-themes/adwaita-icon-theme
76 + gnome-base/gsettings-desktop-schemas
77 + gnome-base/gvfs
78 +"
79 +BDEPEND="
80 + $(vala_depend)
81 + app-text/docbook-xml-dtd:4.1.2
82 + dev-util/glib-utils
83 + gtk-doc? ( >=dev-util/gtk-doc-1 )
84 + dev-util/itstool
85 + >=sys-devel/gettext-0.18
86 + virtual/pkgconfig
87 +"
88 +
89 +pkg_setup() {
90 + use python && python-single-r1_pkg_setup
91 +}
92 +
93 +src_prepare() {
94 + default
95 + vala_setup
96 + xdg_environment_reset
97 +}
98 +
99 +src_configure() {
100 + local emesonargs=(
101 + $(meson_use gtk-doc gtk_doc)
102 + $(meson_use python)
103 + $(meson_feature spell)
104 + -Duser_documentation=true
105 + -Denable-gvfs-metadata=yes
106 +
107 + )
108 + meson_src_configure
109 +}
110 +
111 +src_install() {
112 + meson_src_install
113 + if use python; then
114 + python_optimize
115 + python_optimize "${ED}/usr/$(get_libdir)/gedit/plugins/"
116 + fi
117 +}
118 +
119 +pkg_postinst() {
120 + xdg_pkg_postinst
121 + gnome2_schemas_update
122 +}
123 +
124 +pkg_postrm() {
125 + xdg_pkg_postrm
126 + gnome2_schemas_update
127 +}