--- iwidgets4-4.0.1.orig/debian/changelog
+++ iwidgets4-4.0.1/debian/changelog
@@ -0,0 +1,61 @@
+iwidgets4 (4.0.1-5) unstable; urgency=low
+
+ * Switched to quilt for patch management.
+ * Added uscan control file debian/watch.
+
+ -- Sergei Golovan <sgolovan@debian.org> Mon, 09 Jun 2008 21:27:11 +0400
+
+iwidgets4 (4.0.1-4) unstable; urgency=low
+
+ * New maintainer Debian Tcl/Tk Packagers
+ <pkg-tcltk-devel@lists.alioth.debian.org>.
+ * Added homepage header to debian/control.
+ * Bumped standards version to 3.7.3.
+ * Bumped debhelper compatibility level to 5.
+ * Fixed ignoring make errors in clean target of debian/rules.
+ * Debhelper is used in clean target, so moved it from build-depends-indep
+ to build-depends.
+ * Added build-dependency on tk-dev (just to please configure script,
+ actually, info from tkConfig.sh and tclConfig.sh isn't used at all).
+ * Moved Tcl library files to a subdirectory of /usr/share/tcltk to make the
+ package compliant to Debian Tcl/Tk policy.
+ * Moved demos to iwidgets4-doc binary package.
+ * Restored forgotten demos images (closes: #404392).
+ * Fixed brackets in manpage for scopedobject.
+
+ -- Sergei Golovan <sgolovan@debian.org> Sat, 02 Feb 2008 13:50:50 +0300
+
+iwidgets4 (4.0.1-3) unstable; urgency=low
+
+ * Moved "examples" link from /usr/share/doc to /usr/share/doc/iwidgets4
+ where it was supposed to be in the first place (closes: #215117).
+
+ -- Chris Waters <xtifr@debian.org> Fri, 10 Oct 2003 10:28:00 -0700
+
+iwidgets4 (4.0.1-2) unstable; urgency=low
+
+ * Fixed build-dependencies to use tcl/tk/itcl/itk -dev packages.
+ * Made debian/rules do chmod +x mkinstalldirs, since dpkg-source isn't
+ actually smart enough to do that on its own (closes: #212308).
+
+ -- Chris Waters <xtifr@debian.org> Wed, 8 Oct 2003 12:28:39 -0700
+
+iwidgets4 (4.0.1-1) unstable; urgency=low
+
+ * Added "examples" link to demos in /usr/share/doc/iwidgets4.
+ * First actual release to Debian archives.
+
+ -- Chris Waters <xtifr@debian.org> Sun, 24 Aug 2003 15:10:07 -0700
+
+iwidgets4 (4.0.1-0pre2) unstable; urgency=low
+
+ * Updated iwidgets testing package, still prerelease. Changed package
+ name.
+
+ -- Chris Waters <xtifr@debian.org> Tue, 19 Aug 2003 02:25:05 -0700
+
+iwidgets4.0 (4.0.1-0pre1) unstable; urgency=low
+
+ * New iwidgets package, prerelease testing package.
+
+ -- Chris Waters <xtifr@debian.org> Sat, 9 Aug 2003 10:55:06 -0700
--- iwidgets4-4.0.1.orig/debian/iwidgets4.files
+++ iwidgets4-4.0.1/debian/iwidgets4.files
@@ -0,0 +1 @@
+usr/share/tcltk/iwidgets*
--- iwidgets4-4.0.1.orig/debian/rules
+++ iwidgets4-4.0.1/debian/rules
@@ -0,0 +1,100 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export QUILT_PATCHES := debian/patches
+
+v = 4
+vv = 4.0.1
+dtmp=$(shell pwd)/debian/tmp
+
+unpatch:
+ dh_testdir
+ quilt pop -a || test $$? = 2
+ rm -rf patch-stamp .pc
+
+patch: patch-stamp
+patch-stamp:
+ dh_testdir
+ quilt push -a || test $$? = 2
+ touch patch-stamp
+
+build: build-stamp
+build-stamp: patch-stamp
+ dh_testdir
+ #
+ chmod u+x mkinstalldirs # dpkg-source isn't very smart...
+ sh ./configure --prefix=/usr \
+ --with-tcl=/usr/lib \
+ --with-tk=/usr/lib
+ #
+ touch build-stamp
+
+clean: clean-patched unpatch
+ dh_testdir
+ dh_testroot
+ dh_clean
+
+clean-patched: patch-stamp
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp install-stamp
+ #
+ [ ! -f Makefile ] || $(MAKE) clean
+ [ ! -f Makefile ] || $(MAKE) distclean
+
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ #
+ mkdir -p $(dtmp)
+ $(MAKE) INSTALL_ROOT=$(dtmp) \
+ MAN_INSTALL_DIR=$(dtmp)/usr/share/man/man3 install
+ #
+ # Move the libraries
+ mkdir -p $(dtmp)/usr/share/tcltk/
+ mv $(dtmp)/usr/lib/iwidgets$(vv) $(dtmp)/usr/share/tcltk/
+ #
+ # remove redundant license file
+ rm -f $(dtmp)/usr/share/tcltk/iwidgets$(vv)/license.terms
+ #
+ # Fix up the manpages.
+ cd $(dtmp)/usr/share/man/man3 && \
+ for i in *.n; do \
+ mv $$i `basename $$i .n`.3iwidget; \
+ done
+ #
+ dh_movefiles
+ #
+ touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+ dh_testdir
+ dh_testroot
+ dh_installdocs
+ dh_installchangelogs ChangeLog
+ mv debian/iwidgets$(v)/usr/share/tcltk/iwidgets$(vv)/demos \
+ debian/iwidgets$(v)-doc/usr/share/doc/iwidgets$(v)-doc/
+ mkdir -p debian/iwidgets$(v)-doc/usr/share/tcltk/iwidgets$(vv)
+ ln -s ../../doc/iwidgets$(v)-doc/demos \
+ debian/iwidgets$(v)-doc/usr/share/tcltk/iwidgets$(vv)/
+ dh_compress -Xdemos
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+# no arch-dependent packages to build.
+binary-arch:
+
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: unpatch patch build clean clean-patched binary-indep binary-arch binary install
--- iwidgets4-4.0.1.orig/debian/iwidgets4-doc.files
+++ iwidgets4-4.0.1/debian/iwidgets4-doc.files
@@ -0,0 +1 @@
+usr/share/man/man3
--- iwidgets4-4.0.1.orig/debian/watch
+++ iwidgets4-4.0.1/debian/watch
@@ -0,0 +1,6 @@
+# Watch control file for uscan
+
+# Compulsory line, this is a version 3 file
+version=3
+
+http://sf.net/incrtcl/iwidgets(4[\d.]*).tar.gz
--- iwidgets4-4.0.1.orig/debian/copyright
+++ iwidgets4-4.0.1/debian/copyright
@@ -0,0 +1,36 @@
+This package was debianized by Chris Waters <xtifr@debian.org> from sources
+found at http://sourceforge.net/project/showfiles.php?group_id=13244
+
+Iwidgets License:
+
+This software is copyrighted by DSC Technologies and private individual
+contributors. The copyright holder is specifically listed in the header
+of each file. The following terms apply to all files associated with the
+software unless explicitly disclaimed in individual files by private
+contributors.
+
+Copyright 1997 DSC Technologies Corporation
+
+Permission to use, copy, modify, distribute and license this software and
+its documentation for any purpose, and without fee or written agreement
+with DSC, is hereby granted, provided that the above copyright notice
+appears in all copies and that both the copyright notice and warranty
+disclaimer below appear in supporting documentation, and that the names of
+DSC Technologies Corporation or DSC Communications Corporation not be used
+in advertising or publicity pertaining to the software without specific,
+written prior permission.
+
+DSC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, AND NON-INFRINGEMENT.
+THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND
+DISTRIBUTORS HAVE NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES,
+ENHANCEMENTS, OR MODIFICATIONS. IN NO EVENT SHALL DSC BE LIABLE FOR ANY
+SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
+RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
+CONTRACT, NEGLIGENCE OR OTHER TORTUOUS ACTION, ARISING OUT OF OR IN
+CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+RESTRICTED RIGHTS: Use, duplication or disclosure by the government
+is subject to the restrictions as set forth in subparagraph (c) (1) (ii)
+of the Rights in Technical Data and Computer Software Clause as DFARS
+252.227-7013 and FAR 52.227-19.
--- iwidgets4-4.0.1.orig/debian/compat
+++ iwidgets4-4.0.1/debian/compat
@@ -0,0 +1 @@
+5
--- iwidgets4-4.0.1.orig/debian/control
+++ iwidgets4-4.0.1/debian/control
@@ -0,0 +1,35 @@
+Source: iwidgets4
+Section: libs
+Priority: optional
+Maintainer: Debian Tcl/Tk Packagers <pkg-tcltk-devel@lists.alioth.debian.org>
+Uploaders: Chris Waters <xtifr@debian.org>, Sergei Golovan <sgolovan@debian.org>
+Build-Depends: debhelper (>= 5.0.0), quilt
+Build-Depends-Indep: itcl3-dev, itk3-dev, tk-dev
+Standards-Version: 3.7.3
+Homepage: http://incrtcl.sourceforge.net/iwidgets/
+
+Package: iwidgets4
+Priority: optional
+Architecture: all
+Depends: itk3
+Suggests: iwidgets4-doc
+Conflicts: itcl3.0 (<< 3.0.1)
+Description: [incr Widgets] Tk-based widget collection - run-time files
+ [incr Widgets] (or iwidgets) is an object-oriented "mega-widget" set,
+ or collection of high-level user-interface components, based on the
+ popular Tk toolkit and the itcl/itk OO framework. Iwidgets contains
+ over 50 ready-to-use mega-widgets including calendar, canvasprintdialog,
+ combobox, fileselectiondialog, hyperhelp, notebook, radiobox, spinner,
+ and many more.
+
+Package: iwidgets4-doc
+Section: doc
+Priority: optional
+Architecture: all
+Suggests: iwidgets4
+Conflicts: iwidgets-dev, iwidgets-doc, itcl3.0-dev (<< 3.0.1)
+Description: [incr Widgets] Tk-based widget collection - man pages
+ [incr Widgets] (or iwidgets) is an object-oriented "mega-widget" set,
+ or collection of high-level user-interface components, based on the
+ popular Tk toolkit and the itcl/itk OO framework. This package
+ contains man pages documenting the widget classes.
--- iwidgets4-4.0.1.orig/debian/iwidgets4.docs
+++ iwidgets4-4.0.1/debian/iwidgets4.docs
@@ -0,0 +1,2 @@
+README
+CHANGES
--- iwidgets4-4.0.1.orig/debian/patches/man.patch
+++ iwidgets4-4.0.1/debian/patches/man.patch
@@ -0,0 +1,11 @@
+--- iwidgets4-4.0.1.orig/doc/scopedobject.n
++++ iwidgets4-4.0.1/doc/scopedobject.n
+@@ -11,7 +11,7 @@
+ .BS
+ '\" Note: do not modify the .SH NAME line immediately below!
+ .SH NAME
+-scopedobject \- Create and manipulate a scoped \[incr Tcl\] class object.
++scopedobject \- Create and manipulate a scoped [incr Tcl] class object.
+ .SH SYNOPSIS
+ \fBscopedobject\fI \fIobjName \fR?\fIoptions\fR?
+ .SH "INHERITANCE"
--- iwidgets4-4.0.1.orig/debian/patches/build.patch
+++ iwidgets4-4.0.1/debian/patches/build.patch
@@ -0,0 +1,263 @@
+--- iwidgets4-4.0.1.orig/mkinstalldirs
++++ iwidgets4-4.0.1/mkinstalldirs
+@@ -0,0 +1,32 @@
++#! /bin/sh
++# mkinstalldirs --- make directory hierarchy
++# Author: Noah Friedman <friedman@prep.ai.mit.edu>
++# Created: 1993-05-16
++# Last modified: 1994-03-25
++# Public domain
++
++errstatus=0
++
++for file in ${1+"$@"} ; do
++ set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
++ shift
++
++ pathcomp=
++ for d in ${1+"$@"} ; do
++ pathcomp="$pathcomp$d"
++ case "$pathcomp" in
++ -* ) pathcomp=./$pathcomp ;;
++ esac
++
++ if test ! -d "$pathcomp"; then
++ echo "mkdir $pathcomp" 1>&2
++ mkdir "$pathcomp" || errstatus=$?
++ fi
++
++ pathcomp="$pathcomp/"
++ done
++done
++
++exit $errstatus
++
++# mkinstalldirs ends here
+--- iwidgets4-4.0.1.orig/configure.in
++++ iwidgets4-4.0.1/configure.in
+@@ -63,18 +63,18 @@
+ ITCL_LIB_DIR=""
+ if test -r $itcl_search/itcl/library/itcl.tcl; then
+ if test -r $itcl_search/itk/library/itk.tcl; then
+- if test -r $itcl_search/config/mkinstalldirs; then
+- ITCL_LIB_DIR=$itcl_search/itcl/library
+- ITCL_SRC_DIR=$itcl_search/itcl
+- ITK_LIB_DIR=$itcl_search/itk/library
+- ITK_SRC_DIR=$itcl_search/itk
+- fi
++ ITCL_LIB_DIR=$itcl_search/itcl/library
++ ITCL_SRC_DIR=$itcl_search/itcl
++ ITK_LIB_DIR=$itcl_search/itk/library
++ ITK_SRC_DIR=$itcl_search/itk
+ fi
+ fi
+
+-if test -z "$ITCL_LIB_DIR"; then
+- AC_MSG_ERROR(Can't find Itcl source. Use --with-itcl to specify the the toplevel [incr Tcl] directory on your system. (This directory should contain itcl/library/itcl.tcl, itk/library/itk.tcl, and config/mkinstalldirs.))
+-fi
++# Quick hack, comment out following, breaks tests, but oh well.
++#if test -z "$ITCL_LIB_DIR"; then
++# AC_MSG_ERROR(Can't find Itcl source. Use --with-itcl to specify the the toplevel [incr Tcl] directory on your system. (This directory should contain itcl/library/itcl.tcl, itk/library/itk.tcl.))
++#fi
++
+
+
+ #--------------------------------------------------------------------
+--- iwidgets4-4.0.1.orig/configure
++++ iwidgets4-4.0.1/configure
+@@ -808,18 +808,18 @@
+ ITCL_LIB_DIR=""
+ if test -r $itcl_search/itcl/library/itcl.tcl; then
+ if test -r $itcl_search/itk/library/itk.tcl; then
+- if test -r $itcl_search/config/mkinstalldirs; then
+- ITCL_LIB_DIR=$itcl_search/itcl/library
+- ITCL_SRC_DIR=$itcl_search/itcl
+- ITK_LIB_DIR=$itcl_search/itk/library
+- ITK_SRC_DIR=$itcl_search/itk
+- fi
++ ITCL_LIB_DIR=$itcl_search/itcl/library
++ ITCL_SRC_DIR=$itcl_search/itcl
++ ITK_LIB_DIR=$itcl_search/itk/library
++ ITK_SRC_DIR=$itcl_search/itk
+ fi
+ fi
+
+-if test -z "$ITCL_LIB_DIR"; then
+- { echo "configure: error: Can't find Itcl source. Use --with-itcl to specify the the toplevel incr Tcl directory on your system. (This directory should contain itcl/library/itcl.tcl, itk/library/itk.tcl, and config/mkinstalldirs.)" 1>&2; exit 1; }
+-fi
++# Quick hack, comment out following, breaks tests, but oh well.
++#if test -z "$ITCL_LIB_DIR"; then
++# AC_MSG_ERROR(Can't find Itcl source. Use --with-itcl to specify the the toplevel [incr Tcl] directory on your system. (This directory should contain itcl/library/itcl.tcl, itk/library/itk.tcl.))
++#fi
++
+
+
+ #--------------------------------------------------------------------
+--- iwidgets4-4.0.1.orig/Makefile.in
++++ iwidgets4-4.0.1/Makefile.in
+@@ -50,12 +50,6 @@
+ # Top-level directory in which to install manual entries:
+ MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man/mann
+
+-# Directory containing Tcl source code (for library used during test):
+-TCL_SRC_DIR = @TCL_SRC_DIR@
+-
+-# Directory containing Tk source code (for library used during test):
+-TK_SRC_DIR = @TK_SRC_DIR@
+-
+ # Itcl libraries can be found here:
+ ITCL_LIB_DIR = @ITCL_LIB_DIR@
+
+@@ -78,11 +72,11 @@
+ # modify any of this stuff by hand.
+ #----------------------------------------------------------------
+
+-INSTALL = $(TCLSH_PROG) `$(CYGPATH) $(ITCL_SRC_DIR)/../config/installFile.tcl` -c
++INSTALL = $(TCLSH_PROG) `$(CYGPATH) $(srcdir)/installFile.tcl` -c
+ INSTALL_PROGRAM = $(INSTALL)
+ INSTALL_DATA = $(INSTALL) -m 644
+ INSTALL_SCRIPT = $(INSTALL) -m 555
+-MKINSTALLDIRS = $(ITCL_SRC_DIR)/../config/mkinstalldirs
++MKINSTALLDIRS = $(srcdir)/mkinstalldirs
+ RANLIB = @RANLIB@
+ LN_S = ln -s
+ TOP_DIR = $(srcdir)
+@@ -109,14 +103,11 @@
+ install: install-libraries install-doc install-demos
+
+ test:
+- LD_LIBRARY_PATH=$(ITCL_LIB_DIR):$(ITK_LIB_DIR):$(LD_LIBRARY_PATH); export LD_LIBRARY_PATH ; \
+- TCL_LIBRARY=$(TCL_SRC_DIR)/library; export TCL_LIBRARY; \
++# removed LD_LIBRARY_PATH - if you have to set that, your system is broken
+ ITCL_LIBRARY=$(ITCL_LIB_DIR); export ITCL_LIBRARY; \
+- TK_LIBRARY=$(TK_SRC_DIR)/library; export TK_LIBRARY; \
+ ITK_LIBRARY=$(ITK_LIB_DIR); export ITK_LIBRARY; \
+ IWIDGETS_LIBRARY=@IWIDGETS_SRC_DIR@; export IWIDGETS_LIBRARY; \
+- $(TCLSH_PROG) `@CYGPATH@ $(srcdir)/tests/all.tcl` \
+- -exedir `@CYGPATH@ $(TK_SRC_DIR)/unix` $(TESTFLAGS)
++ $(TCLSH_PROG) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)
+
+ install-libraries:
+ @$(MKINSTALLDIRS) $(SCRIPT_INSTALL_DIR) $(LIB_INSTALL_DIR)
+--- iwidgets4-4.0.1.orig/installFile.tcl
++++ iwidgets4-4.0.1/installFile.tcl
+@@ -0,0 +1,119 @@
++#!/bin/sh
++#
++# installFile.tcl - a Tcl version of install-sh
++# that copies a file and preserves its permission bits.
++# This also optimizes out installation of existing files
++# that have the same size and time stamp as the source.
++#
++# \
++exec tclsh "$0" ${1+"$@"}
++
++set doCopy 0 ;# Rename files instead of copy
++set doStrip 0 ;# Strip the symbols from installed copy
++set verbose 0
++set src ""
++set dst ""
++
++# Process command line arguments, compatible with install-sh
++
++for {set i 0} {$i < $argc} {incr i} {
++ set arg [lindex $argv $i]
++ switch -- $arg {
++ -c {
++ set doCopy 1
++ }
++ -m {
++ incr i
++ # Assume UNIX standard "644", etc, so force Tcl to think octal
++ set permissions 0[lindex $argv $i]
++ }
++ -o {
++ incr i
++ set owner [lindex $argv $i]
++ }
++ -g {
++ incr i
++ set group [lindex $argv $i]
++ }
++ -s {
++ set doStrip 1
++ }
++ -v {
++ set verbose 1
++ }
++ default {
++ set src $arg
++ incr i
++ set dst [lindex $argv $i]
++ break
++ }
++ }
++}
++if {[string length $src] == 0} {
++ puts stderr "$argv0: no input file specified"
++ exit 1
++}
++if {[string length $dst] == 0} {
++ puts stderr "$argv0: no destination file specified"
++ exit 1
++}
++
++# Compatibility with CYGNUS-style pathnames
++regsub {^/(cygdrive)?/(.)/(.*)} $src {\2:/\3} src
++regsub {^/(cygdrive)?/(.)/(.*)} $dst {\2:/\3} dst
++
++if {$verbose && $doStrip} {
++ puts stderr "Ignoring -s (strip) option for $dst"
++}
++if {[file isdirectory $dst]} {
++ set dst [file join $dst [file tail $src]]
++}
++
++# Temporary file name
++
++set dsttmp [file join [file dirname $dst] #inst.[pid]#]
++
++# Optimize out install if the file already exists
++
++set actions ""
++if {[file exists $dst] &&
++ ([file mtime $src] == [file mtime $dst]) &&
++ ([file size $src] == [file size $dst])} {
++
++ # Looks like the same file, so don't bother to copy.
++ # Set dsttmp in case we still need to tweak mode, group, etc.
++
++ set dsttmp $dst
++ lappend actions "already installed"
++} else {
++ file copy -force $src $dsttmp
++ lappend actions copied
++}
++
++# At this point "$dsttmp" is installed, but might not have the
++# right permissions and may need to be renamed.
++
++
++foreach attrName {owner group permissions} {
++ upvar 0 $attrName attr
++
++ if {[info exists attr]} {
++ if {![catch {file attributes $dsttmp -$attrName} dstattr]} {
++
++ # This system supports "$attrName" kind of attributes
++
++ if {($attr != $dstattr)} {
++ file attributes $dsttmp -$attrName $attr
++ lappend actions "set $attrName to $attr"
++ }
++ }
++ }
++}
++
++if {[string compare $dst $dsttmp] != 0} {
++ file rename -force $dsttmp $dst
++}
++if {$verbose} {
++ puts stderr "$dst: [join $actions ", "]"
++}
++exit 0
--- iwidgets4-4.0.1.orig/debian/patches/series
+++ iwidgets4-4.0.1/debian/patches/series
@@ -0,0 +1,2 @@
+build.patch
+man.patch