[Pkg-tcltk-commits] r674 - in tk8.6/trunk: . debian debian/patches

sgolovan-guest at alioth.debian.org sgolovan-guest at alioth.debian.org
Mon Jun 30 12:39:47 UTC 2008


Author: sgolovan-guest
Date: 2008-06-30 12:39:47 +0000 (Mon, 30 Jun 2008)
New Revision: 674

Added:
   tk8.6/trunk/debian/
   tk8.6/trunk/debian/README.Debian
   tk8.6/trunk/debian/changelog
   tk8.6/trunk/debian/compat
   tk8.6/trunk/debian/control
   tk8.6/trunk/debian/copyright
   tk8.6/trunk/debian/patches/
   tk8.6/trunk/debian/patches/confsearch.diff
   tk8.6/trunk/debian/patches/manpages.diff
   tk8.6/trunk/debian/patches/non-linux.diff
   tk8.6/trunk/debian/patches/rpath.diff
   tk8.6/trunk/debian/patches/series
   tk8.6/trunk/debian/patches/tklibrary.diff
   tk8.6/trunk/debian/patches/tkport.diff
   tk8.6/trunk/debian/patches/tkprivate.diff
   tk8.6/trunk/debian/rules
   tk8.6/trunk/debian/shlibs.local
   tk8.6/trunk/debian/tk8.6-dev.dirs
   tk8.6/trunk/debian/tk8.6-dev.files
   tk8.6/trunk/debian/tk8.6-doc.files
   tk8.6/trunk/debian/tk8.6.dirs
   tk8.6/trunk/debian/tk8.6.docs
   tk8.6/trunk/debian/tk8.6.files
   tk8.6/trunk/debian/tk8.6.lintian-override
   tk8.6/trunk/debian/tk8.6.menu
   tk8.6/trunk/debian/tk8.6.postinst
   tk8.6/trunk/debian/tk8.6.postrm
   tk8.6/trunk/debian/tk8.6.preinst
   tk8.6/trunk/debian/tk8.6.prerm
   tk8.6/trunk/debian/watch
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: tk8.6/trunk/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: tk8.6/trunk/debian/README.Debian
===================================================================
--- tk8.6/trunk/debian/README.Debian	                        (rev 0)
+++ tk8.6/trunk/debian/README.Debian	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,3 @@
+Please see the Documentation section in the upstream README for a list of
+books on getting started with Tcl/Tk.  Also see the main Tcl/Tk web site
+at http://www.tcl.tk/ for other documentation.

Added: tk8.6/trunk/debian/changelog
===================================================================
--- tk8.6/trunk/debian/changelog	                        (rev 0)
+++ tk8.6/trunk/debian/changelog	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,6 @@
+tk8.6 (8.6.0~a1-1) experimental; urgency=low
+
+  * Initial alpha release.
+
+ -- Sergei Golovan <sgolovan at debian.org>  Mon, 30 Jun 2008 15:57:54 +0400
+

Added: tk8.6/trunk/debian/compat
===================================================================
--- tk8.6/trunk/debian/compat	                        (rev 0)
+++ tk8.6/trunk/debian/compat	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1 @@
+5

