Commit 3ed19ac7 authored by Sergei Golovan's avatar Sergei Golovan

Add debian/watch, require tcl8.6, update standards, suggest Tk in a few...

Add debian/watch, require tcl8.6, update standards, suggest Tk in a few scripts, add VCS headers, change upstream homepage.
parent e694b5d6
expect (5.45.4-2) UNRELEASED; urgency=medium
* NOT RELEASED YET
-- Sergei Golovan <sgolovan@debian.org> Sun, 04 Feb 2018 17:44:53 +0300
expect (5.45.4-2) unstable; urgency=medium
* Move the tcl8.6 package to strict dependencies of expect, since all
supplied scripts use tclsh8.6 and not expect as a shell (closes: #882443).
* Add a code that instructs users to install tk8.6 to scripts which
require Tk.
* Replace the get-orig-source target in debian/rules by debian/watch and
use uscan to retrieve the latest source tarball.
* Change the upstream homepage to https://core.tcl.tk/expect/.
* Add the VCS headers.
* Bump standards version to 4.1.4.
-- Sergei Golovan <sgolovan@debian.org> Thu, 19 Apr 2018 16:54:34 +0300
expect (5.45.4-1) unstable; urgency=medium
......
......@@ -4,16 +4,17 @@ Priority: optional
Maintainer: Sergei Golovan <sgolovan@debian.org>
Build-Depends: debhelper (>= 10.0.0), dpkg-dev (>= 1.16.1~), autoconf, tcl8.6-dev
Build-Conflicts: autoconf2.13
Standards-Version: 4.1.3
Homepage: http://sourceforge.net/projects/expect/
Standards-Version: 4.1.4
Homepage: https://core.tcl.tk/expect/
Vcs-Browser: https://salsa.debian.org/tcltk-team/expect
Vcs-Git: https://salsa.debian.org/tcltk-team/expect.git
Package: expect
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Depends: tcl8.6, ${misc:Depends}, ${shlibs:Depends}
Conflicts: expect-dev
Provides: expect-dev
Replaces: expect-dev
Recommends: tcl8.6
Suggests: tk8.6
Multi-Arch: foreign
Description: Automates interactive applications
......
--- a/example/tkpasswd
+++ b/example/tkpasswd
@@ -4,7 +4,10 @@
exec tclsh "$0" ${1+"$@"}
package require Expect
-package require Tk
+if {[catch {package require Tk}]} {
+ puts stderr "This script require Tk to run. You can install the tk8.6 package for that."
+ exit 1
+}
# tkpasswd - Change passwords using Expectk
# Author: Don Libes, NIST, October 1, 1993
--- a/example/multixterm
+++ b/example/multixterm
@@ -312,7 +312,10 @@
set versionDate "2004/06/29"
package require Tcl
-catch {package require Tk} ;# early versions of Tk had no package
+if {[catch {package require Tk}]} {
+ puts stderr "This script require Tk to run. You can install the tk8.6 package for that."
+ exit 1
+}
package require Expect
proc exit1 {msg} {
--- a/example/tknewsbiff
+++ b/example/tknewsbiff
@@ -4,7 +4,10 @@
exec tclsh "$0" ${1+"$@"}
package require Expect
-package require Tk
+if {[catch {package require Tk}]} {
+ puts stderr "This script require Tk to run. You can install the tk8.6 package for that."
+ exit 1
+}
# Name: tknewsbiff
# Author: Don Libes
--- a/example/xpstat
+++ b/example/xpstat
@@ -4,6 +4,10 @@
exec tclsh "$0" ${1+"$@"}
package require Expect
+if {[catch {package require Tk}]} {
+ puts stderr "This script require Tk to run. You can install the tk8.6 package for that."
+ exit 1
+}
# This script acts as a front-end for xpilot. Run it in the background,
......@@ -13,3 +13,4 @@
22-segfault-with-stubs.patch
24-format.patch
28-cross.patch
29-suggest-tk.patch
......@@ -80,9 +80,5 @@ override_dh_link: $(LINKS)
override_dh_install:
dh_install --fail-missing
get-orig-source:
wget -O expect_$(vv).orig.tar.gz \
http://prdownloads.sourceforge.net/expect/expect$(vv).tar.gz
.PHONY: override_dh_auto_clean override_dh_auto_configure override_dh_auto_build \
override_dh_auto_install override_dh_install get-orig-source
override_dh_auto_install override_dh_install
version=3
http://sf.net/expect/expect-?([\d.]*)\.tar\.gz
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment