[khronos-opencl-headers] 79/94: switch to downloading from svn

Andreas Beckmann anbe at moszumanska.debian.org
Mon Sep 21 02:39:09 UTC 2015


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch master
in repository khronos-opencl-headers.

commit 09c5135587fbfddf1e81039cf77ab3d9d2234a67
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Oct 20 14:55:54 2014 +0000

    switch to downloading from svn
    
    git-svn-id: svn://svn.debian.org/svn/pkg-nvidia/packages/khronos-opencl-headers/trunk@5083 b6a4b1ba-b714-0410-8a2d-fc0b36c6496e
---
 debian/changelog |  8 ++++++++
 debian/rules     | 38 +++++++++++++++++++-------------------
 debian/watch     |  5 -----
 3 files changed, 27 insertions(+), 24 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2dc350d..e74b378 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+khronos-opencl-headers (1.2-svn26009-1) UNRELEASED; urgency=medium
+
+  * New upstream snapshot.
+    - Includes cl_egl.h.
+  * Switch get-orig-source target to download from SVN.  (Closes: #718658)
+
+ -- Andreas Beckmann <anbe at debian.org>  Mon, 20 Oct 2014 16:40:55 +0200
+
 khronos-opencl-headers (1.2-2014.04.13-1.1) unstable; urgency=medium
 
   * Non-maintainer upload
diff --git a/debian/rules b/debian/rules
index 7256e2d..69fb7fd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+api	 = 1.2
+
 %:
 	dh $@
 
@@ -9,23 +11,21 @@ override_dh_auto_test:
 override_dh_auto_clean:
 	$(MAKE) -C debian/t clean
 
-api		 = 1.2
-api_hpp		 = 1.2
-headers_1.0	 = opencl.h cl_platform.h cl.h cl_ext.h cl_d3d10.h cl_gl.h cl_gl_ext.h
-headers_1.1	 = $(headers_1.0)
-headers_1.2	 = $(headers_1.1) cl_dx9_media_sharing.h cl_d3d11.h
-headers_hpp	 = cl.hpp
-src_dir		 = khronos-opencl-headers-$(api).orig
-src_file	 = khronos-opencl-headers-$(api).tar.gz
+
+src_dir		 = khronos-opencl-headers-$(api)-svn$(REVISION).orig
+src_file	 = $(src_dir:.orig=.tar.gz)
+svn_url		 = https://cvs.khronos.org/svn/repos/registry/trunk/public/cl/api/$(api)
+svn_latest	 = $(shell LC_MESSAGES=C svn info $(svn_url) | sed -n '/Last Changed Rev:/ s/.* //p')
+
 get-orig-source:
-	rm -rf $(src_dir)
-	mkdir $(src_dir)
-	set -e; cd $(src_dir) ; \
-	for h in $(headers_$(api)) ; do \
-		wget https://www.khronos.org/registry/cl/api/$(api)/$$h ; \
-	done ; \
-	for h in $(headers_hpp) ; do \
-		wget https://www.khronos.org/registry/cl/api/$(api_hpp)/$$h ; \
-	done
-	tar cfz $(src_file) --owner=root --group=src $(src_dir)
-	rm -rf $(src_dir)
+ifeq (,$(filter-out latest,$(REVISION)))
+	debian/rules $@ REVISION="$(or $(svn_latest),fail)"
+else
+	$(RM) -r $(src_dir)
+	svn export --revision $(REVISION) $(svn_url) $(src_dir)
+	GZIP="--best --no-name" tar cfz $(src_file) --exclude-vcs --owner=root --group=src $(src_dir)
+	$(RM) -r $(src_dir)
+endif
+
+latest:
+	@echo "Latest header revision for API $(api) is r$(svn_latest)"
diff --git a/debian/watch b/debian/watch
deleted file mode 100644
index 25a0072..0000000
--- a/debian/watch
+++ /dev/null
@@ -1,5 +0,0 @@
-version=3
-# There is no tarball or similar distribution available from
-#   http://www.khronos.org/registry/cl/
-# The headers have to be downloaded file-by-file.  The get-orig-source
-# target in debian/rules can be used to download and tar them.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/khronos-opencl-headers.git



More information about the Pkg-opencl-commits mailing list