1 |
commit: a40d9668bbea21b31a4e33ac9135dd68e8a6e88e |
2 |
Author: Alexandre Rostovtsev <tetromino <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon May 30 03:10:16 2011 +0000 |
4 |
Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 2 14:07:46 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=a40d9668 |
7 |
|
8 |
New package: app-editors/gedit-plugins-3.0.3 |
9 |
|
10 |
Add GNOME3 version of gedit-plugins (gedit-plugins-2.x are incompatible |
11 |
with gedit-3). Simplify the USE flag structure considerably. Now, the |
12 |
behavior of the ebuild is as follows: |
13 |
* USE="-python" : build the non-python plugins listed as DEFAULT_PLUGINS in |
14 |
configure.ac |
15 |
* USE="python" : in addition, build python plugins that have no extra |
16 |
dependencies other than basic ones such as gedit[python,introspection]. |
17 |
* USE="foo": in addition, build plugin "foo" that pulls in some extra |
18 |
dependencies. |
19 |
This behavior is reasonable because gedit does not load any installed plugins |
20 |
until the user explicitly tells it to do so. |
21 |
|
22 |
Signed-off-by: Nirbheek Chauhan <nirbheek <AT> gentoo.org> |
23 |
|
24 |
--- |
25 |
.../gedit-plugins/gedit-plugins-3.0.3.ebuild | 97 ++++++++++++++++++++ |
26 |
1 files changed, 97 insertions(+), 0 deletions(-) |
27 |
|
28 |
diff --git a/app-editors/gedit-plugins/gedit-plugins-3.0.3.ebuild b/app-editors/gedit-plugins/gedit-plugins-3.0.3.ebuild |
29 |
new file mode 100644 |
30 |
index 0000000..5616373 |
31 |
--- /dev/null |
32 |
+++ b/app-editors/gedit-plugins/gedit-plugins-3.0.3.ebuild |
33 |
@@ -0,0 +1,97 @@ |
34 |
+# Copyright 1999-2011 Gentoo Foundation |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+# $Header: $ |
37 |
+ |
38 |
+EAPI="3" |
39 |
+GCONF_DEBUG="no" |
40 |
+GNOME2_LA_PUNT="yes" # plugins are dlopened |
41 |
+PYTHON_DEPEND="python? 2:2.6" |
42 |
+PYTHON_USE_WITH="xml" |
43 |
+PYTHON_USE_WITH_OPT="python" |
44 |
+ |
45 |
+inherit gnome2 multilib python eutils |
46 |
+ |
47 |
+DESCRIPTION="Offical plugins for gedit" |
48 |
+HOMEPAGE="http://live.gnome.org/GeditPlugins" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+KEYWORDS="~amd64 ~x86" |
52 |
+SLOT="0" |
53 |
+ |
54 |
+IUSE_plugins="charmap synctex terminal" |
55 |
+IUSE="+python ${IUSE_plugins}" |
56 |
+ |
57 |
+RDEPEND=">=app-editors/gedit-3.0.0[python?] |
58 |
+ >=dev-libs/glib-2.26.0:2 |
59 |
+ >=dev-libs/libpeas-0.7.3[gtk] |
60 |
+ >=x11-libs/gtk+-3.0.0:3 |
61 |
+ >=x11-libs/gtksourceview-3.0.0:3.0 |
62 |
+ python? ( |
63 |
+ >=app-editors/gedit-3.0.0[introspection] |
64 |
+ >=dev-libs/glib-2.26.0:2[introspection] |
65 |
+ >=x11-libs/gtk+-3.0.0:3[introspection] |
66 |
+ >=x11-libs/gtksourceview-3.0.0:3.0[introspection] |
67 |
+ x11-libs/pango[introspection] |
68 |
+ x11-libs/gdk-pixbuf:2[introspection] |
69 |
+ ) |
70 |
+ charmap? ( >=gnome-extra/gucharmap-3.0.0[introspection] ) |
71 |
+ synctex? ( >=dev-python/dbus-python-0.82 ) |
72 |
+ terminal? ( x11-libs/vte:2.90[introspection] )" |
73 |
+DEPEND="${RDEPEND} |
74 |
+ >=dev-util/intltool-0.40.0 |
75 |
+ dev-util/pkgconfig |
76 |
+ sys-devel/gettext" |
77 |
+ |
78 |
+pkg_setup() { |
79 |
+ # DEFAULT_PLUGINS from configure.ac |
80 |
+ local myplugins="bookmarks,drawspaces,wordcompletion,taglist" |
81 |
+ |
82 |
+ # python plugins with no extra dependencies beyond what USE=python brings |
83 |
+ use python && myplugins="${myplugins},bracketcompletion,codecomment,colorpicker,commander,joinlines,multiedit,textsize,sessionsaver,smartspaces" |
84 |
+ |
85 |
+ # python plugins with extra dependencies |
86 |
+ for plugin in ${IUSE_plugins/+}; do |
87 |
+ use ${plugin} || continue |
88 |
+ # FIXME: put in REQUIRED_USE when python.eclass supports EAPI4 |
89 |
+ if use python; then |
90 |
+ myplugins="${myplugins},${plugin}" |
91 |
+ else |
92 |
+ ewarn "Plugin '${plugin}' auto-disabled due to USE=-python" |
93 |
+ fi |
94 |
+ done |
95 |
+ |
96 |
+ DOCS="AUTHORS ChangeLog* NEWS README" |
97 |
+ |
98 |
+ G2CONF="${G2CONF} |
99 |
+ --disable-schemas-compile |
100 |
+ --disable-dependency-tracking |
101 |
+ --with-plugins=${myplugins} |
102 |
+ $(use_enable python)" |
103 |
+ |
104 |
+ python_set_active_version 2 |
105 |
+ python_pkg_setup |
106 |
+} |
107 |
+ |
108 |
+src_prepare() { |
109 |
+ gnome2_src_prepare |
110 |
+ |
111 |
+ # disable pyc compiling |
112 |
+ for d in . build-aux ; do |
113 |
+ ln -sfn $(type -P true) "${d}/py-compile" |
114 |
+ done |
115 |
+} |
116 |
+ |
117 |
+src_test() { |
118 |
+ emake check || die "make check failed" |
119 |
+} |
120 |
+ |
121 |
+pkg_postinst() { |
122 |
+ gnome2_pkg_postinst |
123 |
+ python_need_rebuild |
124 |
+ python_mod_optimize /usr/$(get_libdir)/gedit/plugins |
125 |
+} |
126 |
+ |
127 |
+pkg_postrm() { |
128 |
+ gnome2_pkg_postrm |
129 |
+ python_mod_cleanup /usr/$(get_libdir)/gedit/plugins |
130 |
+} |