[tkhtml3] 01/03: Provide virtual package www-browser. Closes: #782666

Ole Streicher olebole at moszumanska.debian.org
Wed Apr 15 21:03:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

olebole pushed a commit to branch debian
in repository tkhtml3.

commit ff30167628fc82d951d7304ec8f3388284e36ba1
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Wed Apr 15 22:29:16 2015 +0200

    Provide virtual package www-browser. Closes: #782666
---
 debian/changelog |  1 +
 debian/control   |  5 +++--
 debian/postinst  | 13 +++++++++++++
 debian/prerm     |  8 ++++++++
 4 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 85598c0..332ecde 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ tk-html3 (3.0~fossil20110109-5) UNRELEASED; urgency=low
   * Update maintainers e-mail address
   * Update standards version to 3.9.6. No changes needed.
   * Remove build date from manpages for reproducibility
+  * Provide virtual package www-browser. Closes: #782666
 
  -- Ole Streicher <olebole at debian.org>  Thu, 25 Sep 2014 12:21:33 +0200
 
diff --git a/debian/control b/debian/control
index cdd9f40..10196aa 100644
--- a/debian/control
+++ b/debian/control
@@ -11,7 +11,7 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/tkhtml3
 Package: tk-html3
 Architecture: any
 Depends: ${misc:Depends}, ${shlibs:Depends}, ${tk:Depends}
-Description: Render HTML and CSS content with tk
+Description: Render HTML and CSS content with Tk
  Tkhtml3 is a Tk widget that displays content formatted according to
  the HTML and CSS standards. Tkhtml3 is not an end-user application, it
  is for Tcl programmers who wish to embed a standards-compliant
@@ -24,9 +24,10 @@ Section: web
 Architecture: all
 Depends: libsqlite3-tcl, tcllib, tk-html3, ${misc:Depends}, ${tk:Depends}
 Recommends: libtk-img, tcl-tls
+Provides: www-browser
 Description: Lightweight web browser
  Hv3 is a cross-platform web browser with support for modern web
  standards like HTML, CSS, HTTP.
  .
  ECMAScript (a.k.a. javascript) is not supported since the corresponding
- library (SEE) is installed (not available in Debian yet).
+ library (SEE) is not available in Debian yet.
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..1d929d1
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = configure ]; then
+  update-alternatives --install /usr/bin/x-www-browser x-www-browser /usr/bin/hv3 10
+fi
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 0000000..e979c1d
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+if [ "$1" = "remove" ]; then
+	update-alternatives --remove x-www-browser /usr/bin/hv3
+fi
+
+#DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/tkhtml3.git



More information about the debian-science-commits mailing list