Added: tk8.6/trunk/debian/control
===================================================================
--- tk8.6/trunk/debian/control	                        (rev 0)
+++ tk8.6/trunk/debian/control	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,46 @@
+Source: tk8.6
+Section: libs
+Priority: optional
+Maintainer: Tcl/Tk Debian Packagers <pkg-tcltk-devel at lists.alioth.debian.org>
+Uploaders: Chris Waters <xtifr at debian.org>, Sergei Golovan <sgolovan at debian.org>
+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
+Standards-Version: 3.8.0
+Homepage: http://www.tcl.tk/
+
+Package: tk8.6
+Section: libs
+Priority: optional
+Architecture: any
+Depends: ${shlibs:Depends}
+Recommends: xterm | x-terminal-emulator
+Conflicts: tk40 (<= 4.0p3-2), libtk-img (<< 1.2.5)
+Provides: wish
+Description: Tk toolkit for Tcl and X11, v8.6 - run-time files
+ Tk is a cross-platform graphical toolkit which provides the Motif
+ look-and-feel and is implemented using the Tcl scripting language.
+ This package contains everything you need to run Tk (wish) scripts
+ and Tk-enabled apps.
+
+Package: tk8.6-doc
+Section: doc
+Priority: optional
+Architecture: all
+Suggests: tk8.6
+Conflicts: tkdoc
+Provides: tkdoc
+Description: Tk toolkit for Tcl and X11, v8.6 - manual pages
+ Tk is a cross-platform graphical toolkit which provides the Motif
+ look-and-feel and is implemented using the Tcl scripting language.
+ This package contains the manual pages for the Tk commands.
+
+Package: tk8.6-dev
+Section: devel
+Priority: optional
+Architecture: any
+Depends: x11proto-core-dev, libx11-dev, tcl8.6-dev (>= 8.6.0~a1), tk8.6 (= ${binary:Version})
+Suggests: tk8.6-doc
+Description: Tk toolkit for Tcl and X11, v8.6 - development files
+ Tk is a cross-platform graphical toolkit which provides the Motif
+ look-and-feel and is implemented using the Tcl scripting language.
+ This package contains the headers and libraries needed to extend
+ or embed Tk.

Added: tk8.6/trunk/debian/copyright
===================================================================
--- tk8.6/trunk/debian/copyright	                        (rev 0)
+++ tk8.6/trunk/debian/copyright	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,80 @@
+This package was debianized by David Engel <david at debiang.org>
+from sources obtained at http://prdownloads.sourceforge.net/tcl
+
+List of copyright holders of individual files:
+
+Copyright 1985-1987, 1989, 1991 Massachusetts Institute of Technology
+Copyright 1987-1994 Adobe Systems Inc.
+Copyright 1987 Digital Equipment Corporation
+Copyright 1989-1994 The Regents of the University of California
+Copyright 1990, David Koblas
+Copyright 1994-1998 Sun Microsystems, Inc.
+Copyright 1994 Software Research Associates, Inc.
+Copyright 1994,1997 The Australian National University
+Copyright 1997-2000 Ajuba Solutions
+Copyright 1997-2000 Scriptics Corporation
+Copyright 1998 Paul Duffin
+Copyright 1999-2000 Jeffrey Hobbs
+Copyright 2000-2005,2007 ActiveState Corporation
+Copyright 2001-2002, Apple Computer, Inc.
+Copyright 2001-2008 Donal K. Fellows
+Copyright 2001-2004 David Gravereaux
+Copyright 2002 Frederic Bonnet
+Copyright 2002-2003 Keith Packard
+Copyright 2002-2004 Benjamin Riefenstahl
+Copyright 2002-2008 Daniel A. Steffen
+Copyright 2002 David Gravereaux
+Copyright 2002 Ludwig Callewaert
+Copyright 2003 Free Software Foundation, Inc.
+Copyright 2003 Georgios Petasis
+Copyright 2003-2004 Vincent Darley
+Copyright 2003-2006 Joe English
+Copyright 2002-2008 Patrick Thoyts
+Copyright 2004 George Peter Staplin
+Copyright 2005 Neil Madden
+Copyright 2007 the Tk developers
+Copyright 2008 Tcl Core Team
+Copyright Reed Wade
+Copyright Michael Kirkham
+
+Copyright:
+
+This software is copyrighted by the Regents of the University of
+California, Sun Microsystems, Inc., 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.

