Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/gedit-plugins/
Date: Sun, 22 Dec 2019 20:47:26
Message-Id: 1577047607.d7ce764de9b1825c24b6e064a4f94a0348de24b6.leio@gentoo
1 commit: d7ce764de9b1825c24b6e064a4f94a0348de24b6
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 22 20:31:43 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 22 20:46:47 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7ce764d
7
8 app-editors/gedit-plugins: tiny dep fix, python_gen_cond_dep
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.12
11 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
12
13 .../gedit-plugins/gedit-plugins-3.32.2-r1.ebuild | 95 ++++++++++++++++++++++
14 1 file changed, 95 insertions(+)
15
16 diff --git a/app-editors/gedit-plugins/gedit-plugins-3.32.2-r1.ebuild b/app-editors/gedit-plugins/gedit-plugins-3.32.2-r1.ebuild
17 new file mode 100644
18 index 00000000000..16e5dd757e2
19 --- /dev/null
20 +++ b/app-editors/gedit-plugins/gedit-plugins-3.32.2-r1.ebuild
21 @@ -0,0 +1,95 @@
22 +# Copyright 1999-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI="6"
26 +GNOME2_LA_PUNT="yes" # plugins are dlopened
27 +PYTHON_COMPAT=( python3_{5,6,7,8} )
28 +PYTHON_REQ_USE="xml"
29 +VALA_MIN_API_VERSION="0.28"
30 +
31 +inherit eutils gnome2 multilib python-single-r1 vala
32 +
33 +DESCRIPTION="Official plugins for gedit"
34 +HOMEPAGE="https://wiki.gnome.org/Apps/Gedit/ShippedPlugins"
35 +
36 +LICENSE="GPL-2+"
37 +KEYWORDS="~amd64 ~x86"
38 +SLOT="0"
39 +
40 +IUSE_plugins="charmap git terminal vala"
41 +IUSE="+python ${IUSE_plugins}"
42 +# python-single-r1 would request disabling PYTHON_TARGETS on libpeas
43 +REQUIRED_USE="
44 + charmap? ( python )
45 + git? ( python )
46 + python? ( ${PYTHON_REQUIRED_USE} )
47 + terminal? ( python )
48 +"
49 +
50 +RDEPEND="
51 + >=app-editors/gedit-3.16
52 + >=dev-libs/glib-2.32:2
53 + >=dev-libs/libpeas-1.7.0[gtk]
54 + >=x11-libs/gtk+-3.9:3
55 + >=x11-libs/gtksourceview-4.0.2:4
56 + python? (
57 + ${PYTHON_DEPS}
58 + $(python_gen_cond_dep '
59 + >=app-editors/gedit-3.16[introspection,python,${PYTHON_SINGLE_USEDEP}]
60 + dev-libs/libpeas[python,${PYTHON_SINGLE_USEDEP}]
61 + >=dev-python/dbus-python-0.82[${PYTHON_MULTI_USEDEP}]
62 + dev-python/pycairo[${PYTHON_MULTI_USEDEP}]
63 + dev-python/pygobject:3[cairo,${PYTHON_MULTI_USEDEP}]
64 + ')
65 + >=x11-libs/gtk+-3.9:3[introspection]
66 + >=x11-libs/gtksourceview-4.0.2:4[introspection]
67 + x11-libs/pango[introspection]
68 + x11-libs/gdk-pixbuf:2[introspection]
69 + )
70 + charmap? ( >=gnome-extra/gucharmap-3:2.90[introspection] )
71 + git? ( >=dev-libs/libgit2-glib-0.0.6 )
72 + terminal? ( >=x11-libs/vte-0.52:2.91[introspection] )
73 + vala? ( $(vala_depend) )
74 +" # vte-0.52+ for feed_child API compatibility
75 +DEPEND="${RDEPEND}
76 + dev-util/itstool
77 + >=sys-devel/gettext-0.19.8
78 + virtual/pkgconfig
79 +"
80 +
81 +pkg_setup() {
82 + use python && [[ ${MERGE_TYPE} != binary ]] && python-single-r1_pkg_setup
83 +}
84 +
85 +src_prepare() {
86 + use vala && vala_src_prepare
87 + gnome2_src_prepare
88 +}
89 +
90 +src_configure() {
91 + gnome2_src_configure \
92 + $(use_enable python) \
93 + $(use_enable vala)
94 +}
95 +
96 +src_install() {
97 + gnome2_src_install
98 +
99 + # FIXME: crazy !!!
100 + if use python; then
101 + find "${ED}"/usr/share/gedit -name "*.py*" -delete || die
102 + find "${ED}"/usr/share/gedit -type d -empty -delete || die
103 + fi
104 +
105 + # FIXME: upstream made this automagic...
106 + clean_plugin charmap
107 + clean_plugin git
108 + clean_plugin terminal
109 +}
110 +
111 +clean_plugin() {
112 + if use !${1} ; then
113 + rm -rf "${ED}"/usr/share/gedit/plugins/${1}*
114 + rm -rf "${ED}"/usr/$(get_libdir)/gedit/plugins/${1}*
115 + fi
116 +}