Codebase list tk8.6 / de0db0a
Applying Debian modifications to trunk Sergei Golovan authored 15 years ago Sergei Golovan committed 6 years ago
28 changed file(s) with 602 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 Please see the Documentation section in the upstream README for a list of
1 books on getting started with Tcl/Tk. Also see the main Tcl/Tk web site
2 at http://www.tcl.tk/ for other documentation.
0 tk8.6 (8.6.0~a1-1) experimental; urgency=low
1
2 * Initial alpha release.
3
4 -- Sergei Golovan <sgolovan@debian.org> Mon, 30 Jun 2008 15:57:54 +0400
5
0 Source: tk8.6
1 Section: libs
2 Priority: optional
3 Maintainer: Tcl/Tk Debian Packagers <pkg-tcltk-devel@lists.alioth.debian.org>
4 Uploaders: Chris Waters <xtifr@debian.org>, Sergei Golovan <sgolovan@debian.org>
5 Build-Depends: debhelper (>= 5.0.0), x11proto-core-dev, libx11-dev, libxt-dev, libxss-dev | libxext-dev, libxft-dev, tcl8.6-dev (>= 8.6.0~a1), quilt
6 Standards-Version: 3.8.0
7 Homepage: http://www.tcl.tk/
8
9 Package: tk8.6
10 Section: libs
11 Priority: optional
12 Architecture: any
13 Depends: ${shlibs:Depends}
14 Recommends: xterm | x-terminal-emulator
15 Conflicts: tk40 (<= 4.0p3-2), libtk-img (<< 1.2.5)
16 Provides: wish
17 Description: Tk toolkit for Tcl and X11, v8.6 - run-time files
18 Tk is a cross-platform graphical toolkit which provides the Motif
19 look-and-feel and is implemented using the Tcl scripting language.
20 This package contains everything you need to run Tk (wish) scripts
21 and Tk-enabled apps.
22
23 Package: tk8.6-doc
24 Section: doc
25 Priority: optional
26 Architecture: all
27 Suggests: tk8.6
28 Conflicts: tkdoc
29 Provides: tkdoc
30 Description: Tk toolkit for Tcl and X11, v8.6 - manual pages
31 Tk is a cross-platform graphical toolkit which provides the Motif
32 look-and-feel and is implemented using the Tcl scripting language.
33 This package contains the manual pages for the Tk commands.
34
35 Package: tk8.6-dev
36 Section: devel
37 Priority: optional
38 Architecture: any
39 Depends: x11proto-core-dev, libx11-dev, tcl8.6-dev (>= 8.6.0~a1), tk8.6 (= ${binary:Version})
40 Suggests: tk8.6-doc
41 Description: Tk toolkit for Tcl and X11, v8.6 - development files
42 Tk is a cross-platform graphical toolkit which provides the Motif
43 look-and-feel and is implemented using the Tcl scripting language.
44 This package contains the headers and libraries needed to extend
45 or embed Tk.
0 This package was debianized by David Engel <david@debiang.org>
1 from sources obtained at http://prdownloads.sourceforge.net/tcl
2
3 List of copyright holders of individual files:
4
5 Copyright 1985-1987, 1989, 1991 Massachusetts Institute of Technology
6 Copyright 1987-1994 Adobe Systems Inc.
7 Copyright 1987 Digital Equipment Corporation
8 Copyright 1989-1994 The Regents of the University of California
9 Copyright 1990, David Koblas
10 Copyright 1994-1998 Sun Microsystems, Inc.
11 Copyright 1994 Software Research Associates, Inc.
12 Copyright 1994,1997 The Australian National University
13 Copyright 1997-2000 Ajuba Solutions
14 Copyright 1997-2000 Scriptics Corporation
15 Copyright 1998 Paul Duffin
16 Copyright 1999-2000 Jeffrey Hobbs
17 Copyright 2000-2005,2007 ActiveState Corporation
18 Copyright 2001-2002, Apple Computer, Inc.
19 Copyright 2001-2008 Donal K. Fellows
20 Copyright 2001-2004 David Gravereaux
21 Copyright 2002 Frederic Bonnet
22 Copyright 2002-2003 Keith Packard
23 Copyright 2002-2004 Benjamin Riefenstahl
24 Copyright 2002-2008 Daniel A. Steffen
25 Copyright 2002 David Gravereaux
26 Copyright 2002 Ludwig Callewaert
27 Copyright 2003 Free Software Foundation, Inc.
28 Copyright 2003 Georgios Petasis
29 Copyright 2003-2004 Vincent Darley
30 Copyright 2003-2006 Joe English
31 Copyright 2002-2008 Patrick Thoyts
32 Copyright 2004 George Peter Staplin
33 Copyright 2005 Neil Madden
34 Copyright 2007 the Tk developers
35 Copyright 2008 Tcl Core Team
36 Copyright Reed Wade
37 Copyright Michael Kirkham
38
39 Copyright:
40
41 This software is copyrighted by the Regents of the University of
42 California, Sun Microsystems, Inc., and other parties. The following
43 terms apply to all files associated with the software unless explicitly
44 disclaimed in individual files.
45
46 The authors hereby grant permission to use, copy, modify, distribute,
47 and license this software and its documentation for any purpose, provided
48 that existing copyright notices are retained in all copies and that this
49 notice is included verbatim in any distributions. No written agreement,
50 license, or royalty fee is required for any of the authorized uses.
51 Modifications to this software may be copyrighted by their authors
52 and need not follow the licensing terms described here, provided that
53 the new terms are clearly indicated on the first page of each file where
54 they apply.
55
56 IN NO EVENT SHALL THE AUTHORS OR DISTRIBUTORS BE LIABLE TO ANY PARTY
57 FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
58 ARISING OUT OF THE USE OF THIS SOFTWARE, ITS DOCUMENTATION, OR ANY
59 DERIVATIVES THEREOF, EVEN IF THE AUTHORS HAVE BEEN ADVISED OF THE
60 POSSIBILITY OF SUCH DAMAGE.
61
62 THE AUTHORS AND DISTRIBUTORS SPECIFICALLY DISCLAIM ANY WARRANTIES,
63 INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
64 FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT. THIS SOFTWARE
65 IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
66 NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
67 MODIFICATIONS.
68
69 GOVERNMENT USE: If you are acquiring this software on behalf of the
70 U.S. government, the Government shall have only "Restricted Rights"
71 in the software and related documentation as defined in the Federal
72 Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
73 are acquiring the software on behalf of the Department of Defense, the
74 software shall be classified as "Commercial Computer Software" and the
75 Government shall have only "Restricted Rights" as defined in Clause
76 252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the
77 authors grant the U.S. Government and others acting in its behalf
78 permission to use and distribute the software in accordance with the
79 terms specified in this license.
0 Patch by Sergei Golovan allows to find tclConfig.sh in /usr/share/tcltk/tcl8.5
1 and tkConfig.sh in /usr/share/tcltk/tk8.5 where they are located in Debian
2 installation.
3
4 --- tk8.6-8.6.0~a1.orig/unix/configure
5 +++ tk8.6-8.6.0~a1/unix/configure
6 @@ -1430,6 +1430,7 @@
7 `ls -d ${prefix}/lib 2>/dev/null` \
8 `ls -d /usr/local/lib 2>/dev/null` \
9 `ls -d /usr/contrib/lib 2>/dev/null` \
10 + `ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \
11 `ls -d /usr/lib 2>/dev/null` \
12 ; do
13 if test -f "$i/tclConfig.sh" ; then
14 --- tk8.6-8.6.0~a1.orig/unix/tcl.m4
15 +++ tk8.6-8.6.0~a1/unix/tcl.m4
16 @@ -93,6 +93,7 @@
17 `ls -d ${prefix}/lib 2>/dev/null` \
18 `ls -d /usr/local/lib 2>/dev/null` \
19 `ls -d /usr/contrib/lib 2>/dev/null` \
20 + `ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \
21 `ls -d /usr/lib 2>/dev/null` \
22 ; do
23 if test -f "$i/tclConfig.sh" ; then
24 @@ -223,6 +224,7 @@
25 `ls -d ${prefix}/lib 2>/dev/null` \
26 `ls -d /usr/local/lib 2>/dev/null` \
27 `ls -d /usr/contrib/lib 2>/dev/null` \
28 + `ls -d /usr/share/tcltk/tk8.5 2>/dev/null` \
29 `ls -d /usr/lib 2>/dev/null` \
30 ; do
31 if test -f "$i/tkConfig.sh" ; then
0 Patch by Chris Waters fixes installing of several manual pages which
1 aren't installed by upstream script but are referenced inside other
2 manual pages.
3
4 --- tk8.6-8.6.0~a1.orig/unix/installManPage
5 +++ tk8.6-8.6.0~a1/unix/installManPage
6 @@ -51,7 +51,16 @@
7 }' $MANPAGE`
8
9 SECTION=`echo $MANPAGE | sed 's/.*\(.\)$/\1/'`
10 +NAME=`basename $MANPAGE .$SECTION`
11 SRCDIR=`dirname $MANPAGE`
12 +
13 +SPECIALS="FindPhoto"
14 +for n in $SPECIALS; do
15 + if [ "$NAME" = "$n" ] ; then
16 + NAMES="$n $NAMES"
17 + fi
18 +done
19 +
20 FIRST=""
21 for f in $NAMES; do
22 f=$f.$SECTION$SUFFIX
0 Patch by Sergei Golovan (originally by Mike Markley and Chris Waters) fixes
1 building on non-linux Debian architectures.
2
3 --- tk8.6-8.6.0~a1.orig/unix/configure
4 +++ tk8.6-8.6.0~a1/unix/configure
5 @@ -4731,6 +4731,9 @@
6 if test "`uname -s`" = "AIX" ; then
7 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
8 fi
9 + if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
10 + tcl_cv_sys_version=NetBSD-Debian
11 + fi
12 fi
13 fi
14
15 @@ -5528,7 +5531,7 @@
16 fi
17
18 ;;
19 - Linux*)
20 + Linux*|GNU*|NetBSD-Debian)
21 SHLIB_CFLAGS="-fPIC"
22 SHLIB_LD_LIBS='${LIBS}'
23 SHLIB_SUFFIX=".so"
24 --- tk8.6-8.6.0~a1.orig/unix/tcl.m4
25 +++ tk8.6-8.6.0~a1/unix/tcl.m4
26 @@ -962,6 +962,9 @@
27 if test "`uname -s`" = "AIX" ; then
28 tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
29 fi
30 + if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
31 + tcl_cv_sys_version=NetBSD-Debian
32 + fi
33 fi
34 fi
35 ])
36 @@ -1418,7 +1421,7 @@
37 ])
38 ])
39 ;;
40 - Linux*)
41 + Linux*|GNU*|NetBSD-Debian)
42 SHLIB_CFLAGS="-fPIC"
43 SHLIB_LD_LIBS='${LIBS}'
44 SHLIB_SUFFIX=".so"
0 Patch by Chris Waters removes -rpath from search flags and adds -soname
1 to library build options.
2
3 Also, it fixes Makefile.in to put correct Tk library filename to pkgIndex.tcl
4
5 --- tk8.6-8.6.0~a1.orig/unix/configure
6 +++ tk8.6-8.6.0~a1/unix/configure
7 @@ -5539,6 +5539,9 @@
8 # get rid of the warnings.
9 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
10
11 + # following line added by CW for Debian GNU/Linux
12 + TK_SHLIB_LD_EXTRAS="-Wl,-soname,\${TK_LIB_FILE}.0"
13 +
14 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
15 DL_OBJS="tclLoadDl.o"
16 DL_LIBS="-ldl"
17 --- tk8.6-8.6.0~a1.orig/unix/Makefile.in
18 +++ tk8.6-8.6.0~a1/unix/Makefile.in
19 @@ -708,7 +708,7 @@
20 $(TCLVERSION)$(TCLPATCHL)}]} { return }";\
21 relative=`echo | awk '{ORS=" "; split("$(TK_PKG_DIR)",a,"/"); for (f in a) {print ".."}}'`;\
22 echo "package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL)\
23 - [list load [file join \$$dir $${relative}$(TK_LIB_FILE)] Tk]";\
24 + [list load [file join $(LIB_RUNTIME_DIR) $(TK_LIB_FILE).0] Tk]";\
25 ) > "$(PKG_INDEX)"; \
26 fi
27 @echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/"
28 --- tk8.6-8.6.0~a1.orig/unix/tcl.m4
29 +++ tk8.6-8.6.0~a1/unix/tcl.m4
30 @@ -1429,6 +1429,9 @@
31 # get rid of the warnings.
32 #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
33
34 + # following line added by CW for Debian GNU/Linux
35 + TK_SHLIB_LD_EXTRAS="-Wl,-soname,\${TK_LIB_FILE}.0"
36 +
37 SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
38 DL_OBJS="tclLoadDl.o"
39 DL_LIBS="-ldl"
0 tkport.diff
1 tklibrary.diff
2 tkprivate.diff
3 confsearch.diff
4 rpath.diff
5 non-linux.diff
6 manpages.diff
0 --- tk8.6-8.6.0~a1.orig/unix/configure
1 +++ tk8.6-8.6.0~a1/unix/configure
2 @@ -10736,7 +10736,7 @@
3 TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
4 fi
5
6 -TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
7 +test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
8 PRIVATE_INCLUDE_DIR='$(includedir)'
9 HTML_DIR='$(DISTDIR)/html'
10 TK_PKG_DIR='tk$(VERSION)'
11 --- tk8.6-8.6.0~a1.orig/unix/configure.in
12 +++ tk8.6-8.6.0~a1/unix/configure.in
13 @@ -552,7 +552,7 @@
14 TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
15 fi
16
17 -TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
18 +test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
19 PRIVATE_INCLUDE_DIR='$(includedir)'
20 HTML_DIR='$(DISTDIR)/html'
21 TK_PKG_DIR='tk$(VERSION)'
0 Patch by Stanislav Maslovski <stanislav.maslovski@gmail.com>.
1 See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488501
2
3 --- tk8.6-8.6.0~a1.orig/generic/tkPort.h
4 +++ tk8.6-8.6.0~a1/generic/tkPort.h
5 @@ -29,7 +29,7 @@
6 # if defined(MAC_OSX_TK)
7 # include "tkMacOSXPort.h"
8 # else
9 -# include "tkUnixPort.h"
10 +# include "../unix/tkUnixPort.h"
11 # endif
12 #endif
13
0 Patch by Chris Waters sets path which are normally point to a directory
1 with Tk sources to a subdirectory of /usr/include/tcl8.4 (debian/rules
2 puts private Tk headers there).
3
4 --- tk8.6-8.6.0~a1.orig/unix/tkConfig.sh.in
5 +++ tk8.6-8.6.0~a1/unix/tkConfig.sh.in
6 @@ -55,7 +55,7 @@
7
8 # String to pass to linker to pick up the Tk library from its
9 # build directory.
10 -TK_BUILD_LIB_SPEC='@TK_BUILD_LIB_SPEC@'
11 +TK_BUILD_LIB_SPEC='@TK_LIB_SPEC@'
12
13 # String to pass to linker to pick up the Tk library from its
14 # installed directory.
15 @@ -71,7 +71,7 @@
16 # different place than the directory containing the source files, this
17 # points to the location of the sources, not the location where Tk was
18 # compiled.
19 -TK_SRC_DIR='@TK_SRC_DIR@'
20 +TK_SRC_DIR='@includedir@/tk-private'
21
22 # Needed if you want to make a 'fat' shared library library
23 # containing tk objects or link a different wish.
24 @@ -86,14 +86,14 @@
25
26 # String to pass to linker to pick up the Tk stub library from its
27 # build directory.
28 -TK_BUILD_STUB_LIB_SPEC='@TK_BUILD_STUB_LIB_SPEC@'
29 +TK_BUILD_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@'
30
31 # String to pass to linker to pick up the Tk stub library from its
32 # installed directory.
33 TK_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@'
34
35 # Path to the Tk stub library in the build directory.
36 -TK_BUILD_STUB_LIB_PATH='@TK_BUILD_STUB_LIB_PATH@'
37 +TK_BUILD_STUB_LIB_PATH='@TK_STUB_LIB_PATH@'
38
39 # Path to the Tk stub library in the install directory.
40 TK_STUB_LIB_PATH='@TK_STUB_LIB_PATH@'
0 #!/usr/bin/make -f
1 # debian/rules that uses debhelper.
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7 DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
9 export QUILT_PATCHES := debian/patches
10
11 v = 8.6
12
13 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
14 CFLAGS=-g -O0
15 else
16 # See bug #446335
17 CFLAGS=-g -O2 -fno-unit-at-a-time
18 endif
19
20 unpatch:
21 dh_testdir
22 quilt pop -a || test $$? = 2
23 rm -rf patch-stamp .pc
24
25 patch: patch-stamp
26 patch-stamp:
27 dh_testdir
28 quilt push -a || test $$? = 2
29 touch patch-stamp
30
31 build: build-stamp
32 build-stamp: patch-stamp
33 dh_testdir
34 cd unix && \
35 TK_LIBRARY="/usr/share/tcltk/tk$(v)" \
36 ./configure --host=$(DEB_HOST_GNU_TYPE) \
37 --build=$(DEB_BUILD_GNU_TYPE) \
38 --prefix=/usr \
39 --includedir=/usr/include/tcl$(v) \
40 --with-tcl=/usr/lib/tcl$(v) \
41 --enable-shared \
42 --enable-threads \
43 --disable-rpath \
44 --enable-xft \
45 --enable-man-symlinks \
46 --enable-man-compression=gzip && \
47 $(MAKE) CFLAGS="$(CFLAGS)"
48 # Build the static library.
49 cd unix && \
50 ar cr libtk$(v).a *.o && \
51 ar d libtk$(v).a tkAppInit.o && \
52 ranlib libtk$(v).a
53 touch build-stamp
54
55 clean: clean-patched unpatch
56 dh_testdir
57 dh_testroot
58 dh_clean
59
60 clean-patched: patch-stamp
61 dh_testdir
62 dh_testroot
63 rm -f build-stamp install-stamp
64 cd unix && [ ! -f Makefile ] || $(MAKE) distclean
65
66 install: install-stamp
67 install-stamp: build-stamp
68 dh_testdir
69 dh_testroot
70 dh_installdirs
71 mkdir -p debian/tmp/usr
72 cd unix && \
73 GZIP=-9 \
74 $(MAKE) INSTALL_ROOT=`pwd`/../debian/tmp \
75 MAN_INSTALL_DIR=`pwd`/../debian/tmp/usr/share/man \
76 MANN_INSTALL_DIR=`pwd`/../debian/tmp/usr/share/man/man3 install
77 # Fix up pkgInstall.tcl
78 cp debian/tmp/usr/lib/tk$(v)/* debian/tmp/usr/share/tcltk/tk$(v)
79 # Fix up the libraries.
80 cp unix/libtk$(v).a debian/tmp/usr/lib
81 mv debian/tmp/usr/lib/libtk$(v).so debian/tmp/usr/lib/libtk$(v).so.0
82 ln -sf libtk$(v).so.0 debian/tmp/usr/lib/libtk$(v).so
83 mv debian/tmp/usr/lib/*.sh debian/tmp/usr/share/tcltk/tk$(v)
84 # Fix up the include files.
85 install -d debian/tmp/usr/include/tcl$(v)/tk-private/generic
86 cp generic/*.h debian/tmp/usr/include/tcl$(v)/tk-private/generic
87 install -d debian/tmp/usr/include/tcl$(v)/tk-private/unix
88 cp unix/*.h debian/tmp/usr/include/tcl$(v)/tk-private/unix
89 install -d debian/tmp/usr/include/tcl$(v)/tk-private/compat
90 cp compat/*.h debian/tmp/usr/include/tcl$(v)/tk-private/compat
91 # Fix up the manpages.
92 cd debian/tmp/usr/share/man/man1 && \
93 mv wish.1.gz wish$(v).1.gz
94 cd debian/tmp/usr/share/man/man3 && \
95 for f in *.[3n].gz ; do \
96 f2=$$(echo $$f | sed -e 's/\.[3n]/.3tk/') ; \
97 if [ -L $$f ]; then \
98 l=$$(readlink -n $$f |sed -e 's/\.[3n]/.3tk/') ; \
99 rm $$f ; \
100 ln -sf $$l $$f2 ; \
101 else \
102 zcat $$f | sed -e 's/^\.TH \([^ ]\+\|"[^"]\+"\) [3n]/.TH \1 3tk/' \
103 -e 's/\([0-9A-Za-z]\+\)(3)/\1(3tk)/g' \
104 -e 's/bgerror(n)/bgerror(3tcl)/g' \
105 -e 's/fconfigure(n)/fconfigure(3tcl)/g' \
106 -e 's/history(n)/history(3tcl)/g' \
107 -e 's/interp(n)/interp(3tcl)/g' \
108 -e 's/library(n)/library(3tcl)/g' \
109 -e 's/load(n)/load(3tcl)/g' \
110 -e 's/package(n)/package(3tcl)/g' \
111 -e 's/puts(n)/puts(3tcl)/g' \
112 -e 's/safe(n)/safe(3tcl)/g' \
113 -e 's/source(n)/source(3tcl)/g' \
114 -e 's/tclvars(n)/tclvars(3tcl)/g' \
115 -e 's/unknown(n)/unknown(3tcl)/g' \
116 -e 's/(n)/(3tk)/g' \
117 | gzip -9 >$$f2 ; \
118 rm $$f ; \
119 fi ; \
120 done
121 rm -rf `pwd`/debian/tmp/usr/share/tcltk/tk$(v)/demos
122 ln -sf ../../doc/tk$(v)/examples `pwd`/debian/tmp/usr/share/tcltk/tk$(v)/demos
123 touch install-stamp
124
125 # Build architecture-independent files here.
126 binary-indep: build install
127 dh_testdir -i
128 dh_testroot -i
129 dh_movefiles -i
130 dh_installdocs -i
131 dh_installchangelogs -i ChangeLog
132 dh_compress -i
133 dh_fixperms -i
134 dh_installdeb -i
135 dh_gencontrol -i
136 dh_md5sums -i
137 dh_builddeb -i
138
139 # Build architecture-dependent files here.
140 binary-arch: build install
141 dh_testdir -a
142 dh_testroot -a
143 dh_movefiles -a
144 # now, fix up file locations for .sh
145 mv debian/tk$(v)/usr/share/tcltk/tk$(v)/*.sh \
146 debian/tk$(v)-dev/usr/share/tcltk/tk$(v)
147 ln -s ../../share/tcltk/tk$(v)/tkConfig.sh \
148 debian/tk$(v)-dev/usr/lib/tk$(v)/tkConfig.sh
149 dh_installdocs -a
150 install -d `pwd`/debian/tk$(v)/usr/share/doc/tk$(v)/examples/
151 # move around the demos
152 cp -a library/demos/* `pwd`/debian/tk$(v)/usr/share/doc/tk$(v)/examples/
153 rm -f debian/tk$(v)/usr/share/doc/tk$(v)/examples/license.terms
154 dh_installmenu -a
155 dh_installchangelogs -a ChangeLog
156 install -m 644 debian/tk$(v).lintian-override \
157 debian/tk$(v)/usr/share/lintian/overrides/tk$(v)
158 dh_fixperms -a
159 dh_strip -a
160 dh_compress -a -Xusr/share/doc/tk$(v)/examples/
161 dh_makeshlibs -a -V 'tk$(v) (>= 8.6.0~a1)'
162 dh_installdeb -a
163 dh_shlibdeps -a -ldebian/tk$(v)/usr/lib
164 dh_gencontrol -a
165 dh_md5sums -a
166 dh_builddeb -a
167
168 source diff:
169 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
170
171 binary: binary-indep binary-arch
172
173 get-orig-source:
174 wget -O tk8.6_8.6.0~a1.orig.tar.gz \
175 http://prdownloads.sourceforge.net/tcl/tk8.6a1-src.tar.gz
176
177 .PHONY: patch unpatch clean-patched build clean binary-indep binary-arch binary install get-orig-source
178
0 libtk8.6 1
0 usr/lib/tk8.6
1 usr/share/tcltk/tk8.6
0 usr/include
1 usr/lib/*.a
2 usr/lib/*.so
0 usr/share/man/man3
0 usr/share/lintian/overrides
0 README
1 changes
0 usr/bin
1 usr/share/tcltk/tk8.6
2 usr/lib/*.so.*
3 usr/share/man/man1
0 tk8.6: package-name-doesnt-match-sonames
0 ?package(tk8.6):needs="x11"\
1 section="Applications/Programming"\
2 title="TkWish8.6"\
3 command="x-terminal-emulator -e /usr/bin/wish8.6"
0 #!/bin/sh
1
2 set -e
3
4 if [ "$1" = "configure" ]; then
5 update-alternatives --install /usr/bin/wish wish /usr/bin/wish8.6 835 \
6 --slave /usr/share/man/man1/wish.1.gz wish.1 \
7 /usr/share/man/man1/wish8.6.1.gz
8 fi
9
10 #DEBHELPER#
0 #!/bin/sh
1
2 set -e
3
4 if [ "$1" = "remove" ]; then
5 if [ -d /usr/share/doc/tk8.6/examples ]; then
6 # brokenness
7 rm -rf /usr/share/doc/tk8.6/examples
8 fi
9 fi
10
11 #DEBHELPER#
0 #!/bin/sh
1
2 set -e
3
4 if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then
5 if [ -d /usr/lib/tk8.6/demos ]; then
6 # brokenness
7 rm -rf /usr/lib/tk8.6/demos
8 fi
9 fi
10
11 #DEBHELPER#
0 #!/bin/sh
1
2 set -e
3
4 update-alternatives --remove wish /usr/bin/wish8.6
5
6 #DEBHELPER#
0 version=3
1 http://sf.net/tcl/tk(8\.6\.\d+)-src\.tar\.gz