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-plugins/
Date: Fri, 27 May 2022 10:22:15
Message-Id: 1653646920.0c66befa439db0fb36ad896773f161add84d853e.pacho@gentoo
1 commit: 0c66befa439db0fb36ad896773f161add84d853e
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Fri May 27 10:22:00 2022 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Fri May 27 10:22:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c66befa
7
8 app-editors/gedit-plugins: add 42.1
9
10 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
11
12 app-editors/gedit-plugins/Manifest | 1 +
13 .../gedit-plugins/gedit-plugins-42.1.ebuild | 109 +++++++++++++++++++++
14 2 files changed, 110 insertions(+)
15
16 diff --git a/app-editors/gedit-plugins/Manifest b/app-editors/gedit-plugins/Manifest
17 index 53000af41118..cfd17b49db9d 100644
18 --- a/app-editors/gedit-plugins/Manifest
19 +++ b/app-editors/gedit-plugins/Manifest
20 @@ -1,2 +1,3 @@
21 DIST gedit-plugins-41.0.tar.xz 948364 BLAKE2B d5efe779e1f0f70e23a7dadb01b0e5b22c47d3326df6530559698ace274e2a4a3647d34640e89bb250d76bee1f6369d5728316730ce9cf89f3a7db627b3c4d49 SHA512 e0389e8be68406fdcd3c9537b2d2dad0faf19d9a49804a7b5d9cf8e1006254906605dd0b14e2fa1eb7a22d6533d9b55d7f5593fe01a5b412df6361c8b9089f34
22 DIST gedit-plugins-42.0.tar.xz 949068 BLAKE2B d9076d7ef420177b5d859bdee651b4304da183430d651510ea4ab50bc7286d23f536c1be47e6a6f425bdf90dcb31f015fa315e9ed530d54eb235832d92c4f438 SHA512 b7b6b6c71538ca767e20e4bdde0a5530657bf3d444fee5e1b2918b768188f224acfd2a44c4b0b6203ee3bde9ec47d2bacb0e25426cf49e500120461d44ae6b9a
23 +DIST gedit-plugins-42.1.tar.xz 946368 BLAKE2B 6ee8c42d5d5214cdb9095bce71623f9486c973ade69aad91eed4ae13a1ad5ab59bcc43d30078bdb9db46527160f8bc6b183a56c255d10f8027c4ff2e603fffa6 SHA512 2e36919f7b7232e4471e2c1277c33e2f79ff513b76574cf765e451064979587c170ae003c9517d33f3b9cfce916cb7f25f9e3d0a4f6a6b203086fcfff9f265aa
24
25 diff --git a/app-editors/gedit-plugins/gedit-plugins-42.1.ebuild b/app-editors/gedit-plugins/gedit-plugins-42.1.ebuild
26 new file mode 100644
27 index 000000000000..092e6a590b14
28 --- /dev/null
29 +++ b/app-editors/gedit-plugins/gedit-plugins-42.1.ebuild
30 @@ -0,0 +1,109 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +PYTHON_COMPAT=( python3_{8..10} )
36 +PYTHON_REQ_USE="xml"
37 +VALA_MIN_API_VERSION="0.28"
38 +
39 +inherit gnome.org gnome2-utils meson python-single-r1 vala xdg
40 +
41 +DESCRIPTION="Collection of extra plugins for the gedit Text Editor"
42 +HOMEPAGE="https://wiki.gnome.org/Apps/Gedit/ShippedPlugins"
43 +
44 +LICENSE="GPL-2+"
45 +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
46 +SLOT="0"
47 +
48 +IUSE="charmap git +python terminal vala"
49 +REQUIRED_USE="
50 + charmap? ( python )
51 + git? ( python )
52 + python? ( ${PYTHON_REQUIRED_USE} )
53 + terminal? ( python )
54 +"
55 +
56 +RDEPEND="
57 + >=dev-libs/libpeas-1.14.1[gtk]
58 + >=app-editors/gedit-40.0
59 +
60 + >=dev-libs/glib-2.32:2
61 + >=x11-libs/gtk+-3.9:3
62 + >=x11-libs/gtksourceview-4.0.2:4
63 +
64 + python? (
65 + ${PYTHON_DEPS}
66 + $(python_gen_cond_dep '
67 + app-editors/gedit[python,${PYTHON_SINGLE_USEDEP}]
68 + dev-libs/libpeas[python,${PYTHON_SINGLE_USEDEP}]
69 + >=dev-python/dbus-python-0.82[${PYTHON_USEDEP}]
70 + dev-python/pycairo[${PYTHON_USEDEP}]
71 + dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
72 + ')
73 + >=x11-libs/gtk+-3.9:3[introspection]
74 + >=x11-libs/gtksourceview-4.0.2:4[introspection]
75 + x11-libs/pango[introspection]
76 + x11-libs/gdk-pixbuf:2[introspection]
77 + )
78 + charmap? ( >=gnome-extra/gucharmap-3:2.90[introspection] )
79 + git? ( >=dev-libs/libgit2-glib-0.0.6[python] )
80 + terminal? ( >=x11-libs/vte-0.52:2.91[introspection] )
81 +" # vte-0.52+ for feed_child API compatibility
82 +DEPEND="${RDEPEND}"
83 +BDEPEND="
84 + dev-libs/libxml2
85 + dev-util/itstool
86 + >=sys-devel/gettext-0.19.8
87 + virtual/pkgconfig
88 + vala? ( $(vala_depend) )
89 +"
90 +
91 +pkg_setup() {
92 + use python && python-single-r1_pkg_setup
93 +}
94 +
95 +src_prepare() {
96 + default
97 + use vala && vala_setup
98 + xdg_environment_reset
99 +}
100 +
101 +src_configure() {
102 + local emesonargs=(
103 + -Dplugin_bookmarks=true
104 + $(meson_use python plugin_bracketcompletion)
105 + $(meson_use charmap plugin_charmap)
106 + $(meson_use python plugin_codecomment)
107 + $(meson_use python plugin_colorpicker)
108 + $(meson_use python plugin_colorschemer)
109 + $(meson_use python plugin_commander)
110 + -Dplugin_drawspaces=true
111 + $(meson_use vala plugin_findinfiles)
112 + $(meson_use git plugin_git)
113 + $(meson_use python plugin_joinlines)
114 + $(meson_use python plugin_multiedit)
115 + $(meson_use python plugin_sessionsaver)
116 + $(meson_use python plugin_smartspaces)
117 + $(meson_use python plugin_synctex)
118 + $(meson_use terminal plugin_terminal)
119 + $(meson_use python plugin_textsize)
120 + $(meson_use python plugin_translate)
121 + -Dplugin_wordcompletion=true
122 + )
123 + meson_src_configure
124 +}
125 +
126 +src_install() {
127 + meson_src_install
128 + use python && python_optimize "${ED}/usr/$(get_libdir)/gedit/plugins/"
129 +}
130 +
131 +pkg_postinst() {
132 + xdg_pkg_postinst
133 + gnome2_schemas_update
134 +}
135 +
136 +pkg_postrm() {
137 + xdg_pkg_postrm
138 + gnome2_schemas_update
139 +}