[Pkg-octave-commit] r2461 - in octave-help-browser/trunk/debian: . patches

Rafael Laboissiere rafael at alioth.debian.org
Tue Nov 25 11:39:33 UTC 2008


Author: rafael
Date: 2008-11-25 11:39:33 +0000 (Tue, 25 Nov 2008)
New Revision: 2461

Added:
   octave-help-browser/trunk/debian/changelog
   octave-help-browser/trunk/debian/clean
   octave-help-browser/trunk/debian/compat
   octave-help-browser/trunk/debian/control
   octave-help-browser/trunk/debian/copyright
   octave-help-browser/trunk/debian/install.in
   octave-help-browser/trunk/debian/patches/
   octave-help-browser/trunk/debian/patches/dir-sep-str.diff
   octave-help-browser/trunk/debian/patches/help-path.diff
   octave-help-browser/trunk/debian/patches/mlock-arg.diff
   octave-help-browser/trunk/debian/patches/series
   octave-help-browser/trunk/debian/rules
   octave-help-browser/trunk/debian/watch
Log:
Initial commit

Added: octave-help-browser/trunk/debian/changelog
===================================================================
--- octave-help-browser/trunk/debian/changelog	                        (rev 0)
+++ octave-help-browser/trunk/debian/changelog	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1,5 @@
+octave-help-browser (0-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Rafael Laboissiere <rafael at debian.org>  Sun, 23 Nov 2008 20:59:29 +0100

Added: octave-help-browser/trunk/debian/clean
===================================================================
--- octave-help-browser/trunk/debian/clean	                        (rev 0)
+++ octave-help-browser/trunk/debian/clean	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1 @@
+*.oct *.o debian/install

Added: octave-help-browser/trunk/debian/compat
===================================================================
--- octave-help-browser/trunk/debian/compat	                        (rev 0)
+++ octave-help-browser/trunk/debian/compat	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1 @@
+7

Added: octave-help-browser/trunk/debian/control
===================================================================
--- octave-help-browser/trunk/debian/control	                        (rev 0)
+++ octave-help-browser/trunk/debian/control	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1,16 @@
+Source: octave-help-browser
+Section: math
+Priority: extra
+Maintainer: Rafael Laboissiere <rafael at debian.org>
+Build-Depends: debhelper (>= 7), cdbs, quilt, octave3.0-headers,
+ libgtkmm-2.4-dev, libwebkit-dev
+Standards-Version: 3.8.0
+Homepage: http://hauberg.org/wiki/doku.php?id=help_browser
+
+Package: octave-help-browser
+Architecture: any
+Depends: octave3.0 (>= 3.0.1-6lenny1), ${shlibs:Depends}
+Description: graphical documentation browser for GNU Octave
+ This package provides a graphical documentation browser for GNU
+ Octave, a numerical computation software.  HTML files for the core
+ functions of Octave are included.

Added: octave-help-browser/trunk/debian/copyright
===================================================================
--- octave-help-browser/trunk/debian/copyright	                        (rev 0)
+++ octave-help-browser/trunk/debian/copyright	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1,32 @@
+This package was debianized by Rafael Laboissiere <rafael at debian.org> on
+Sun, 23 Nov 2008 20:59:29 +0100.
+
+It was downloaded from http://hauberg.org/wiki/doku.php?id=help_browser
+
+Upstream Author:
+
+    Søren Hauberg <soren at hauberg.org>
+
+Copyright:
+
+    Copyright (C) 2008 Soren Hauberg
+
+License:
+
+    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 3 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, see <http://www.gnu.org/licenses/>.
+
+The Debian packaging is (C) 2008, Rafael Laboissiere <rafael at debian.org> and
+is licensed under the GPL, version 3 or later, see
+`/usr/share/common-licenses/GPL-3'.
+

Added: octave-help-browser/trunk/debian/install.in
===================================================================
--- octave-help-browser/trunk/debian/install.in	                        (rev 0)
+++ octave-help-browser/trunk/debian/install.in	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1,2 @@
+start_page.html blue_help_logo2.png doclogo.svg doc.css core_html usr/share/octave/help-browser
+*.oct PKG_ADD @OCTDIR@

Added: octave-help-browser/trunk/debian/patches/dir-sep-str.diff
===================================================================
--- octave-help-browser/trunk/debian/patches/dir-sep-str.diff	                        (rev 0)
+++ octave-help-browser/trunk/debian/patches/dir-sep-str.diff	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1,20 @@
+--- a/help_browser.cc
++++ b/help_browser.cc
+@@ -23,7 +23,7 @@
+ #include <webkit/webkit.h>
+ 
+ static std::list<std::string> doc_path;
+-const static std::string overview_subdir = "overview" + file_ops::dir_sep_str ();
++const static std::string overview_subdir = "overview" + file_ops::dir_sep_str;
+ const static std::string start_page = "/home/sh/Dokumenter/octave/help_browser/start_page.html";
+ 
+ static std::string doc;
+@@ -260,7 +260,7 @@
+     {
+       p = file_ops::canonicalize_file_name (p);
+       if (!file_ops::is_dir_sep (p [p.size ()-1]))
+-        p += file_ops::dir_sep_str ();
++        p += file_ops::dir_sep_str;
+       
+       const std::string po = p + overview_subdir;
+ 

Added: octave-help-browser/trunk/debian/patches/help-path.diff
===================================================================
--- octave-help-browser/trunk/debian/patches/help-path.diff	                        (rev 0)
+++ octave-help-browser/trunk/debian/patches/help-path.diff	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1,28 @@
+--- a/help_browser.cc
++++ b/help_browser.cc
+@@ -24,7 +24,8 @@
+ 
+ static std::list<std::string> doc_path;
+ const static std::string overview_subdir = "overview" + file_ops::dir_sep_str;
+-const static std::string start_page = "/home/sh/Dokumenter/octave/help_browser/start_page.html";
++const static std::string start_dir = "/usr/share/octave/help-browser/";
++const static std::string start_page = start_dir + "start_page.html";
+ 
+ static std::string doc;
+ 
+@@ -408,7 +409,7 @@
+       // Setup window
+       set_default_size (700, 500); // FIXME: What's a good size?
+       set_title ("GNU Octave Documentation");
+-      set_icon_from_file ("doclogo.svg");
++      set_icon_from_file (start_dir + "doclogo.svg");
+       
+       // Setup and add paned window
+       paned.set_position (200); // FIXME: Can we determine a good value programmatically?
+--- a/PKG_ADD
++++ b/PKG_ADD
+@@ -1,3 +1,4 @@
+ autoload ("__help_browser_add_path__", "help_browser.oct");
+ mark_as_command ("help_browser")
+ __init_gtk__
++__help_browser_add_path__ ("core", "/usr/share/octave/help-browser/core_html");

Added: octave-help-browser/trunk/debian/patches/mlock-arg.diff
===================================================================
--- octave-help-browser/trunk/debian/patches/mlock-arg.diff	                        (rev 0)
+++ octave-help-browser/trunk/debian/patches/mlock-arg.diff	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1,31 @@
+--- a/help_browser.cc
++++ b/help_browser.cc
+@@ -508,7 +508,7 @@
+ @seealso{help, doc}\n\
+ @end deftypefn\n")
+ {
+-  mlock ();
++  mlock ("help_browser");
+   
+   // Handle Input
+   octave_value_list retval;
+@@ -544,7 +544,7 @@
+ @deftypefn {Loadable Function} __help_browser_add_path__ (@var{note}, @var{path})\n\
+ @end deftypefn\n")
+ {
+-  mlock ();
++  mlock ("__help_browser_add_path__");
+   
+   // Handle Input
+   octave_value_list retval;
+--- a/__init_gtk__.cc
++++ b/__init_gtk__.cc
+@@ -69,7 +69,7 @@
+ @deftypefn {Loadable Function} __init_gtk__ (})\n\
+ @end deftypefn\n")
+ {
+-  mlock ();
++  mlock ("__init_gtk__");
+   start_gtk ();
+ 
+   return octave_value_list ();

Added: octave-help-browser/trunk/debian/patches/series
===================================================================
--- octave-help-browser/trunk/debian/patches/series	                        (rev 0)
+++ octave-help-browser/trunk/debian/patches/series	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1,3 @@
+dir-sep-str.diff
+mlock-arg.diff
+help-path.diff

Added: octave-help-browser/trunk/debian/rules
===================================================================
--- octave-help-browser/trunk/debian/rules	                        (rev 0)
+++ octave-help-browser/trunk/debian/rules	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1,27 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# debian/rules for the octave-help-browser package
+
+include /usr/share/cdbs/1/class/makefile.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+
+DEB_MAKE_INVOKE = $(MAKE)
+OCTDIR = $(shell octave-config -p LOCALOCTFILEDIR | sed s:/::)/help-browser
+
+configure/octave-help-browser:: debian/install
+%: %.in
+	sed s:@OCTDIR@:$(OCTDIR): < $< > $@
+
+UPSTREAM_URL = http://hauberg.org/wiki/lib/exe/fetch.php?cache=cache&media=
+PACKAGE = $(shell dpkg-parsechangelog | sed -ne 's/^Source: \(.*\)/\1/p')
+VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p')
+
+get-orig-source:
+	wget '$(UPSTREAM_URL)help_browser.tar.gz' -O help_browser.tar.gz
+	wget '$(UPSTREAM_URL)core_html.tar.gz' -O core_html.tar.gz
+	tar xfz help_browser.tar.gz
+	tar xfz core_html.tar.gz -C help_browser
+	tar cfz $(PACKAGE)_$(VERSION).orig.tar.gz help_browser
+	rm -rf help_browser help_browser.tar.gz core_html.tar.gz
+


Property changes on: octave-help-browser/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: octave-help-browser/trunk/debian/watch
===================================================================
--- octave-help-browser/trunk/debian/watch	                        (rev 0)
+++ octave-help-browser/trunk/debian/watch	2008-11-25 11:39:33 UTC (rev 2461)
@@ -0,0 +1 @@
+# This package is not yet really released upstream




More information about the Pkg-octave-commit mailing list