--- tklib-0.4.1-20071020.orig/debian/changelog +++ tklib-0.4.1-20071020/debian/changelog @@ -0,0 +1,65 @@ +tklib (0.4.1-20071020-1) unstable; urgency=low + + * New CVS snapshot. + * Adapted the package to Debian Tcl/Tk policy. This includes moving the Tcl + modules into a subdirectory of /usr/share/tcltk and switching to default + tcl package in dependencies. + * Use quilt for patch management. + * Fixed ignoring errors in clean target in debian/rules. + * Added Homepage field in debian/control. + + -- Sergei Golovan Sat, 17 Nov 2007 11:47:05 +0300 + +tklib (0.4.1-20070927-1) unstable; urgency=low + + * New CVS snapshot. + * Upload to Debian archive (closes: #444415). + + -- Sergei Golovan Sun, 30 Sep 2007 15:53:42 +0400 + +tklib (0.4.1-20070504-1) unstable; urgency=low + + * New CVS snapshot. + * Fixed registering docs in doc-base. + + -- Sergei Golovan Fri, 11 May 2007 12:06:49 +0400 + +tklib (0.4.1-20070108-1) unstable; urgency=low + + * New CVS snapshot. + * Fixed sections inside manual pages and HTML docs. + * Added an index for HTML documentation. + * Register HTML docs in doc-base. + * Removed tk8.4 from build-dependencies and tcllib from dependencies. + * Moved tklib scripts to /usr/share as required by Debian Policy + leaving symlink in /usr/lib. + + -- Sergei Golovan Mon, 08 Jan 2007 01:59:26 +0300 + +tklib (0.4.1-20061210-2) unstable; urgency=low + + * Fixed manual pages filenames. + + -- Sergei Golovan Thu, 04 Jan 2007 11:30:53 +0300 + +tklib (0.4.1-20061210-1) unstable; urgency=low + + * Used current CVS because of KHIM module. + + -- Sergei Golovan Sun, 10 Dec 2006 13:39:33 +0300 + +tklib (0.4.1-2) unstable; urgency=low + + * Moved debhelper to Build-Depends section in debian/control file. + * Bumped Standards-Version to 3.7.2. + * Moved demo.tcl from tkpiechart to docs dir. + * Fixed section number in manual pages. + + -- Sergei Golovan Sun, 10 Dec 2006 00:55:30 +0300 + +tklib (0.4.1-1) unstable; urgency=low + + * Initial release. + + -- Sergei Golovan Sat, 09 Dec 2006 23:00:40 +0300 + --- tklib-0.4.1-20071020.orig/debian/patches/chatwidget.diff +++ tklib-0.4.1-20071020/debian/patches/chatwidget.diff @@ -0,0 +1,48 @@ +Patch by Sergei Golovan fixes processing of chatwidget manual page +by doctools. Also, error in manual page is fixed (.chat is treated as +undefined macro). + +Index: tklib-0.4.1-20071020/modules/chatwidget/chatwidget.man +=================================================================== +--- tklib-0.4.1-20071020.orig/modules/chatwidget/chatwidget.man ++++ tklib-0.4.1-20071020/modules/chatwidget/chatwidget.man +@@ -55,8 +55,8 @@ + Control the names and tags associated with names. + [list_begin commands] + [cmd_def "list [opt [arg -full]]"] +-Returns a list of all the user names from the names view. If [opt +--full] is given then the list returned is a list of lists where each ++Returns a list of all the user names from the names view. If [arg -full] ++is given then the list returned is a list of lists where each + sublist is made up of the nick followed by any options that have been + set on this nick entry. This may be used to examine any application + specific options that may be applied to a nick when using the +@@ -94,17 +94,17 @@ + [section EXAMPLE] + + [example { +-chatwidget::chatwidget .chat +-proc speak {w msg} {$w message $msg -nick user} +-.chat hook add post [list speak .chat] +-pack .chat -side top -fill both -expand 1 +-.chat topic show +-.chat topic set "Chat widget demo" +-.chat name add "admin" -group admin +-.chat name add "user" -group users -color tomato +-.chat message "Chatwidget ready" -type system +-.chat message "Hello, user" -nick admin +-.chat message "Hello, admin" -nick user ++ chatwidget::chatwidget .chat ++ proc speak {w msg} {$w message $msg -nick user} ++ .chat hook add post [list speak .chat] ++ pack .chat -side top -fill both -expand 1 ++ .chat topic show ++ .chat topic set "Chat widget demo" ++ .chat name add "admin" -group admin ++ .chat name add "user" -group users -color tomato ++ .chat message "Chatwidget ready" -type system ++ .chat message "Hello, user" -nick admin ++ .chat message "Hello, admin" -nick user + }] + + --- tklib-0.4.1-20071020.orig/debian/patches/series +++ tklib-0.4.1-20071020/debian/patches/series @@ -0,0 +1 @@ +chatwidget.diff --- tklib-0.4.1-20071020.orig/debian/prerm +++ tklib-0.4.1-20071020/debian/prerm @@ -0,0 +1,39 @@ +#! /bin/sh +# prerm script for tklib +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * remove +# * upgrade +# * failed-upgrade +# * remove in-favour +# * deconfigure in-favour \ +# removing +# for details, see /usr/share/doc/debian-policy/ + +case "$1" in + upgrade) + if [ -h /usr/lib/tklib0.4 ] ; then + rm /usr/lib/tklib0.4 + fi + ;; + + remove|failed-upgrade|deconfigure) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- tklib-0.4.1-20071020.orig/debian/rules +++ tklib-0.4.1-20071020/debian/rules @@ -0,0 +1,140 @@ +#!/usr/bin/make -f +# debian/rules that uses debhelper. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export QUILT_PATCHES := debian/patches + +version = 0.4.1 +cvsdate = 20071020 + +destdir=debian/tklib +mandir=/usr/share/man +docdir=/usr/share/doc/tklib +exampledir=$(docdir)/examples + +unpatch: + dh_testdir + -quilt pop -a + rm -rf patch-stamp .pc + +patch: patch-stamp +patch-stamp: + dh_testdir + quilt push -a + touch patch-stamp + +clean: clean-patched unpatch +clean-patched: + dh_testdir + + [ ! -f Makefile ] || $(MAKE) distclean + rm -f build-stamp install-stamp + + dh_clean + +# Build mostly covers docs and such +build: build-stamp +build-stamp: patch-stamp + dh_testdir + ./configure --prefix=/usr --mandir=$(mandir) + $(MAKE) doc + + touch build-stamp + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_installdirs + + $(MAKE) DESTDIR=$(destdir) install + + find $(destdir)/usr/lib -name repair.tcl -delete + + # now set the permissions properly, since the Makefile doesn't bother + find $(destdir)/usr/lib -type f -print | xargs chmod 644 + + # move scripts to /usr/share + mv $(destdir)/usr/lib/* $(destdir)/usr/share/tcltk + + # rename the man pages into section 3, and clean up + mv $(destdir)$(mandir)/mann $(destdir)$(mandir)/man3 + + # Several manpages has incorrect filenames (in lowercase), so take them + # from the headers + # Also, replace section n by 3tk + cd $(destdir)$(mandir)/man3 && \ + for f in *.n ; do \ + name=`grep '^\.TH' <$$f | sed 's/^\.TH "\([^ ]\+\)".*/\1/'`; \ + sed -e'/\.so man.macros/ d' \ + -e's/^\.TH \([^ ]\+\) n/.TH \1 3tk/' \ + -e's/clock(n)/clock(3tcl)/g' \ + -e's/(n)/(3tk)/g' \ + -e's/(3)/(3tk)/g' \ + -e's/spIf/sp 1\nIf/' \ + -e's/\.sp Fu/\.sp 1\nFu/' \ + -e's/ü/\\[:u]/g' \ + -e's/"A dialog which allows a user to m/"M/' \ + $$f > $$name.3tk; \ + rm $$f; \ + done + + # cleanup docs + cd doc/html && \ + for f in *.html ; do \ + sed -i -e's/clock(n)/clock(3tcl)/g' \ + -e's/(n)/(3tk)/g' \ + -e's/(3)/(3tk)/g' $$f; \ + done + + # generate documentation index + tclsh debian/genindex.tcl doc/html >$(destdir)$(docdir)/html/index.html + + touch install-stamp + +binary-indep: build install + dh_testdir + dh_testroot + dh_install + dh_installdocs + dh_installexamples + + # Fix incorrect permissions + find $(destdir)$(exampledir) -type f -print | xargs chmod 644 + + dh_installchangelogs ChangeLog + dh_compress -Xusr/share/doc/tklib/examples/ \ + -Xusr/share/doc/tklib/html + dh_fixperms + dh_installdeb + tcltk-depends + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-arch: build install + +get-orig-source: get-orig-source-cvs + +get-orig-source-cvs: + CURDIR=`pwd` && \ + TMPDIR=`mktemp -d /tmp/tklib.XXXXXX` && \ + SCRDIR=`dirname $(MAKEFILE_LIST)` && \ + expect $$SCRDIR/checkout $$TMPDIR "$(cvsdate)T23:59:59" && \ + rm -rf $$TMPDIR/tklib/config/ && \ + find $$TMPDIR -name CVS -print | xargs rm -rf && \ + cd $$TMPDIR && \ + tar -zcf $$CURDIR/tklib_$(version)-$(cvsdate).orig.tar.gz . && \ + rm -rf $$TMPDIR + +get-orig-source-release: + wget -O tklib_$(version).orig.tar.gz \ + http://heanet.dl.sourceforge.net/sourceforge/tcllib/tklib-$(version).tar.gz + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: patch unpatch clean-patched build clean binary-indep binary-arch binary install get-orig-source-cvs get-orig-source-release --- tklib-0.4.1-20071020.orig/debian/genindex.tcl +++ tklib-0.4.1-20071020/debian/genindex.tcl @@ -0,0 +1,74 @@ +#!/usr/bin/tclsh + +set docdir [lindex $argv 0] +set manuals {} + +foreach docfile [glob -nocomplain -directory $docdir *.html] { + puts stderr $docfile + + if {[catch {set fd [open $docfile]} msg]} { + puts stderr "Can't open file $docfile: $msg" + continue + } + + while {[gets $fd line] >= 0} { + if {[regexp {

\s*(.*)\(\S*\)\s+(\S+)\s+(\S+)\s+(.*)

} $line -> \ + name version module title]} { + lappend manuals [list $module!$title!$name $module $name $version $title [file tail $docfile]] + break + } + } + close $fd +} + +puts " + +Tklib HTML Documentation + + + +