Added: tk8.6/trunk/debian/patches/confsearch.diff
===================================================================
--- tk8.6/trunk/debian/patches/confsearch.diff	                        (rev 0)
+++ tk8.6/trunk/debian/patches/confsearch.diff	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,32 @@
+Patch by Sergei Golovan allows to find tclConfig.sh in /usr/share/tcltk/tcl8.5
+and tkConfig.sh in /usr/share/tcltk/tk8.5 where they are located in Debian
+installation.
+
+--- tk8.6-8.6.0~a1.orig/unix/configure
++++ tk8.6-8.6.0~a1/unix/configure
+@@ -1430,6 +1430,7 @@
+ 			`ls -d ${prefix}/lib 2>/dev/null` \
+ 			`ls -d /usr/local/lib 2>/dev/null` \
+ 			`ls -d /usr/contrib/lib 2>/dev/null` \
++			`ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \
+ 			`ls -d /usr/lib 2>/dev/null` \
+ 			; do
+ 		    if test -f "$i/tclConfig.sh" ; then
+--- tk8.6-8.6.0~a1.orig/unix/tcl.m4
++++ tk8.6-8.6.0~a1/unix/tcl.m4
+@@ -93,6 +93,7 @@
+ 			`ls -d ${prefix}/lib 2>/dev/null` \
+ 			`ls -d /usr/local/lib 2>/dev/null` \
+ 			`ls -d /usr/contrib/lib 2>/dev/null` \
++			`ls -d /usr/share/tcltk/tcl8.5 2>/dev/null` \
+ 			`ls -d /usr/lib 2>/dev/null` \
+ 			; do
+ 		    if test -f "$i/tclConfig.sh" ; then
+@@ -223,6 +224,7 @@
+ 			`ls -d ${prefix}/lib 2>/dev/null` \
+ 			`ls -d /usr/local/lib 2>/dev/null` \
+ 			`ls -d /usr/contrib/lib 2>/dev/null` \
++			`ls -d /usr/share/tcltk/tk8.5 2>/dev/null` \
+ 			`ls -d /usr/lib 2>/dev/null` \
+ 			; do
+ 		    if test -f "$i/tkConfig.sh" ; then

Added: tk8.6/trunk/debian/patches/manpages.diff
===================================================================
--- tk8.6/trunk/debian/patches/manpages.diff	                        (rev 0)
+++ tk8.6/trunk/debian/patches/manpages.diff	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,23 @@
+Patch by Chris Waters fixes installing of several manual pages which
+aren't installed by upstream script but are referenced inside other
+manual pages.
+
+--- tk8.6-8.6.0~a1.orig/unix/installManPage
++++ tk8.6-8.6.0~a1/unix/installManPage
+@@ -51,7 +51,16 @@
+     }' $MANPAGE`
+ 
+ SECTION=`echo $MANPAGE | sed 's/.*\(.\)$/\1/'`
++NAME=`basename $MANPAGE .$SECTION`
+ SRCDIR=`dirname $MANPAGE`
++
++SPECIALS="FindPhoto"
++for n in $SPECIALS; do
++    if [ "$NAME" = "$n" ] ; then
++	NAMES="$n $NAMES"
++    fi
++done
++
+ FIRST=""
+ for f in $NAMES; do
+     f=$f.$SECTION$SUFFIX

Added: tk8.6/trunk/debian/patches/non-linux.diff
===================================================================
--- tk8.6/trunk/debian/patches/non-linux.diff	                        (rev 0)
+++ tk8.6/trunk/debian/patches/non-linux.diff	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,45 @@
+Patch by Sergei Golovan (originally by Mike Markley and Chris Waters) fixes
+building on non-linux Debian architectures.
+
+--- tk8.6-8.6.0~a1.orig/unix/configure
++++ tk8.6-8.6.0~a1/unix/configure
+@@ -4731,6 +4731,9 @@
+ 		if test "`uname -s`" = "AIX" ; then
+ 		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
+ 		fi
++		if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
++		    tcl_cv_sys_version=NetBSD-Debian
++		fi
+ 	    fi
+ 	fi
+ 
+@@ -5528,7 +5531,7 @@
+ fi
+ 
+ 	    ;;
+-	Linux*)
++	Linux*|GNU*|NetBSD-Debian)
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD_LIBS='${LIBS}'
+ 	    SHLIB_SUFFIX=".so"
+--- tk8.6-8.6.0~a1.orig/unix/tcl.m4
++++ tk8.6-8.6.0~a1/unix/tcl.m4
+@@ -962,6 +962,9 @@
+ 		if test "`uname -s`" = "AIX" ; then
+ 		    tcl_cv_sys_version=AIX-`uname -v`.`uname -r`
+ 		fi
++		if test "`uname -s`" = "NetBSD" -a -f /etc/debian_version ; then
++		    tcl_cv_sys_version=NetBSD-Debian
++		fi
+ 	    fi
+ 	fi
+     ])
+@@ -1418,7 +1421,7 @@
+ 	        ])
+ 	    ])
+ 	    ;;
+-	Linux*)
++	Linux*|GNU*|NetBSD-Debian)
+ 	    SHLIB_CFLAGS="-fPIC"
+ 	    SHLIB_LD_LIBS='${LIBS}'
+ 	    SHLIB_SUFFIX=".so"

