[med-svn] r2422 - trunk/packages/insighttoolkit/trunk/debian

smr at alioth.debian.org smr at alioth.debian.org
Sat Aug 23 05:28:02 UTC 2008


Author: smr
Date: 2008-08-23 05:28:01 +0000 (Sat, 23 Aug 2008)
New Revision: 2422

Modified:
   trunk/packages/insighttoolkit/trunk/debian/changelog
   trunk/packages/insighttoolkit/trunk/debian/rules
Log:
Add get-orig-source target.

Modified: trunk/packages/insighttoolkit/trunk/debian/changelog
===================================================================
--- trunk/packages/insighttoolkit/trunk/debian/changelog	2008-08-23 04:29:37 UTC (rev 2421)
+++ trunk/packages/insighttoolkit/trunk/debian/changelog	2008-08-23 05:28:01 UTC (rev 2422)
@@ -1,10 +1,12 @@
 insighttoolkit (3.8.0-1) unstable; urgency=low
 
   * New upstream release.
-  * patches/gcc43.patch: Remove; incorporated upstream.
+    - patches/gcc43.patch: Remove; incorporated upstream.
 
- -- Steve M. Robbins <smr at debian.org>  Fri, 22 Aug 2008 23:28:19 -0500
+  * rules: Add get-orig-source target.  Parameterize all version numbers.
 
+ -- Steve M. Robbins <smr at debian.org>  Sat, 23 Aug 2008 00:27:44 -0500
+
 insighttoolkit (3.6.0-4) UNRELEASED; urgency=low
 
   [Steve M. Robbins]

Modified: trunk/packages/insighttoolkit/trunk/debian/rules
===================================================================
--- trunk/packages/insighttoolkit/trunk/debian/rules	2008-08-23 04:29:37 UTC (rev 2421)
+++ trunk/packages/insighttoolkit/trunk/debian/rules	2008-08-23 05:28:01 UTC (rev 2422)
@@ -4,18 +4,25 @@
 include /usr/share/cdbs/1/class/makefile.mk
 include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
-pkg_lib = libinsighttoolkit3.8
-pkg_dev = libinsighttoolkit3-dev
-pkg_python = python-insighttoolkit3
-pkg_tcl = tcl8.4-insighttoolkit3
-pkg_examples = insighttoolkit3-examples
+VER_MAJOR = 3
+VER_MINOR = 8
+VER_PATCH = 0
 
+UPSTREAM_SRC = InsightToolkit-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
+DEBIAN_SRC = insighttoolkit-$(VER_MAJOR).$(VER_MINOR).$(VER_PATCH)
+
+pkg_lib = libinsighttoolkit$(VER_MAJOR).$(VER_MINOR)
+pkg_dev = libinsighttoolkit$(VER_MAJOR)-dev
+pkg_python = python-insighttoolkit$(VER_MAJOR)
+pkg_tcl = tcl8.4-insighttoolkit$(VER_MAJOR)
+pkg_examples = insighttoolkit$(VER_MAJOR)-examples
+
 PYVERS = $(shell pyversions -r debian/control)
 PYMODDIR = usr/share/python-support/$(pkg_python)
 PYEXTDIR = usr/lib/python-support/$(pkg_python)/$(PYVERS)
 
 TCLVERS = 8.4
-TCLMODDIR = usr/share/tcltk/tcl8.4/insighttoolkit3
+TCLMODDIR = usr/share/tcltk/tcl$(TCLVERS)/insighttoolkit$(VER_MAJOR)
 
 DEB_BUILDDIR = $(CURDIR)/Build
 DEB_DESTDIR = $(CURDIR)/debian/tmp
@@ -51,7 +58,7 @@
 	dh_install -p$(pkg_lib) -XPython -XTcl debian/tmp/usr/lib/InsightToolkit/lib*.so.* usr/lib
 
 install/$(pkg_dev)::
-	dh_installman -p$(pkg_dev) debian/insighttoolkit.3
+	dh_installman -p$(pkg_dev) debian/insighttoolkit.$(VER_MAJOR)
 	dh_installdocs -p$(pkg_dev) Documentation/*
 	dh_install -p$(pkg_dev) -XPython -XTcl debian/tmp/usr/lib/InsightToolkit/lib*.so usr/lib
 	dh_install -p$(pkg_dev) --autodest debian/tmp/usr/include/InsightToolkit/*
@@ -74,3 +81,14 @@
 	dh_installexamples -p$(pkg_examples) Examples/*
 	find debian/$(pkg_examples)/usr/share/doc/$(pkg_examples)/examples \
 	    -type f -print0 | xargs -0 chmod 644
+
+$(UPSTREAM_SRC).tar.gz:
+	wget http://voxel.dl.sourceforge.net/sourceforge/itk/$@
+
+get-orig-source: $(UPSTREAM_SRC).tar.gz
+	tar xzf $(UPSTREAM_SRC).tar.gz
+	find $(UPSTREAM_SRC) -name CVS -o -name Patented | xargs rm -rf
+	rm -rf $(UPSTREAM_SRC)/Code/Review
+	mv $(UPSTREAM_SRC) $(DEBIAN_SRC)
+	tar czf $(DEBIAN_SRC).orig.tar.gz $(DEBIAN_SRC)
+




More information about the debian-med-commit mailing list