[gedit-plugins/wip/rpm-plugin] Add RPM ChangeLog plugin
- From: Igor Gnatenko <ignatenko src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-plugins/wip/rpm-plugin] Add RPM ChangeLog plugin
- Date: Sun, 6 Jul 2014 21:48:47 +0000 (UTC)
commit 39263d67544679c454f9c4cbec60e75893d4698f
Author: Igor Gnatenko <i gnatenko brain gmail com>
Date: Mon Jul 7 01:48:29 2014 +0400
Add RPM ChangeLog plugin
Signed-off-by: Igor Gnatenko <i gnatenko brain gmail com>
configure.ac | 3 +-
plugins/Makefile.am | 1 +
plugins/rpmchangelog/Makefile.am | 13 +++++++++++
.../gedit-rpmchangelog.metainfo.xml.in | 13 +++++++++++
...me.gedit.plugins.rpmchangelog.gschema.xml.in.in | 9 ++++++++
.../rpmchangelog/rpmchangelog.plugin.desktop.in.in | 10 +++++++++
plugins/rpmchangelog/rpmchangelog/__init__.py | 22 ++++++++++++++++++++
po/POTFILES.in | 3 ++
8 files changed, 73 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c417727..a9cba69 100644
--- a/configure.ac
+++ b/configure.ac
@@ -90,7 +90,7 @@ AC_ARG_ENABLE([verify-all],
C_PLUGINS="bookmarks drawspaces wordcompletion"
# Python plugins that don't need special dependencies, besides python
-PY_PLUGINS="bracketcompletion charmap codecomment colorpicker colorschemer commander dashboard joinlines
multiedit smartspaces textsize"
+PY_PLUGINS="bracketcompletion charmap codecomment colorpicker colorschemer commander dashboard joinlines
multiedit rpmchangelog smartspaces textsize"
PLUGINS="$C_PLUGINS"
disabled_plugins=""
@@ -244,6 +244,7 @@ plugins/drawspaces/org.gnome.gedit.plugins.drawspaces.gschema.xml.in
plugins/git/git.plugin.desktop.in
plugins/joinlines/joinlines.plugin.desktop.in
plugins/multiedit/multiedit.plugin.desktop.in
+plugins/rpmchangelog/rpmchangelog.plugin.desktop.in
plugins/smartspaces/smartspaces.plugin.desktop.in
plugins/synctex/synctex.plugin.desktop.in
plugins/terminal/org.gnome.gedit.plugins.terminal.gschema.xml.in
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index 2a1da64..e5f77ca 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -25,6 +25,7 @@ include plugins/drawspaces/Makefile.am
include plugins/git/Makefile.am
include plugins/joinlines/Makefile.am
include plugins/multiedit/Makefile.am
+include plugins/rpmchangelog/Makefile.am
include plugins/smartspaces/Makefile.am
include plugins/synctex/Makefile.am
include plugins/terminal/Makefile.am
diff --git a/plugins/rpmchangelog/Makefile.am b/plugins/rpmchangelog/Makefile.am
new file mode 100644
index 0000000..9ed3bbb
--- /dev/null
+++ b/plugins/rpmchangelog/Makefile.am
@@ -0,0 +1,13 @@
+if ENABLE_PYTHON
+plugins_rpmchangelogdir = $(plugindir)/rpmchangelog
+plugins_rpmchangelog_PYTHON = \
+ plugins/rpmchangelog/rpmchangelog/__init__.py
+
+plugin_in_files += plugins/rpmchangelog/rpmchangelog.plugin.desktop.in
+appstream_in_files += plugins/rpmchangelog/gedit-rpmchangelog.metainfo.xml.in
+gsettings_SCHEMAS += plugins/rpmchangelog/org.gnome.gedit.plugins.rpmchangelog.gschema.xml
+else
+dist_plugin_in_files += plugins/rpmchangelog/rpmchangelog.plugin.desktop.in
+dist_appstream_in_files += plugins/rpmchangelog/gedit-rpmchangelog.metainfo.xml.in
+dist_gsettings_SCHEMAS += plugins/rpmchangelog/org.gnome.gedit.plugins.rpmchangelog.gschema.xml
+endif
diff --git a/plugins/rpmchangelog/gedit-rpmchangelog.metainfo.xml.in
b/plugins/rpmchangelog/gedit-rpmchangelog.metainfo.xml.in
new file mode 100644
index 0000000..08c9bc9
--- /dev/null
+++ b/plugins/rpmchangelog/gedit-rpmchangelog.metainfo.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Igor Gnatenko <ignatenko gnome org> -->
+<component type="addon">
+ <id>gedit-rpmchangelog</id>
+ <extends>gedit.desktop</extends>
+ <_name>RPM ChangeLog</_name>
+ <_summary>Add RPM ChangeLog entry</_summary>
+ <url type="homepage">https://wiki.gnome.org/Apps/Gedit/ShippedPlugins</url>
+ <url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=gedit&component=Plugins</url>
+ <metadata_license>CC0-1.0</metadata_license>
+ <project_license>GPL-2.0+</project_license>
+ <updatecontact>ignatenko gnome org</updatecontact>
+</component>
diff --git a/plugins/rpmchangelog/org.gnome.gedit.plugins.rpmchangelog.gschema.xml.in.in
b/plugins/rpmchangelog/org.gnome.gedit.plugins.rpmchangelog.gschema.xml.in.in
new file mode 100644
index 0000000..d7df485
--- /dev/null
+++ b/plugins/rpmchangelog/org.gnome.gedit.plugins.rpmchangelog.gschema.xml.in.in
@@ -0,0 +1,9 @@
+<schemalist>
+ <schema gettext-domain="@GETTEXT_PACKAGE@" id="org.gnome.gedit.plugins.rpmchangelog"
path="/org/gnome/gedit/plugins/rpmchangelog/">
+ <key name="hotkey" type="as">
+ <default>["Control+backslash"]</default>
+ <_summary>Hotkey</_summary>
+ <_description>Hotkey for adding new RPM ChangeLog entry.</_description>
+ </key>
+ </schema>
+</schemalist>
diff --git a/plugins/rpmchangelog/rpmchangelog.plugin.desktop.in.in
b/plugins/rpmchangelog/rpmchangelog.plugin.desktop.in.in
new file mode 100644
index 0000000..1e9e8ad
--- /dev/null
+++ b/plugins/rpmchangelog/rpmchangelog.plugin.desktop.in.in
@@ -0,0 +1,10 @@
+[Plugin]
+Loader=python3
+Module=rpmchangelog
+IAge=3
+_Name=RPM ChangeLog
+_Description=Add RPM ChangeLog entry
+Authors=Igor Gnatenko <ignatenko gnome org>
+Copyright=Copyright © 2014 Igor Gnatenko
+Website=http://www.gedit.org
+Version= VERSION@
diff --git a/plugins/rpmchangelog/rpmchangelog/__init__.py b/plugins/rpmchangelog/rpmchangelog/__init__.py
new file mode 100644
index 0000000..c570d01
--- /dev/null
+++ b/plugins/rpmchangelog/rpmchangelog/__init__.py
@@ -0,0 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# rpmchangelog.py - RPM ChangeLog
+#
+# Copyright (C) 2014 Igor Gnatenko
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor,
+# Boston, MA 02110-1301, USA.
+
+# ex:ts=4:et:
diff --git a/po/POTFILES.in b/po/POTFILES.in
index c47c692..10ec227 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -40,6 +40,9 @@ plugins/multiedit/multiedit.plugin.desktop.in.in
plugins/multiedit/gedit-multiedit.metainfo.xml.in
plugins/multiedit/multiedit/viewactivatable.py
plugins/multiedit/multiedit/windowactivatable.py
+plugins/rpmchangelog/org.gnome.gedit.plugins.rpmchangelog.gschema.xml.in.in
+plugins/rpmchangelog/rpmchangelog.plugin.desktop.in.in
+plugins/rpmchangelog/gedit-rpmchangelog.metainfo.xml.in
plugins/smartspaces/smartspaces.plugin.desktop.in.in
plugins/smartspaces/gedit-smartspaces.metainfo.xml.in
plugins/synctex/synctex.plugin.desktop.in.in
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]