Added: tk8.6/trunk/debian/patches/rpath.diff
===================================================================
--- tk8.6/trunk/debian/patches/rpath.diff	                        (rev 0)
+++ tk8.6/trunk/debian/patches/rpath.diff	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,40 @@
+Patch by Chris Waters removes -rpath from search flags and adds -soname
+to library build options.
+
+Also, it fixes Makefile.in to put correct Tk library filename to pkgIndex.tcl
+
+--- tk8.6-8.6.0~a1.orig/unix/configure
++++ tk8.6-8.6.0~a1/unix/configure
+@@ -5539,6 +5539,9 @@
+ 	    # get rid of the warnings.
+ 	    #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
+ 
++	    # following line added by CW for Debian GNU/Linux
++	    TK_SHLIB_LD_EXTRAS="-Wl,-soname,\${TK_LIB_FILE}.0"
++
+ 	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+ 	    DL_OBJS="tclLoadDl.o"
+ 	    DL_LIBS="-ldl"
+--- tk8.6-8.6.0~a1.orig/unix/Makefile.in
++++ tk8.6-8.6.0~a1/unix/Makefile.in
+@@ -708,7 +708,7 @@
+ 		$(TCLVERSION)$(TCLPATCHL)}]} { return }";\
+ 	    relative=`echo | awk '{ORS=" "; split("$(TK_PKG_DIR)",a,"/"); for (f in a) {print ".."}}'`;\
+ 	    echo "package ifneeded Tk $(MAJOR_VERSION).$(MINOR_VERSION)$(PATCH_LEVEL)\
+-		[list load [file join \$$dir $${relative}$(TK_LIB_FILE)] Tk]";\
++		[list load [file join $(LIB_RUNTIME_DIR) $(TK_LIB_FILE).0] Tk]";\
+ 	    ) > "$(PKG_INDEX)"; \
+ 	    fi
+ 	@echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/"
+--- tk8.6-8.6.0~a1.orig/unix/tcl.m4
++++ tk8.6-8.6.0~a1/unix/tcl.m4
+@@ -1429,6 +1429,9 @@
+ 	    # get rid of the warnings.
+ 	    #CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE} -D__NO_STRING_INLINES -D__NO_MATH_INLINES"
+ 
++	    # following line added by CW for Debian GNU/Linux
++	    TK_SHLIB_LD_EXTRAS="-Wl,-soname,\${TK_LIB_FILE}.0"
++
+ 	    SHLIB_LD='${CC} -shared ${CFLAGS} ${LDFLAGS}'
+ 	    DL_OBJS="tclLoadDl.o"
+ 	    DL_LIBS="-ldl"

Added: tk8.6/trunk/debian/patches/series
===================================================================
--- tk8.6/trunk/debian/patches/series	                        (rev 0)
+++ tk8.6/trunk/debian/patches/series	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,7 @@
+tkport.diff
+tklibrary.diff
+tkprivate.diff
+confsearch.diff
+rpath.diff
+non-linux.diff
+manpages.diff

