--- itk3-3.3.orig/debian/README.Debian +++ itk3-3.3/debian/README.Debian @@ -0,0 +1,8 @@ +Earlier packages of itcl/itk were given names like "itcl3.1", and were +tied to specific versions of tcl/tk. This version uses the "stubs", +which is supposed to make it independent of the version of tcl/tk in +use. That's the theory. In practice, because of internal incompatibilities +between tcl8.4 and tcl8.5 thish package works with tcl8.4 if built with +tcl8.4, and works with tcl8.5 and tcl8.6 if built with tcl8.5. + + -- Sergei Golovan Wed, 02 Sep 2009 17:30:36 +0400 --- itk3-3.3.orig/debian/copyright +++ itk3-3.3/debian/copyright @@ -0,0 +1,48 @@ +This package was debianized by Chris Waters from sources +found at http://sourceforge.net/project/showfiles.php?group_id=13244 + +Author: Michael J. McLennan (mmclennan@lucent.com) + +Copyright: + +Copyright (c) 1993-1998 Lucent Technologies, Inc. +Copyright (c) 1998-2000 Cadence Design Systems, Inc. + +This software is copyrighted by Cadence Design Systems, 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. --- itk3-3.3.orig/debian/itk3-doc.files +++ itk3-3.3/debian/itk3-doc.files @@ -0,0 +1 @@ +usr/share/man/man3/*.3itk --- itk3-3.3.orig/debian/itk3-dev.files +++ itk3-3.3/debian/itk3-dev.files @@ -0,0 +1,4 @@ +usr/include/tcl*/itk* +usr/lib/libitk*.a +usr/lib/libitk*.so +usr/share/tcltk/itk*/*.sh --- itk3-3.3.orig/debian/changelog +++ itk3-3.3/debian/changelog @@ -0,0 +1,128 @@ +itk3 (3.3-4ubuntu1) raring; urgency=low + + * Build against multiarched tcl8.5 location. + + -- Dmitrijs Ledkovs Wed, 03 Apr 2013 12:07:52 +0100 + +itk3 (3.3-4) unstable; urgency=low + + * Removed unnecessary recommended dependency of itk3-doc on itcl3-doc. + * Removed Chris Waters from the uploaders list (closes: #664109). + * Bumped standards-version to 3.9.3. + + -- Sergei Golovan Wed, 30 May 2012 07:38:35 +0400 + +itk3 (3.3-3) unstable; urgency=low + + * Fixed FTBFS introduced by moving tclConfig.sh to /usr/lib + (closes: #618145). + * Added ${misc:Depends} substitution variable to debian/control. + * Bumped standards-version to 3.9.2. + + -- Sergei Golovan Fri, 12 Aug 2011 20:19:11 +0400 + +itk3 (3.3-2) unstable; urgency=low + + * Fixed build for non-linux Debian architectures. + + -- Sergei Golovan Fri, 18 Sep 2009 10:42:16 +0400 + +itk3 (3.3-1) unstable; urgency=low + + * New upstream release, moving itk3 to a separate source package. + * Switched to Tcl/Tk 8.5 as a dependency (closes: #497447). + * Switched to quilt for patch management. + * Remove static library from the binary package. + * Bumped standards-version to 3.8.3. + * Added version to shlibs which bounds itk3 dependencies from both sides. + + -- Sergei Golovan Fri, 04 Sep 2009 18:30:08 +0400 + +itcl3 (3.2.1-5) unstable; urgency=low + + * Fixed installing lintian overrides for itcl3 and itk3 (moved them from + binary-indep to binary-arch target). + * Removed dependency of itcl3-dev and itk3-dev on build-essential package + libc6-dev. + * Loosened dependencies of itcl3-dev and itk3-dev on itcl3-doc and itk3-doc + from recommends to suggests. + + -- Sergei Golovan Sun, 23 Mar 2008 10:34:42 +0300 + +itcl3 (3.2.1-4) unstable; urgency=low + + * New maintainer Debian Tcl/Tk Packagers + . + * Acknowledged NMU by Amaya Rodrigo Sastre. + * Added homepage header to debian/control. + * Removed non-UTF-8 characters from the package descriptions + (closes: #242690). + * Build the package using the default Tcl/Tk version. + * Bumped standards version to 3.7.3. + * Bumped debhelper compatibility level to 5. + * Replaced deprecated Source-Version substitution variable by + binary:Version in debian/control. + * Moved itcl3, itk3 package files to a subdirectory of /usr/share/tcltk + directory to meke the package compliant to Debian Tcl/Tk policy. + * Changed itcl3-doc and itk3-doc packages section to doc. + * Fixed call to make clean and make distclean in clean target of + debian/rules. + * Fixed clean after the package build (closes: #424422). + * Added missing string substitutions in itclConfig.sh and itkConfig.sh + (closes: #244597). + * Overridden lintian warnings package-name-doesnt-match-sonames for itcl3 + and itk3 packages as they aren't usual library packages. + + -- Sergei Golovan Fri, 01 Feb 2008 19:06:33 +0300 + +itcl3 (3.2.1-3.1) unstable; urgency=low + + * Non-maintainer upload. + * Update build-deps for xlibs-dev removal; closes: #346711. + * Credit and Big Thanks to Justin Pryzby + for the patch and testing. + + -- Amaya Rodrigo Sastre Thu, 19 Jan 2006 12:54:55 +0100 + +itcl3 (3.2.1-3) unstable; urgency=low + + * Added conflicts with old version of the insight package, which + included its own internal versions of the itcl3.2 libraries + (closes: #210199, #210200). + * Hack pkgIndex.tcl to load the proper shared library (closes: #21119). + + -- Chris Waters Tue, 16 Sep 2003 15:26:19 -0700 + +itcl3 (3.2.1-2) unstable; urgency=low + + * Don't override CFLAGS in debian/rules - this is no longer supported + upstream, and (among other things), it causes the -fPIC flag to go + away (closes: #209153). + * Fix debian/rules to properly generate itkConfig.sh (closes: #209175). + + -- Chris Waters Mon, 8 Sep 2003 15:57:12 -0700 + +itcl3 (3.2.1-1) unstable; urgency=low + + * Changed direct symlink to indirect one to match dependencies (keeps + lintian quiet). + * Added quick README.Debian to explain package renaming. + * First actual release to Debian archives. + + -- Chris Waters Sun, 24 Aug 2003 15:02:03 -0700 + +itcl3 (3.2.1-0pre2) unstable; urgency=low + + * Second prerelease testing package. Changed package name(s). + * Removed provides lines for itclsh and itkwish (which no are no longer + provided). + * Although this itcl *should* work with any tcl8.x, my tests indicate + that it actually needs 8.4. + + -- Chris Waters Wed, 20 Aug 2003 13:43:33 -0700 + +itcl3.2 (3.2.1-0pre1) unstable; urgency=low + + * New itcl package, prerelease testing package. + + -- Chris Waters Mon, 21 Jul 2003 19:57:16 -0700 --- itk3-3.3.orig/debian/control +++ itk3-3.3/debian/control @@ -0,0 +1,57 @@ +Source: itk3 +Section: libs +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Tcl/Tk Packagers +Uploaders: Sergei Golovan +Build-Depends: debhelper (>= 5.0.0), libxt-dev, itcl3-dev (>> 3.3), tk8.5-dev, quilt +Standards-Version: 3.9.3 +Homepage: http://incrtcl.sourceforge.net/ + +Package: itk3 +Section: libs +Priority: optional +Architecture: any +Depends: ${shlibs:Depends}, tk8.5, itcl3, ${misc:Depends} +Suggests: itk3-doc +Conflicts: insight (<= 5.3+cvs.2003.08.30-1) +Description: [incr Tk] OOP extension for Tk - run-time files + [incr Tk] (or itk) combines the object-oriented power of [incr Tcl] + with the popular Tk graphical toolkit to create a framework for + creating mega-widgets. One such set of mega-widgets is provided by + the iwidgets package. + . + This package contains everything you need to run itk scripts and + itk-enabled apps. + +Package: itk3-dev +Section: devel +Priority: optional +Architecture: any +Depends: itcl3-dev, tk8.5-dev, itk3 (= ${binary:Version}), ${misc:Depends} +Conflicts: itk-dev, itcl3.0-dev (<< 3.0.1) +Suggests: itk3-doc +Description: [incr Tk] OOP extension for Tk - development files + [incr Tk] (or itk) combines the object-oriented power of [incr Tcl] + with the popular Tk graphical toolkit to create a framework for + creating mega-widgets. One such set of mega-widgets is provided by + the iwidgets package. + . + This package contains the headers and libraries needed to embed or + add C extensions to itk. + +Package: itk3-doc +Section: doc +Priority: optional +Architecture: all +Depends: ${misc:Depends} +Suggests: itk3 +Conflicts: itk-dev, itk-doc +Provides: itk-doc +Description: [incr Tk] OOP extension for Tk - manual pages + [incr Tk] (or itk) combines the object-oriented power of [incr Tcl] + with the popular Tk graphical toolkit to create a framework for + creating mega-widgets. One such set of mega-widgets is provided by + the iwidgets package. + . + This package contains the man pages for the classes provided by itk. --- itk3-3.3.orig/debian/rules +++ itk3-3.3/debian/rules @@ -0,0 +1,158 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export QUILT_PATCHES := debian/patches + +include /usr/share/dpkg/architecture.mk + +vmajor=$(shell dpkg-parsechangelog | grep ^Version: | sed 's/[^0-9]*\([0-9]*\).*/\1/') +vminor=$(shell dpkg-parsechangelog | grep ^Version: | sed 's/[^0-9]*[0-9]*\.\([0-9]*\).*/\1/') +vrelease=$(shell dpkg-parsechangelog | grep ^Version: | sed 's/[^0-9]*[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/') +v=$(vmajor).$(vminor) +v1=$(vmajor).$(shell expr $(vminor) + 1) +dtmp=$(shell pwd)/debian/tmp + +tclv=8.5 + +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 + # + sh ./configure --prefix=/usr \ + --includedir=/usr/include/tcl$(tclv) \ + --enable-shared \ + --enable-threads \ + --with-itcl=$$(ls -d /usr/share/tcltk/itcl*) \ + --with-tcl=/usr/lib/$(DEB_HOST_MULTIARCH)/tcl$(tclv) \ + --with-tk=/usr/lib/$(DEB_HOST_MULTIARCH)/tk$(tclv) + $(MAKE) LIBS="-Wl,-soname,\$$@.1" + # + 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 + # + rm -f itkConfig.sh pkgIndex.tcl + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + # + mkdir -p debian/tmp + $(MAKE) prefix=$(dtmp)/usr \ + exec_prefix=$(dtmp)/usr \ + includedir=$(dtmp)/usr/include/tcl$(tclv) \ + install + # + # Fix up the itk libraries. + mv $(dtmp)/usr/lib/itk*/libitk$(v).so $(dtmp)/usr/lib/libitk$(v).so.1 + mv $(dtmp)/usr/lib/itk*/*.a $(dtmp)/usr/lib + ln -sf libitk$(v).so.1 $(dtmp)/usr/lib/libitk$(v).so + # (itkConfig.sh doesn't get installed at all, so we install it here) + sed -e "s:^\(ITK_\(BUILD_\)\?LIB_SPEC\)=.*$$:\1='-L/usr/lib -litk$(v)':" \ + -e "s:^\(ITK_\(BUILD_\)\?STUB_LIB_SPEC\)=.*$$:\1='-L/usr/lib -litkstub$(v)':" \ + -e "s:^\(ITK_SRC_DIR\)=.*$$:\1='/usr/include/tcl$(tclv)/itk-private':" \ + -e "s:^\(ITK_LIB_FILE\)=.*$$:\1=libitk$(v).so.1:" \ + -e "s:^\(ITK_STUB_LIB_FILE\)=.*$$:\1=libitkstub$(v).a:" \ + -e "s:^\(ITCL_VERSION\)=.*$$:\1='$(v)':" \ + -e "s:^\(ITCL_MAJOR_VERSION\)=.*$$:\1='$(vmajor)':" \ + -e "s:^\(ITCL_MINOR_VERSION\)=.*$$:\1='$(vminor)':" \ + itkConfig.sh > $(dtmp)/usr/lib/itk$(v)/itkConfig.sh + # + # Move the Tcl library to /usr/share/tcltk + install -d -m 755 $(dtmp)/usr/share/tcltk + mv $(dtmp)/usr/lib/itk$(v) $(dtmp)/usr/share/tcltk/ + # + # Fix up the include files. + install -d $(dtmp)/usr/include/tcl$(tclv)/itk-private/generic + cp generic/*.h $(dtmp)/usr/include/tcl$(tclv)/itk-private/generic + # + # Fix up the manpages. + # - just remove the installed ones, they're all mixed together + rm -r $(dtmp)/usr/man + mkdir -p $(dtmp)/usr/share/man/man3 + # + cp doc/*.n $(dtmp)/usr/share/man/man3 + cd $(dtmp)/usr/share/man/man3 && \ + for i in *.n ; do \ + sed -i -e'/^\.so man\.macros/d' \ + -e'/^\.BS/d' \ + -e'/^\.BE/d' \ + -e'/^\.CS/d' \ + -e'/^\.CE/d' \ + -e's/^\.TH \([^ ]\+\) n /.TH \1 3itk /' $$i ; \ + mv $$i `echo $$i | sed -e 's/\.n/\.3itk/'` ; \ + done + # + dh_movefiles -pitk3-dev + dh_movefiles -Nitk3-dev + # + touch install-stamp + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -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_installdocs -a + install -D -m 644 debian/itk3.lintian-override \ + debian/itk3/usr/share/lintian/overrides/itk3 + dh_installchangelogs -a ChangeLog + # + # hack up the /usr/doc links for dependent packages + rm -rf debian/itk3-dev/usr/share/doc/itk3-dev + ln -sf itk3 debian/itk3-dev/usr/share/doc/itk3-dev + # + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a -V 'itk3 (>= $(v)~), itk3 (<< $(v1)~)' + dh_installdeb -a + dh_shlibdeps -a + 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 +.PHONY: patch unpatch build clean clean-patched binary-indep binary-arch binary install --- itk3-3.3.orig/debian/itk3.files +++ itk3-3.3/debian/itk3.files @@ -0,0 +1,2 @@ +usr/share/tcltk/itk*/* +usr/lib/libitk*.so.* --- itk3-3.3.orig/debian/itk3.docs +++ itk3-3.3/debian/itk3.docs @@ -0,0 +1,4 @@ +README +INCOMPATIBLE +TODO +CHANGES --- itk3-3.3.orig/debian/README.source +++ itk3-3.3/debian/README.source @@ -0,0 +1,8 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To get detailed instructions on how to apply the series of patches +and modify them, please read /usr/share/doc/quilt/README.source + + -- Sergei Golovan Wed, 02 Sep 2009 17:32:39 +0400 --- itk3-3.3.orig/debian/compat +++ itk3-3.3/debian/compat @@ -0,0 +1 @@ +5 --- itk3-3.3.orig/debian/itk3-doc.docs +++ itk3-3.3/debian/itk3-doc.docs @@ -0,0 +1,4 @@ +README +INCOMPATIBLE +TODO +CHANGES --- itk3-3.3.orig/debian/itk3.lintian-override +++ itk3-3.3/debian/itk3.lintian-override @@ -0,0 +1 @@ +itk3: package-name-doesnt-match-sonames --- itk3-3.3.orig/debian/patches/non-linux.patch +++ itk3-3.3/debian/patches/non-linux.patch @@ -0,0 +1,25 @@ +Patch by Sergei Golovan fixes build on hurd-i386, kfreebsd-i386, +kfreebsd-amd64 architectures. + +--- itk3-3.3.orig/configure ++++ itk3-3.3/configure +@@ -8268,7 +8268,7 @@ + fi + fi + ;; +- Linux*) ++ Linux*|GNU*) + SHLIB_CFLAGS="-fPIC" + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" +--- itk3-3.3.orig/tclconfig/tcl.m4 ++++ itk3-3.3/tclconfig/tcl.m4 +@@ -1249,7 +1249,7 @@ + fi + fi + ;; +- Linux*) ++ Linux*|GNU*) + SHLIB_CFLAGS="-fPIC" + SHLIB_LD_LIBS='${LIBS}' + SHLIB_SUFFIX=".so" --- itk3-3.3.orig/debian/patches/pkgindex.patch +++ itk3-3.3/debian/patches/pkgindex.patch @@ -0,0 +1,7 @@ +--- itk3-3.3.orig/pkgIndex.tcl.in ++++ itk3-3.3/pkgIndex.tcl.in +@@ -1,3 +1,3 @@ + # Tcl package index file, version 1.0 + +-package ifneeded Itk @PACKAGE_VERSION@ [list load [file join $dir "@PKG_LIB_FILE@"] Itk] ++package ifneeded Itk @PACKAGE_VERSION@ [list load [file join /usr lib "@PKG_LIB_FILE@.1"] Itk] --- itk3-3.3.orig/debian/patches/stubs.patch +++ itk3-3.3/debian/patches/stubs.patch @@ -0,0 +1,57 @@ +--- itk3-3.3.orig/configure.in ++++ itk3-3.3/config/configure.in +@@ -86,7 +86,7 @@ + TEA_ADD_INCLUDES([${ITCL_INCLUDES} -I\"`${CYGPATH} ${srcdir}/generic`\"]) + TEA_ADD_LIBS([]) + TEA_ADD_CFLAGS([]) +-#TEA_ADD_STUB_SOURCES([itkStubLib.c]) ++TEA_ADD_STUB_SOURCES([itkStubLib.c]) + TEA_ADD_TCL_SOURCES([library/Archetype.itk + library/Toplevel.itk + library/Widget.itk +--- itk3-3.3.orig/configure ++++ itk3-3.3/config/configure. +@@ -6472,7 +6472,31 @@ + PKG_CFLAGS="$PKG_CFLAGS " + + +-#TEA_ADD_STUB_SOURCES([itkStubLib.c]) ++ ++ vars="itkStubLib.c" ++ for i in $vars; do ++ # check for existence - allows for generic/win/unix VPATH ++ if test ! -f "${srcdir}/$i" -a ! -f "${srcdir}/generic/$i" \ ++ -a ! -f "${srcdir}/win/$i" -a ! -f "${srcdir}/unix/$i" \ ++ ; then ++ { { echo "$as_me:$LINENO: error: could not find stub source file '$i'" >&5 ++echo "$as_me: error: could not find stub source file '$i'" >&2;} ++ { (exit 1); exit 1; }; } ++ fi ++ PKG_STUB_SOURCES="$PKG_STUB_SOURCES $i" ++ # this assumes it is in a VPATH dir ++ i=`basename $i` ++ # handle user calling this before or after TEA_SETUP_COMPILER ++ if test x"${OBJEXT}" != x ; then ++ j="`echo $i | sed -e 's/\.[^.]*$//'`.${OBJEXT}" ++ else ++ j="`echo $i | sed -e 's/\.[^.]*$//'`.\${OBJEXT}" ++ fi ++ PKG_STUB_OBJECTS="$PKG_STUB_OBJECTS $j" ++ done ++ ++ ++ + + vars="library/Archetype.itk + library/Toplevel.itk +--- itk3-3.3.orig/Makefile.in ++++ itk3-3.3/config/Makefile.in +@@ -77,7 +77,7 @@ + PKG_LIB_FILE = @PKG_LIB_FILE@ + PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@ + +-lib_BINARIES = $(PKG_LIB_FILE) ++lib_BINARIES = $(PKG_LIB_FILE) $(PKG_STUB_LIB_FILE) + BINARIES = $(lib_BINARIES) + + SHELL = @SHELL@ --- itk3-3.3.orig/debian/patches/series +++ itk3-3.3/debian/patches/series @@ -0,0 +1,3 @@ +pkgindex.patch +stubs.patch +non-linux.patch