Tklib HTML Documentation

" + +set manuals [lsort -index 0 $manuals] +set prev "" +foreach m $manuals { + set module [lindex $m 1] + set name [lindex $m 2] + set version [lindex $m 3] + set title [lindex $m 4] + set fname [lindex $m 5] + + if {$module != $prev} { + if {$prev != ""} { + puts "" + } + puts "

$module

\n
    " + set prev $module + } + puts "
  • $name $version $title
  • " +} +puts " +
+

tablelist

+
    +
  • tablelist - "A multicolumn listbox +package"
  • +
+ +" + --- tklib-0.4.1-20071020.orig/debian/checkout +++ tklib-0.4.1-20071020/debian/checkout @@ -0,0 +1,26 @@ +#!/usr/bin/expect + +switch -- [llength $argv] { + 0 { + set date "now" + set dir . + } + 1 { + set date "now" + set dir [lindex $argv 0] + } + default { + set date [lindex $argv 1] + set dir [lindex $argv 0] + } +} + +cd $dir + +set cvsroot ":pserver:anonymous@tcllib.cvs.sourceforge.net:/cvsroot/tcllib" +spawn cvs -q -d$cvsroot login +expect -re "assword: " +send "\r" +system "cvs -q -d$cvsroot -z9 co -D \"$date\" tklib" +system "cvs -q -d$cvsroot logout" + --- tklib-0.4.1-20071020.orig/debian/install +++ tklib-0.4.1-20071020/debian/install @@ -0,0 +1 @@ +modules/tablelist/doc/* usr/share/doc/tklib/html/tablelist --- tklib-0.4.1-20071020.orig/debian/dirs +++ tklib-0.4.1-20071020/debian/dirs @@ -0,0 +1,3 @@ +usr/share/doc/tklib/html +usr/share/man +usr/share/tcltk --- tklib-0.4.1-20071020.orig/debian/postinst +++ tklib-0.4.1-20071020/debian/postinst @@ -0,0 +1,38 @@ +#!/bin/sh +# postinst script for tklib +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * configure +# * abort-upgrade +# * abort-remove in-favour +# * abort-remove +# * abort-deconfigure in-favour \ +# removing +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + configure|abort-remove|abort-upgrade|abort-deconfigure) + if [ -d /usr/lib/tklib0.4 -a ! -h /usr/lib/tklib0.4 ] ; then + # It's better to fail than to loose user's data + rmdir /usr/lib/tklib0.4 + ln -s ../share/tklib0.4 /usr/lib/tklib0.4 + fi + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- tklib-0.4.1-20071020.orig/debian/copyright +++ tklib-0.4.1-20071020/debian/copyright @@ -0,0 +1,44 @@ +This package was debianized by Sergei Golovan +from sources obtained from: +http://sourceforge.net/project/showfiles.php?group_id=12883 + +Copyright: + +This software is copyrighted by Ajuba Solutions and other parties. +The following terms apply to all files associated with the software unless +explicitly disclaimed in individual files. + +The authors hereby grant permission to use, copy, modify, distribute, +and license this software and its documentation for any purpose, provided +that existing copyright notices are retained in all copies and that this +notice is included verbatim in any distributions. No written agreement, +license, or royalty fee is required for any of the authorized uses. +Modifications to this software may be copyrighted by their authors +and need not follow the licensing terms described here, provided that +the new terms are clearly indicated on the first page of each file where +they apply. + +IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY +FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES +ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY +DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. + +THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE, 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. + +GOVERNMENT USE: If you are acquiring this software on behalf of the +U.S. government, the Government shall have only "Restricted Rights" +in the software and related documentation as defined in the Federal +Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you +are acquiring the software on behalf of the Department of Defense, the +software shall be classified as "Commercial Computer Software" and the +Government shall have only "Restricted Rights" as defined in Clause +252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the +authors grant the U.S. Government and others acting in its behalf +permission to use and distribute the software in accordance with the +terms specified in this license. --- tklib-0.4.1-20071020.orig/debian/docs +++ tklib-0.4.1-20071020/debian/docs @@ -0,0 +1,4 @@ +PACKAGES +README +README-0.4.txt +doc/html --- tklib-0.4.1-20071020.orig/debian/compat +++ tklib-0.4.1-20071020/debian/compat @@ -0,0 +1 @@ +5 --- tklib-0.4.1-20071020.orig/debian/examples +++ tklib-0.4.1-20071020/debian/examples @@ -0,0 +1 @@ +examples/* --- tklib-0.4.1-20071020.orig/debian/control +++ tklib-0.4.1-20071020/debian/control @@ -0,0 +1,38 @@ +Source: tklib +Section: interpreters +Priority: optional +Maintainer: Sergei Golovan +Build-Depends: debhelper (>= 5.0.0), quilt +Build-Depends-Indep: tk-dev, tcllib +Standards-Version: 3.7.2 +Homepage: http://sourceforge.net/projects/tcllib/ + +Package: tklib +Section: interpreters +Architecture: all +Depends: ${wish:Depends} +Description: the standard Tk Library + Tklib, the standard Tk library, is a collection of common utility + functions and widgets all written in pure Tcl/Tk. + . + Modules included: + autoscroll: automatically maps scrollbars when they are needed; + chatwidget: a composite widget for chat applications; + ctext: a text widget with syntax highlighting support; + cursor: provides a few cursor routines; + datefield: an entry widget for the purpose of date entry; + Diagrams: helps drawing diagrams, like flowcharts; + getstring: a dialog which prompts for a string input; + history: provides a history for mechanism for entry widgets; + ico: provides functions for reading and writing windows icons; + ipentry: a widget for the entering of an IP address; + khim: provides key bindings for entering international + characters on a keyboard that does not support them; + ntext: provides alternative bindings for the Text widget; + Plotchart: provides simple plotting and charting commands; + style: provides simple theming using Tk options; + swaplist: a dialog which allows to move options between two lists; + tablelist: a multicolumn listbox widget; + tkpiechart: 2D or 3D pie chart object in a canvas; + tooltip: provides tooltips for Tk widgets; + widget: a set of megawidgets based on snit system. --- tklib-0.4.1-20071020.orig/debian/doc-base +++ tklib-0.4.1-20071020/debian/doc-base @@ -0,0 +1,11 @@ +Document: tklib +Title: Tklib Documentation +Author: Authors of the Tklib modules +Abstract: This is a documentation for Tklib - the standard Tk library. + It contains documentation on individual Tklib modules, supplied + with upstream distribution. +Section: Apps/Programming + +Format: HTML +Index: /usr/share/doc/tklib/html/index.html +Files: /usr/share/doc/tklib/html/*.html