Added: tk8.6/trunk/debian/patches/tklibrary.diff
===================================================================
--- tk8.6/trunk/debian/patches/tklibrary.diff	                        (rev 0)
+++ tk8.6/trunk/debian/patches/tklibrary.diff	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,22 @@
+--- tk8.6-8.6.0~a1.orig/unix/configure
++++ tk8.6-8.6.0~a1/unix/configure
+@@ -10736,7 +10736,7 @@
+     TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
+ fi
+ 
+-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
++test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
+ PRIVATE_INCLUDE_DIR='$(includedir)'
+ HTML_DIR='$(DISTDIR)/html'
+ TK_PKG_DIR='tk$(VERSION)'
+--- tk8.6-8.6.0~a1.orig/unix/configure.in
++++ tk8.6-8.6.0~a1/unix/configure.in
+@@ -552,7 +552,7 @@
+     TCL_STUB_FLAGS="-DUSE_TCL_STUBS"
+ fi
+ 
+-TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
++test -z "$TK_LIBRARY" && TK_LIBRARY='$(prefix)/lib/tk$(VERSION)'
+ PRIVATE_INCLUDE_DIR='$(includedir)'
+ HTML_DIR='$(DISTDIR)/html'
+ TK_PKG_DIR='tk$(VERSION)'

Added: tk8.6/trunk/debian/patches/tkport.diff
===================================================================
--- tk8.6/trunk/debian/patches/tkport.diff	                        (rev 0)
+++ tk8.6/trunk/debian/patches/tkport.diff	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,14 @@
+Patch by Stanislav Maslovski <stanislav.maslovski at gmail.com>.
+See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488501
+
+--- tk8.6-8.6.0~a1.orig/generic/tkPort.h
++++ tk8.6-8.6.0~a1/generic/tkPort.h
+@@ -29,7 +29,7 @@
+ #   if defined(MAC_OSX_TK)
+ #	include "tkMacOSXPort.h"
+ #   else
+-#	include "tkUnixPort.h"
++#	include "../unix/tkUnixPort.h"
+ #   endif
+ #endif
+ 

Added: tk8.6/trunk/debian/patches/tkprivate.diff
===================================================================
--- tk8.6/trunk/debian/patches/tkprivate.diff	                        (rev 0)
+++ tk8.6/trunk/debian/patches/tkprivate.diff	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,41 @@
+Patch by Chris Waters sets path which are normally point to a directory
+with Tk sources to a subdirectory of /usr/include/tcl8.4 (debian/rules
+puts private Tk headers there).
+
+--- tk8.6-8.6.0~a1.orig/unix/tkConfig.sh.in
++++ tk8.6-8.6.0~a1/unix/tkConfig.sh.in
+@@ -55,7 +55,7 @@
+ 
+ # String to pass to linker to pick up the Tk library from its
+ # build directory.
+-TK_BUILD_LIB_SPEC='@TK_BUILD_LIB_SPEC@'
++TK_BUILD_LIB_SPEC='@TK_LIB_SPEC@'
+ 
+ # String to pass to linker to pick up the Tk library from its
+ # installed directory.
+@@ -71,7 +71,7 @@
+ # different place than the directory containing the source files, this
+ # points to the location of the sources, not the location where Tk was
+ # compiled.
+-TK_SRC_DIR='@TK_SRC_DIR@'
++TK_SRC_DIR='@includedir@/tk-private'
+ 
+ # Needed if you want to make a 'fat' shared library library
+ # containing tk objects or link a different wish.
+@@ -86,14 +86,14 @@
+ 
+ # String to pass to linker to pick up the Tk stub library from its
+ # build directory.
+-TK_BUILD_STUB_LIB_SPEC='@TK_BUILD_STUB_LIB_SPEC@'
++TK_BUILD_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@'
+ 
+ # String to pass to linker to pick up the Tk stub library from its
+ # installed directory.
+ TK_STUB_LIB_SPEC='@TK_STUB_LIB_SPEC@'
+ 
+ # Path to the Tk stub library in the build directory.
+-TK_BUILD_STUB_LIB_PATH='@TK_BUILD_STUB_LIB_PATH@'
++TK_BUILD_STUB_LIB_PATH='@TK_STUB_LIB_PATH@'
+ 
+ # Path to the Tk stub library in the install directory.
+ TK_STUB_LIB_PATH='@TK_STUB_LIB_PATH@'

