[Pkg-tcltk-commits] r1168 - in itcl3/tags: . 3.4~b1-3/debian
sgolovan at alioth.debian.org
sgolovan at alioth.debian.org
Fri Aug 12 16:18:17 UTC 2011
Author: sgolovan
Date: 2011-08-12 16:18:17 +0000 (Fri, 12 Aug 2011)
New Revision: 1168
Added:
itcl3/tags/3.4~b1-3/
itcl3/tags/3.4~b1-3/debian/changelog
itcl3/tags/3.4~b1-3/debian/control
itcl3/tags/3.4~b1-3/debian/rules
Removed:
itcl3/tags/3.4~b1-3/debian/changelog
itcl3/tags/3.4~b1-3/debian/control
itcl3/tags/3.4~b1-3/debian/rules
Log:
[svn-buildpackage] Tagging itcl3 3.4~b1-3
Deleted: itcl3/tags/3.4~b1-3/debian/changelog
===================================================================
--- itcl3/trunk/debian/changelog 2011-08-09 19:21:25 UTC (rev 1166)
+++ itcl3/tags/3.4~b1-3/debian/changelog 2011-08-12 16:18:17 UTC (rev 1168)
@@ -1,111 +0,0 @@
-itcl3 (3.4~b1-3) UNRELEASED; urgency=low
-
- * NOT RELEASED YET
-
- -- Sergei Golovan <sgolovan at debian.org> Fri, 18 Sep 2009 11:29:48 +0400
-
-itcl3 (3.4~b1-2) unstable; urgency=low
-
- * Fixed build for non-linux Debian architectures.
-
- -- Sergei Golovan <sgolovan at debian.org> Fri, 18 Sep 2009 10:29:56 +0400
-
-itcl3 (3.4~b1-1) unstable; urgency=low
-
- * New upstream release, moving itk3 to a separate source package.
- * Switched to Tcl/Tk 8.5 as a dependency.
- * 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 itcl3 dependencies from both sides.
-
- -- Sergei Golovan <sgolovan at debian.org> Fri, 04 Sep 2009 18:21:23 +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 <sgolovan at debian.org> Sun, 23 Mar 2008 10:34:42 +0300
-
-itcl3 (3.2.1-4) unstable; urgency=low
-
- * New maintainer Debian Tcl/Tk Packagers
- <pkg-tcltk-devel at lists.alioth.debian.org>.
- * 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 <sgolovan at debian.org> 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
- <justinpryzby at users.sourceforge.net> for the patch and testing.
-
- -- Amaya Rodrigo Sastre <amaya at debian.org> 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 <xtifr at debian.org> 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 <xtifr at debian.org> 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 <xtifr at debian.org> 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 <xtifr at debian.org> 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 <xtifr at debian.org> Mon, 21 Jul 2003 19:57:16 -0700
Copied: itcl3/tags/3.4~b1-3/debian/changelog (from rev 1167, itcl3/trunk/debian/changelog)
===================================================================
--- itcl3/tags/3.4~b1-3/debian/changelog (rev 0)
+++ itcl3/tags/3.4~b1-3/debian/changelog 2011-08-12 16:18:17 UTC (rev 1168)
@@ -0,0 +1,114 @@
+itcl3 (3.4~b1-3) unstable; urgency=low
+
+ * Fixed FTBFS introduced by moving tclConfig.sh to /usr/lib
+ (closes: #618220).
+ * Added ${misc:Depends} substitution variable to debian/control.
+ * Bumped standards-version to 3.9.2.
+
+ -- Sergei Golovan <sgolovan at debian.org> Fri, 12 Aug 2011 20:09:26 +0400
+
+itcl3 (3.4~b1-2) unstable; urgency=low
+
+ * Fixed build for non-linux Debian architectures.
+
+ -- Sergei Golovan <sgolovan at debian.org> Fri, 18 Sep 2009 10:29:56 +0400
+
+itcl3 (3.4~b1-1) unstable; urgency=low
+
+ * New upstream release, moving itk3 to a separate source package.
+ * Switched to Tcl/Tk 8.5 as a dependency.
+ * 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 itcl3 dependencies from both sides.
+
+ -- Sergei Golovan <sgolovan at debian.org> Fri, 04 Sep 2009 18:21:23 +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 <sgolovan at debian.org> Sun, 23 Mar 2008 10:34:42 +0300
+
+itcl3 (3.2.1-4) unstable; urgency=low
+
+ * New maintainer Debian Tcl/Tk Packagers
+ <pkg-tcltk-devel at lists.alioth.debian.org>.
+ * 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 <sgolovan at debian.org> 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
+ <justinpryzby at users.sourceforge.net> for the patch and testing.
+
+ -- Amaya Rodrigo Sastre <amaya at debian.org> 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 <xtifr at debian.org> 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 <xtifr at debian.org> 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 <xtifr at debian.org> 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 <xtifr at debian.org> 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 <xtifr at debian.org> Mon, 21 Jul 2003 19:57:16 -0700
Deleted: itcl3/tags/3.4~b1-3/debian/control
===================================================================
--- itcl3/trunk/debian/control 2011-08-09 19:21:25 UTC (rev 1166)
+++ itcl3/tags/3.4~b1-3/debian/control 2011-08-12 16:18:17 UTC (rev 1168)
@@ -1,59 +0,0 @@
-Source: itcl3
-Section: libs
-Priority: optional
-Maintainer: Debian Tcl/Tk 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), tcl8.5-dev, quilt
-Standards-Version: 3.8.3
-Homepage: http://incrtcl.sourceforge.net/
-
-Package: itcl3
-Section: libs
-Priority: optional
-Architecture: any
-Depends: ${shlibs:Depends}, tcl8.5
-Suggests: itcl3-doc
-Conflicts: insight (<= 5.3+cvs.2003.08.30-1)
-Description: [incr Tcl] OOP extension for Tcl - run-time files
- [incr Tcl] (or itcl) is a popular object-oriented extension for the
- embeddable Tcl scripting language. The name is a play on C++, and
- itcl has a similar object model, including multiple inheritance and
- public and private classes and variables. Unlike most OOP extensions
- to Tcl, itcl is written in C for speed.
- .
- This package contains everything you need to run itcl scripts and
- itcl-enabled apps.
-
-Package: itcl3-dev
-Section: devel
-Priority: optional
-Architecture: any
-Depends: tcl8.5-dev, itcl3 (= ${binary:Version})
-Conflicts: itcl-dev
-Suggests: itcl3-doc
-Description: [incr Tcl] OOP extension for Tcl - development files
- [incr Tcl] (or itcl) is a popular object-oriented extension for the
- embeddable Tcl scripting language. The name is a play on C++, and
- itcl has a similar object model, including multiple inheritance and
- public and private classes and variables. Unlike most OOP extensions
- to Tcl, itcl is written in C for speed.
- .
- This package contains the headers and libraries needed to embed or
- add C extensions to itcl.
-
-Package: itcl3-doc
-Section: doc
-Priority: optional
-Architecture: all
-Suggests: itcl3
-Conflicts: itcl-dev, itcl-doc
-Provides: itcl-doc
-Description: [incr Tcl] OOP extension for Tcl - manual pages
- [incr Tcl] (or itcl) is a popular object-oriented extension for the
- embeddable Tcl scripting language. The name is a play on C++, and
- itcl has a similar object model, including multiple inheritance and
- public and private classes and variables. Unlike most OOP extensions
- to Tcl, itcl is written in C for speed.
- .
- This package contains the man pages for the new commands that itcl
- adds to Tcl.
Copied: itcl3/tags/3.4~b1-3/debian/control (from rev 1167, itcl3/trunk/debian/control)
===================================================================
--- itcl3/tags/3.4~b1-3/debian/control (rev 0)
+++ itcl3/tags/3.4~b1-3/debian/control 2011-08-12 16:18:17 UTC (rev 1168)
@@ -0,0 +1,60 @@
+Source: itcl3
+Section: libs
+Priority: optional
+Maintainer: Debian Tcl/Tk 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), tcl8.5-dev, quilt
+Standards-Version: 3.9.2
+Homepage: http://incrtcl.sourceforge.net/
+
+Package: itcl3
+Section: libs
+Priority: optional
+Architecture: any
+Depends: ${shlibs:Depends}, tcl8.5, ${misc:Depends}
+Suggests: itcl3-doc
+Conflicts: insight (<= 5.3+cvs.2003.08.30-1)
+Description: [incr Tcl] OOP extension for Tcl - run-time files
+ [incr Tcl] (or itcl) is a popular object-oriented extension for the
+ embeddable Tcl scripting language. The name is a play on C++, and
+ itcl has a similar object model, including multiple inheritance and
+ public and private classes and variables. Unlike most OOP extensions
+ to Tcl, itcl is written in C for speed.
+ .
+ This package contains everything you need to run itcl scripts and
+ itcl-enabled apps.
+
+Package: itcl3-dev
+Section: devel
+Priority: optional
+Architecture: any
+Depends: tcl8.5-dev, itcl3 (= ${binary:Version}), ${misc:Depends}
+Conflicts: itcl-dev
+Suggests: itcl3-doc
+Description: [incr Tcl] OOP extension for Tcl - development files
+ [incr Tcl] (or itcl) is a popular object-oriented extension for the
+ embeddable Tcl scripting language. The name is a play on C++, and
+ itcl has a similar object model, including multiple inheritance and
+ public and private classes and variables. Unlike most OOP extensions
+ to Tcl, itcl is written in C for speed.
+ .
+ This package contains the headers and libraries needed to embed or
+ add C extensions to itcl.
+
+Package: itcl3-doc
+Section: doc
+Priority: optional
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: itcl3
+Conflicts: itcl-dev, itcl-doc
+Provides: itcl-doc
+Description: [incr Tcl] OOP extension for Tcl - manual pages
+ [incr Tcl] (or itcl) is a popular object-oriented extension for the
+ embeddable Tcl scripting language. The name is a play on C++, and
+ itcl has a similar object model, including multiple inheritance and
+ public and private classes and variables. Unlike most OOP extensions
+ to Tcl, itcl is written in C for speed.
+ .
+ This package contains the man pages for the new commands that itcl
+ adds to Tcl.
Deleted: itcl3/tags/3.4~b1-3/debian/rules
===================================================================
--- itcl3/trunk/debian/rules 2011-08-09 19:21:25 UTC (rev 1166)
+++ itcl3/tags/3.4~b1-3/debian/rules 2011-08-12 16:18:17 UTC (rev 1168)
@@ -1,153 +0,0 @@
-#!/usr/bin/make -f
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-export QUILT_PATCHES := debian/patches
-
-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-tcl=/usr/share/tcltk/tcl$(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 itclConfig.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 itcl libraries.
- mv $(dtmp)/usr/lib/itcl*/libitcl$(v).so $(dtmp)/usr/lib/libitcl$(v).so.1
- mv $(dtmp)/usr/lib/itcl*/*.a $(dtmp)/usr/lib/
- ln -sf libitcl$(v).so.1 $(dtmp)/usr/lib/libitcl$(v).so
- # (itclConfig.sh doesn't get installed at all, so we install it here)
- sed -e "s:^\(\(ITCL\|itcl\)_\(BUILD_\)\?LIB_SPEC\)=.*$$:\1='-L/usr/lib -litcl$(v)':" \
- -e "s:^\(\(ITCL\|itcl\)_\(BUILD_\)\?STUB_LIB_SPEC\)=.*$$:\1='-L/usr/lib -litclstub$(v)':" \
- -e "s:^\(\(ITCL\|itcl\)_\(BUILD_\)\?STUB_LIB_PATH\)=.*$$:\1=/usr/lib/libitclstub$(v).a:" \
- -e "s:^\(\(ITCL\|itcl\)_SRC_DIR\)=.*$$:\1='/usr/include/tcl$(tclv)/itcl-private':" \
- -e "s:^\(\(ITCL\|itcl\)_LIB_FILE\)=.*$$:\1=libitcl$(v).so.1:" \
- -e "s:^\(\(ITCL\|itcl\)_STUB_LIB_FILE\)=.*$$:\1=libitclstub$(v).a:" \
- -e "s:^\(\(ITCL\|itcl\)_VERSION\)=.*$$:\1='$(v)':" \
- itclConfig.sh > $(dtmp)/usr/lib/itcl$(v)/itclConfig.sh
- #
- # Move the Tcl library to /usr/share/tcltk
- install -d -m 755 $(dtmp)/usr/share/tcltk
- mv $(dtmp)/usr/lib/itcl$(v) $(dtmp)/usr/share/tcltk/
- #
- # Fix up the include files.
- install -d $(dtmp)/usr/include/tcl$(tclv)/itcl-private/generic
- cp generic/*.h $(dtmp)/usr/include/tcl$(tclv)/itcl-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 3itcl /' $$i ; \
- mv $$i `echo $$i | sed -e 's/\.n/\.3itcl/'` ; \
- done
- #
- dh_movefiles -pitcl3-dev
- dh_movefiles -Nitcl3-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/itcl3.lintian-override \
- debian/itcl3/usr/share/lintian/overrides/itcl3
- dh_installchangelogs -a ChangeLog
- #
- # hack up the /usr/doc links for dependent packages
- rm -rf debian/itcl3-dev/usr/share/doc/itcl3-dev
- ln -sf itcl3 debian/itcl3-dev/usr/share/doc/itcl3-dev
- #
- dh_strip -a
- dh_compress -a
- dh_fixperms -a
- dh_makeshlibs -a -V 'itcl3 (>= $(v)~), itcl3 (<< $(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
Copied: itcl3/tags/3.4~b1-3/debian/rules (from rev 1167, itcl3/trunk/debian/rules)
===================================================================
--- itcl3/tags/3.4~b1-3/debian/rules (rev 0)
+++ itcl3/tags/3.4~b1-3/debian/rules 2011-08-12 16:18:17 UTC (rev 1168)
@@ -0,0 +1,153 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export QUILT_PATCHES := debian/patches
+
+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-tcl=/usr/lib/tcl$(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 itclConfig.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 itcl libraries.
+ mv $(dtmp)/usr/lib/itcl*/libitcl$(v).so $(dtmp)/usr/lib/libitcl$(v).so.1
+ mv $(dtmp)/usr/lib/itcl*/*.a $(dtmp)/usr/lib/
+ ln -sf libitcl$(v).so.1 $(dtmp)/usr/lib/libitcl$(v).so
+ # (itclConfig.sh doesn't get installed at all, so we install it here)
+ sed -e "s:^\(\(ITCL\|itcl\)_\(BUILD_\)\?LIB_SPEC\)=.*$$:\1='-L/usr/lib -litcl$(v)':" \
+ -e "s:^\(\(ITCL\|itcl\)_\(BUILD_\)\?STUB_LIB_SPEC\)=.*$$:\1='-L/usr/lib -litclstub$(v)':" \
+ -e "s:^\(\(ITCL\|itcl\)_\(BUILD_\)\?STUB_LIB_PATH\)=.*$$:\1=/usr/lib/libitclstub$(v).a:" \
+ -e "s:^\(\(ITCL\|itcl\)_SRC_DIR\)=.*$$:\1='/usr/include/tcl$(tclv)/itcl-private':" \
+ -e "s:^\(\(ITCL\|itcl\)_LIB_FILE\)=.*$$:\1=libitcl$(v).so.1:" \
+ -e "s:^\(\(ITCL\|itcl\)_STUB_LIB_FILE\)=.*$$:\1=libitclstub$(v).a:" \
+ -e "s:^\(\(ITCL\|itcl\)_VERSION\)=.*$$:\1='$(v)':" \
+ itclConfig.sh > $(dtmp)/usr/lib/itcl$(v)/itclConfig.sh
+ #
+ # Move the Tcl library to /usr/share/tcltk
+ install -d -m 755 $(dtmp)/usr/share/tcltk
+ mv $(dtmp)/usr/lib/itcl$(v) $(dtmp)/usr/share/tcltk/
+ #
+ # Fix up the include files.
+ install -d $(dtmp)/usr/include/tcl$(tclv)/itcl-private/generic
+ cp generic/*.h $(dtmp)/usr/include/tcl$(tclv)/itcl-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 3itcl /' $$i ; \
+ mv $$i `echo $$i | sed -e 's/\.n/\.3itcl/'` ; \
+ done
+ #
+ dh_movefiles -pitcl3-dev
+ dh_movefiles -Nitcl3-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/itcl3.lintian-override \
+ debian/itcl3/usr/share/lintian/overrides/itcl3
+ dh_installchangelogs -a ChangeLog
+ #
+ # hack up the /usr/doc links for dependent packages
+ rm -rf debian/itcl3-dev/usr/share/doc/itcl3-dev
+ ln -sf itcl3 debian/itcl3-dev/usr/share/doc/itcl3-dev
+ #
+ dh_strip -a
+ dh_compress -a
+ dh_fixperms -a
+ dh_makeshlibs -a -V 'itcl3 (>= $(v)~), itcl3 (<< $(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
More information about the Pkg-tcltk-commits
mailing list