debian/0000755000000000000000000000000012217654101007165 5ustar debian/install0000644000000000000000000000056212217405357010570 0ustar sourcecodebrowser.plugin usr/lib/gedit/plugins sourcecodebrowser/*.py usr/lib/gedit/plugins/sourcecodebrowser sourcecodebrowser/data/icons usr/share/gedit/plugins/sourcecodebrowser sourcecodebrowser/data/configure_dialog.ui usr/share/gedit/plugins/sourcecodebrowser sourcecodebrowser/data/org.gnome.gedit.plugins.sourcecodebrowser.gschema.xml usr/share/glib-2.0/schemas debian/rules0000755000000000000000000000021312217405357010250 0ustar #!/usr/bin/make -f # -*- makefile -*- %: dh $@ --with python2 override_dh_python2: dh_python2 /usr/lib/gedit/plugins/sourcecodebrowser debian/compat0000644000000000000000000000000212217405250010362 0ustar 7 debian/copyright0000644000000000000000000000421212217650270011122 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-name: gedit-source-code-browser Upstream-Contact: Micah Carrick Source: https://github.com/Quixotix/gedit-source-code-browser Files: * Copyright: © 2011 Micah Carrick License: BSD-3-clause Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . - Neither the name of Micah Carrick nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: © 2012 Pietro Battiston License: GPL-3 This package 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, version 3. . On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/GPL-3'. debian/control0000644000000000000000000000166312217654043010603 0ustar Source: gedit-source-code-browser-plugin Section: gnome Priority: optional Maintainer: Pietro Battiston Build-Depends: debhelper (>= 7.0.50), python (>= 2.6.6-3) Standards-Version: 3.9.4 Homepage: https://github.com/Quixotix/gedit-source-code-browser Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/gedit-source-code-browser.git Vcs-Git: git://anonscm.debian.org/collab-maint/gedit-source-code-browser.git Package: gedit-source-code-browser-plugin Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, ctags, gedit (>= 3.8) Breaks: ${python:Breaks} Enhances: gedit Description: source code class and function browser plugin for Gedit This plugin will add a new tab to the side pane in the Gedit text editor which shows symbols (functions, classes, variables, etc.) for the active document. Clicking a symbol in the list will jump to the line on which that symbol is defined. debian/watch0000644000000000000000000000022012217630422010210 0ustar version=3 https://github.com/Quixotix/gedit-source-code-browser/tags /Quixotix/gedit-source-code-browser/archive/v([0-9]\.[0-9]\.[0-9]).tar.gz debian/patches/0000755000000000000000000000000012217407452010621 5ustar debian/patches/0001-Retrieve-data-in-the-right-folder.patch0000644000000000000000000000205112217406417020460 0ustar From: Pietro Battiston Date: Wed, 4 Jan 2012 23:53:37 +0100 Subject: Retrieve data in the right folder The plugin originally assumes it is ran with all files (except for the gconf schema) in the user's ~/.local/share/gedit/plugins/sourcecodebrowser folder. This patch tells it to search for data files in /usr/share. Author: Pietro Battiston Forwarded: yes --- sourcecodebrowser/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sourcecodebrowser/plugin.py b/sourcecodebrowser/plugin.py index 19123fc..65446cb 100644 --- a/sourcecodebrowser/plugin.py +++ b/sourcecodebrowser/plugin.py @@ -8,7 +8,7 @@ from gi.repository import GObject, GdkPixbuf, Gedit, Gtk, PeasGtk, Gio logging.basicConfig() LOG_LEVEL = logging.WARN SETTINGS_SCHEMA = "org.gnome.gedit.plugins.sourcecodebrowser" -DATA_DIR = os.path.join(os.path.dirname(__file__), 'data') +DATA_DIR = "/usr/share/gedit/plugins/sourcecodebrowser" ICON_DIR = os.path.join(DATA_DIR, 'icons', '16x16') class SourceTree(Gtk.VBox): debian/patches/series0000644000000000000000000000012312217407452012032 0ustar 0001-Retrieve-data-in-the-right-folder.patch 0002-Port-to-Python-3-Gedit-3.8.patch debian/patches/0002-Port-to-Python-3-Gedit-3.8.patch0000644000000000000000000000367212217407452016554 0ustar From: Simon Sapin Date: Mon, 22 Apr 2013 13:57:12 +0200 Subject: Port to Python 3 / Gedit 3.8 --- sourcecodebrowser.plugin | 2 +- sourcecodebrowser/__init__.py | 5 ++--- sourcecodebrowser/ctags.py | 4 ++-- sourcecodebrowser/plugin.py | 2 +- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/sourcecodebrowser.plugin b/sourcecodebrowser.plugin index c929aca..f3945c1 100644 --- a/sourcecodebrowser.plugin +++ b/sourcecodebrowser.plugin @@ -1,5 +1,5 @@ [Plugin] -Loader=python +Loader=python3 Module=sourcecodebrowser IAge=3 Name=Source Code Browser diff --git a/sourcecodebrowser/__init__.py b/sourcecodebrowser/__init__.py index b302f1f..db939c2 100644 --- a/sourcecodebrowser/__init__.py +++ b/sourcecodebrowser/__init__.py @@ -1,3 +1,2 @@ -import plugin -from plugin import SourceCodeBrowserPlugin - +from . import plugin +from .plugin import SourceCodeBrowserPlugin diff --git a/sourcecodebrowser/ctags.py b/sourcecodebrowser/ctags.py index 7e978c6..a581f6a 100644 --- a/sourcecodebrowser/ctags.py +++ b/sourcecodebrowser/ctags.py @@ -88,8 +88,8 @@ class Parser(object): #args = [arg.replace('%20', ' ') for arg in shlex.split(command)] args = shlex.split(command) p = subprocess.Popen(args, 0, shell=False, stdout=subprocess.PIPE, executable=executable) - symbols = self._parse_text(p.communicate()[0]) - + symbols = self._parse_text(p.communicate()[0].decode('utf8')) + def _parse_text(self, text): """ Parses ctags text which may have come from a TAG file or from raw output diff --git a/sourcecodebrowser/plugin.py b/sourcecodebrowser/plugin.py index 65446cb..eaadce5 100644 --- a/sourcecodebrowser/plugin.py +++ b/sourcecodebrowser/plugin.py @@ -2,7 +2,7 @@ import os import sys import logging import tempfile -import ctags +from . import ctags from gi.repository import GObject, GdkPixbuf, Gedit, Gtk, PeasGtk, Gio logging.basicConfig() debian/source/0000755000000000000000000000000012217405250010464 5ustar debian/source/format0000644000000000000000000000001412217405250011672 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000143312217651132011041 0ustar gedit-source-code-browser-plugin (3.0.3-3) unstable; urgency=low * Trivial formatting changes to patch * Port to Python 3 - thanks Simon Sapin (Closes: #721433) * Updated control file (standards version and Vcs-* fields) * Updated watch file * Updated debian/copyright -- Pietro Battiston Sat, 21 Sep 2013 23:20:02 +0200 gedit-source-code-browser-plugin (3.0.3-2) unstable; urgency=low * Add "Enhances: gedit" (Closes: #685293) * Fixed typo ("wil") in long description (Closes: #688334) -- Pietro Battiston Wed, 26 Sep 2012 09:32:11 +0200 gedit-source-code-browser-plugin (3.0.3-1) unstable; urgency=low * Initial release. (Closes: #654685) -- Pietro Battiston Tue, 03 Jan 2012 17:23:51 +0100