Added: tk8.6/trunk/debian/rules
===================================================================
--- tk8.6/trunk/debian/rules	                        (rev 0)
+++ tk8.6/trunk/debian/rules	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,179 @@
+#!/usr/bin/make -f
+# debian/rules that uses debhelper.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+export QUILT_PATCHES := debian/patches
+
+v = 8.6
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+CFLAGS=-g -O0
+else
+# See bug #446335
+CFLAGS=-g -O2 -fno-unit-at-a-time
+endif
+
+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
+	cd unix && \
+	  TK_LIBRARY="/usr/share/tcltk/tk$(v)" \
+	  ./configure --host=$(DEB_HOST_GNU_TYPE) \
+		      --build=$(DEB_BUILD_GNU_TYPE) \
+		      --prefix=/usr \
+		      --includedir=/usr/include/tcl$(v) \
+		      --with-tcl=/usr/lib/tcl$(v) \
+		      --enable-shared \
+		      --enable-threads \
+		      --disable-rpath \
+		      --enable-xft \
+		      --enable-man-symlinks \
+		      --enable-man-compression=gzip && \
+	  $(MAKE) CFLAGS="$(CFLAGS)"
+	# Build the static library.
+	cd unix && \
+	  ar cr libtk$(v).a *.o && \
+	  ar d libtk$(v).a tkAppInit.o && \
+	  ranlib libtk$(v).a
+	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
+	cd unix && [ ! -f Makefile ] || $(MAKE) distclean
+
+install: install-stamp
+install-stamp: build-stamp
+	dh_testdir
+	dh_testroot
+	dh_installdirs
+	mkdir -p debian/tmp/usr
+	cd unix && \
+	  GZIP=-9 \
+	  $(MAKE) INSTALL_ROOT=`pwd`/../debian/tmp \
+		  MAN_INSTALL_DIR=`pwd`/../debian/tmp/usr/share/man \
+		  MANN_INSTALL_DIR=`pwd`/../debian/tmp/usr/share/man/man3 install
+	# Fix up pkgInstall.tcl
+	cp debian/tmp/usr/lib/tk$(v)/* debian/tmp/usr/share/tcltk/tk$(v)
+	# Fix up the libraries.
+	cp unix/libtk$(v).a debian/tmp/usr/lib
+	mv debian/tmp/usr/lib/libtk$(v).so debian/tmp/usr/lib/libtk$(v).so.0
+	ln -sf libtk$(v).so.0 debian/tmp/usr/lib/libtk$(v).so
+	mv debian/tmp/usr/lib/*.sh debian/tmp/usr/share/tcltk/tk$(v)
+	# Fix up the include files.
+	install -d debian/tmp/usr/include/tcl$(v)/tk-private/generic
+	cp generic/*.h debian/tmp/usr/include/tcl$(v)/tk-private/generic
+	install -d debian/tmp/usr/include/tcl$(v)/tk-private/unix
+	cp unix/*.h debian/tmp/usr/include/tcl$(v)/tk-private/unix
+	install -d debian/tmp/usr/include/tcl$(v)/tk-private/compat
+	cp compat/*.h debian/tmp/usr/include/tcl$(v)/tk-private/compat
+	# Fix up the manpages.
+	cd debian/tmp/usr/share/man/man1 && \
+	  mv wish.1.gz wish$(v).1.gz
+	cd debian/tmp/usr/share/man/man3 && \
+	  for f in *.[3n].gz ; do \
+	     f2=$$(echo $$f | sed -e 's/\.[3n]/.3tk/') ; \
+	     if [ -L $$f ]; then \
+	        l=$$(readlink -n $$f |sed -e 's/\.[3n]/.3tk/') ; \
+	        rm $$f ; \
+	        ln -sf $$l $$f2 ; \
+	     else \
+	     	zcat $$f | sed -e 's/^\.TH \([^ ]\+\|"[^"]\+"\) [3n]/.TH \1 3tk/' \
+			       -e 's/\([0-9A-Za-z]\+\)(3)/\1(3tk)/g' \
+			       -e 's/bgerror(n)/bgerror(3tcl)/g' \
+			       -e 's/fconfigure(n)/fconfigure(3tcl)/g' \
+			       -e 's/history(n)/history(3tcl)/g' \
+			       -e 's/interp(n)/interp(3tcl)/g' \
+			       -e 's/library(n)/library(3tcl)/g' \
+			       -e 's/load(n)/load(3tcl)/g' \
+			       -e 's/package(n)/package(3tcl)/g' \
+			       -e 's/puts(n)/puts(3tcl)/g' \
+			       -e 's/safe(n)/safe(3tcl)/g' \
+			       -e 's/source(n)/source(3tcl)/g' \
+			       -e 's/tclvars(n)/tclvars(3tcl)/g' \
+			       -e 's/unknown(n)/unknown(3tcl)/g' \
+			       -e 's/(n)/(3tk)/g' \
+			 | gzip -9 >$$f2 ; \
+	        rm $$f ; \
+	     fi ; \
+	  done
+	rm -rf `pwd`/debian/tmp/usr/share/tcltk/tk$(v)/demos
+	ln -sf ../../doc/tk$(v)/examples `pwd`/debian/tmp/usr/share/tcltk/tk$(v)/demos 
+	touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+	dh_testdir -i
+	dh_testroot -i
+	dh_movefiles -i
+	dh_installdocs -i
+	dh_installchangelogs -i ChangeLog
+	dh_compress -i
+	dh_fixperms -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir -a
+	dh_testroot -a
+	dh_movefiles -a
+	# now, fix up file locations for .sh
+	mv debian/tk$(v)/usr/share/tcltk/tk$(v)/*.sh \
+	   debian/tk$(v)-dev/usr/share/tcltk/tk$(v)
+	ln -s ../../share/tcltk/tk$(v)/tkConfig.sh \
+	      debian/tk$(v)-dev/usr/lib/tk$(v)/tkConfig.sh
+	dh_installdocs -a
+	install -d `pwd`/debian/tk$(v)/usr/share/doc/tk$(v)/examples/
+	# move around the demos
+	cp -a library/demos/* `pwd`/debian/tk$(v)/usr/share/doc/tk$(v)/examples/
+	rm -f debian/tk$(v)/usr/share/doc/tk$(v)/examples/license.terms
+	dh_installmenu -a
+	dh_installchangelogs -a ChangeLog
+	install -m 644 debian/tk$(v).lintian-override \
+		debian/tk$(v)/usr/share/lintian/overrides/tk$(v)
+	dh_fixperms -a
+	dh_strip -a
+	dh_compress -a -Xusr/share/doc/tk$(v)/examples/
+	dh_makeshlibs -a -V 'tk$(v) (>= 8.6.0~a1)'
+	dh_installdeb -a
+	dh_shlibdeps -a -ldebian/tk$(v)/usr/lib
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+
+get-orig-source:
+	wget -O tk8.6_8.6.0~a1.orig.tar.gz \
+	     http://prdownloads.sourceforge.net/tcl/tk8.6a1-src.tar.gz
+
+.PHONY: patch unpatch clean-patched build clean binary-indep binary-arch binary install get-orig-source
+


Property changes on: tk8.6/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: tk8.6/trunk/debian/shlibs.local
===================================================================
--- tk8.6/trunk/debian/shlibs.local	                        (rev 0)
+++ tk8.6/trunk/debian/shlibs.local	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1 @@
+libtk8.6	1	

Added: tk8.6/trunk/debian/tk8.6-dev.dirs
===================================================================
--- tk8.6/trunk/debian/tk8.6-dev.dirs	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6-dev.dirs	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,2 @@
+usr/lib/tk8.6
+usr/share/tcltk/tk8.6

Added: tk8.6/trunk/debian/tk8.6-dev.files
===================================================================
--- tk8.6/trunk/debian/tk8.6-dev.files	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6-dev.files	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,3 @@
+usr/include
+usr/lib/*.a
+usr/lib/*.so

Added: tk8.6/trunk/debian/tk8.6-doc.files
===================================================================
--- tk8.6/trunk/debian/tk8.6-doc.files	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6-doc.files	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1 @@
+usr/share/man/man3

Added: tk8.6/trunk/debian/tk8.6.dirs
===================================================================
--- tk8.6/trunk/debian/tk8.6.dirs	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6.dirs	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1 @@
+usr/share/lintian/overrides

Added: tk8.6/trunk/debian/tk8.6.docs
===================================================================
--- tk8.6/trunk/debian/tk8.6.docs	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6.docs	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,2 @@
+README
+changes

Added: tk8.6/trunk/debian/tk8.6.files
===================================================================
--- tk8.6/trunk/debian/tk8.6.files	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6.files	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,4 @@
+usr/bin
+usr/share/tcltk/tk8.6
+usr/lib/*.so.*
+usr/share/man/man1

Added: tk8.6/trunk/debian/tk8.6.lintian-override
===================================================================
--- tk8.6/trunk/debian/tk8.6.lintian-override	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6.lintian-override	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1 @@
+tk8.6: package-name-doesnt-match-sonames

Added: tk8.6/trunk/debian/tk8.6.menu
===================================================================
--- tk8.6/trunk/debian/tk8.6.menu	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6.menu	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,4 @@
+?package(tk8.6):needs="x11"\
+	section="Applications/Programming"\
+	title="TkWish8.6"\
+	command="x-terminal-emulator -e /usr/bin/wish8.6"

Added: tk8.6/trunk/debian/tk8.6.postinst
===================================================================
--- tk8.6/trunk/debian/tk8.6.postinst	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6.postinst	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ]; then
+    update-alternatives --install /usr/bin/wish wish /usr/bin/wish8.6 835 \
+			--slave /usr/share/man/man1/wish.1.gz wish.1 \
+				/usr/share/man/man1/wish8.6.1.gz
+fi
+
+#DEBHELPER#

Added: tk8.6/trunk/debian/tk8.6.postrm
===================================================================
--- tk8.6/trunk/debian/tk8.6.postrm	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6.postrm	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "remove" ]; then
+    if [ -d /usr/share/doc/tk8.6/examples ]; then
+	# brokenness
+	rm -rf /usr/share/doc/tk8.6/examples
+    fi
+fi
+
+#DEBHELPER#

Added: tk8.6/trunk/debian/tk8.6.preinst
===================================================================
--- tk8.6/trunk/debian/tk8.6.preinst	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6.preinst	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "upgrade" ] || [ "$1" = "install" ]; then
+    if [ -d /usr/lib/tk8.6/demos ]; then
+	# brokenness
+	rm -rf /usr/lib/tk8.6/demos
+    fi
+fi
+
+#DEBHELPER#

Added: tk8.6/trunk/debian/tk8.6.prerm
===================================================================
--- tk8.6/trunk/debian/tk8.6.prerm	                        (rev 0)
+++ tk8.6/trunk/debian/tk8.6.prerm	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+update-alternatives --remove wish /usr/bin/wish8.6
+
+#DEBHELPER#

Added: tk8.6/trunk/debian/watch
===================================================================
--- tk8.6/trunk/debian/watch	                        (rev 0)
+++ tk8.6/trunk/debian/watch	2008-06-30 12:39:47 UTC (rev 674)
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/tcl/tk(8\.6\.\d+)-src\.tar\.gz




More information about the Pkg-tcltk-commits mailing list