Gentoo Archives: gentoo-commits

From: Remi Cardona <remi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-editors/gedit-plugins/
Date: Mon, 15 Oct 2018 22:03:01
Message-Id: 1539640968.750322ef3fa02b10739751ddadf25a866c416913.remi@gentoo
1 commit: 750322ef3fa02b10739751ddadf25a866c416913
2 Author: Rémi Cardona <remi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Oct 15 21:57:25 2018 +0000
4 Commit: Remi Cardona <remi <AT> gentoo <DOT> org>
5 CommitDate: Mon Oct 15 22:02:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=750322ef
7
8 app-editors/gedit-plugins: bump to 3.28.1
9
10 Package-Manager: Portage-2.3.50, Repoman-2.3.11
11 Signed-off-by: Rémi Cardona <remi <AT> gentoo.org>
12
13 app-editors/gedit-plugins/Manifest | 1 +
14 .../gedit-plugins/gedit-plugins-3.28.1.ebuild | 94 ++++++++++++++++++++++
15 2 files changed, 95 insertions(+)
16
17 diff --git a/app-editors/gedit-plugins/Manifest b/app-editors/gedit-plugins/Manifest
18 index 50b61422959..c512f0cc575 100644
19 --- a/app-editors/gedit-plugins/Manifest
20 +++ b/app-editors/gedit-plugins/Manifest
21 @@ -1 +1,2 @@
22 DIST gedit-plugins-3.22.0.tar.xz 1314512 BLAKE2B 2910a101da94112b4190d96111013675234c109bfc37e05ff98d53e87e0a4db8e5a4a6823017153d65a9d554cfb95fed000d56d9e721faebfeeb033fc7be2901 SHA512 5560b48c0b21b535de7247c39653c111439f9cb138025d7e3a600b94babbe060777c2095160b7e5ea39b8ba8be520ea3966b0ffc2ec15d17ea0bf814bf58748d
23 +DIST gedit-plugins-3.28.1.tar.xz 1350468 BLAKE2B 4fd50ad7358581f5e27f0c3a7e127d4e2c0e7189c039daee1d8d7ddf7062846e1aebb634b3edd998c9a7c11840c71f56fe4eeca78ea2e91ae18db814e4fd79e5 SHA512 6258c627cd3fa2948375c30e87061375c0d09ce2c70301c2d10a403e6075d1df09e928a2d95b72f6d7950a31a720af645fff2f7f59a281d2999948beb56c1dc9
24
25 diff --git a/app-editors/gedit-plugins/gedit-plugins-3.28.1.ebuild b/app-editors/gedit-plugins/gedit-plugins-3.28.1.ebuild
26 new file mode 100644
27 index 00000000000..fc8347b9387
28 --- /dev/null
29 +++ b/app-editors/gedit-plugins/gedit-plugins-3.28.1.ebuild
30 @@ -0,0 +1,94 @@
31 +# Copyright 1999-2018 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="6"
35 +GNOME2_LA_PUNT="yes" # plugins are dlopened
36 +PYTHON_COMPAT=( python3_{4,5,6} )
37 +PYTHON_REQ_USE="xml"
38 +VALA_MIN_API_VERSION="0.28"
39 +
40 +inherit eutils gnome2 multilib python-single-r1 vala
41 +
42 +DESCRIPTION="Official plugins for gedit"
43 +HOMEPAGE="https://wiki.gnome.org/Apps/Gedit/ShippedPlugins"
44 +
45 +LICENSE="GPL-2+"
46 +KEYWORDS="~amd64 ~x86"
47 +SLOT="0"
48 +
49 +IUSE_plugins="charmap git terminal vala"
50 +IUSE="+python ${IUSE_plugins}"
51 +# python-single-r1 would request disabling PYTHON_TARGETS on libpeas
52 +REQUIRED_USE="
53 + charmap? ( python )
54 + git? ( python )
55 + python? ( ${PYTHON_REQUIRED_USE} )
56 + terminal? ( python )
57 +"
58 +
59 +RDEPEND="
60 + >=app-editors/gedit-3.16
61 + >=dev-libs/glib-2.32:2
62 + >=dev-libs/libpeas-1.7.0[gtk]
63 + >=x11-libs/gtk+-3.9:3
64 + >=x11-libs/gtksourceview-3.21.3:3.0
65 + python? (
66 + ${PYTHON_DEPS}
67 + >=app-editors/gedit-3.16[introspection,python,${PYTHON_USEDEP}]
68 + dev-libs/libpeas[python,${PYTHON_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 + >=x11-libs/gtk+-3.9:3[introspection]
73 + >=x11-libs/gtksourceview-3.14:3.0[introspection]
74 + x11-libs/pango[introspection]
75 + x11-libs/gdk-pixbuf:2[introspection]
76 + )
77 + charmap? ( >=gnome-extra/gucharmap-3:2.90[introspection] )
78 + git? ( >=dev-libs/libgit2-glib-0.0.6 )
79 + terminal? ( x11-libs/vte:2.91[introspection] )
80 + vala? ( $(vala_depend) )
81 +"
82 +DEPEND="${RDEPEND}
83 + app-text/yelp-tools
84 + >=dev-util/intltool-0.40.0
85 + >=sys-devel/gettext-0.17
86 + virtual/pkgconfig
87 +"
88 +
89 +pkg_setup() {
90 + use python && [[ ${MERGE_TYPE} != binary ]] && python-single-r1_pkg_setup
91 +}
92 +
93 +src_prepare() {
94 + use vala && vala_src_prepare
95 + gnome2_src_prepare
96 +}
97 +
98 +src_configure() {
99 + gnome2_src_configure \
100 + $(use_enable python) \
101 + $(use_enable vala)
102 +}
103 +
104 +src_install() {
105 + gnome2_src_install
106 +
107 + # FIXME: crazy !!!
108 + if use python; then
109 + find "${ED}"/usr/share/gedit -name "*.py*" -delete || die
110 + find "${ED}"/usr/share/gedit -type d -empty -delete || die
111 + fi
112 +
113 + # FIXME: upstream made this automagic...
114 + clean_plugin charmap
115 + clean_plugin git
116 + clean_plugin terminal
117 +}
118 +
119 +clean_plugin() {
120 + if use !${1} ; then
121 + rm -rf "${ED}"/usr/share/gedit/plugins/${1}*
122 + rm -rf "${ED}"/usr/$(get_libdir)/gedit/plugins/${1}*
123 + fi
124 +}