[med-svn] r19714 - in trunk/packages/insighttoolkit/trunk: . debian debian/data

Paul Novotny paulnovo-guest at moszumanska.debian.org
Sat Jul 25 17:14:26 UTC 2015


Author: paulnovo-guest
Date: 2015-07-25 17:14:25 +0000 (Sat, 25 Jul 2015)
New Revision: 19714

Added:
   trunk/packages/insighttoolkit/trunk/data/
   trunk/packages/insighttoolkit/trunk/debian/data/
   trunk/packages/insighttoolkit/trunk/debian/data/watch
Modified:
   trunk/packages/insighttoolkit/trunk/debian/rules
Log:
Add get-orig-source for downloading both sources
In addition, add a watch file for the InsightData source


Added: trunk/packages/insighttoolkit/trunk/debian/data/watch
===================================================================
--- trunk/packages/insighttoolkit/trunk/debian/data/watch	                        (rev 0)
+++ trunk/packages/insighttoolkit/trunk/debian/data/watch	2015-07-25 17:14:25 UTC (rev 19714)
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/itk/InsightData-(.*)\.tar\.xz

Modified: trunk/packages/insighttoolkit/trunk/debian/rules
===================================================================
--- trunk/packages/insighttoolkit/trunk/debian/rules	2015-07-25 06:17:40 UTC (rev 19713)
+++ trunk/packages/insighttoolkit/trunk/debian/rules	2015-07-25 17:14:25 UTC (rev 19714)
@@ -2,6 +2,9 @@
 
 VER_MAJOR = 4
 VER_MINOR = 8
+VER_REVISION = 0
+VERSION = $(VER_MAJOR).$(VER_MINOR).$(VER_REVISION)
+SOVERSION = $(VER_MAJOR).$(VER_MINOR)
 
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
@@ -32,7 +35,7 @@
 	-DBUILD_EXAMPLES:BOOL=ON \
 	-DBUILD_SHARED_LIBS:BOOL=ON \
 	-DBUILD_TESTING:BOOL=ON \
-	-DExternalData_OBJECT_STORES:STRING=$(PWD)/ExternalData/.ExternalData \
+	-DExternalData_OBJECT_STORES:PATH=$(CURDIR)/data/.ExternalData/ \
 	-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
 	-DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON \
 	-DCMAKE_SKIP_RPATH:BOOL=ON \
@@ -76,8 +79,6 @@
 	-DPython_ADDITIONAL_VERSIONS=2.7 
 
 
-SOVERSION = $(VER_MAJOR).$(VER_MINOR)
-
 pkg_lib = libinsighttoolkit$(SOVERSION)
 pkg_dev = libinsighttoolkit$(VER_MAJOR)-dev
 pkg_examples = insighttoolkit$(VER_MAJOR)-examples
@@ -152,3 +153,10 @@
 	  && cmp -s debian/control debian/control.tmp \
 	  && rm -f debian/control.tmp && exit 0; \
 	  mv debian/control.tmp debian/control
+
+DESTDIR = "../tarballs"
+get-orig-source:
+	uscan --watchfile debian/data/watch --force-download --no-symlink --destdir $(DESTDIR)
+	uscan --force-download --rename --destdir $(DESTDIR)
+	cd $(DESTDIR) && mv `ls InsightData*.tar.xz` insighttoolkit$(VER_MAJOR)_$(VERSION).orig-data.tar.xz && cd -
+




More information about the debian-med-commit mailing list