rev 7002 - kde-extras/digikam/trunk/debian

Mark Purcell msp at alioth.debian.org
Tue Aug 7 21:07:35 UTC 2007


Author: msp
Date: 2007-08-07 21:07:35 +0000 (Tue, 07 Aug 2007)
New Revision: 7002

Added:
   kde-extras/digikam/trunk/debian/sf-get-source.mk
Modified:
   kde-extras/digikam/trunk/debian/changelog
   kde-extras/digikam/trunk/debian/rules
Log:
* include debian/sf-get-source.mk

Modified: kde-extras/digikam/trunk/debian/changelog
===================================================================
--- kde-extras/digikam/trunk/debian/changelog	2007-08-07 20:53:11 UTC (rev 7001)
+++ kde-extras/digikam/trunk/debian/changelog	2007-08-07 21:07:35 UTC (rev 7002)
@@ -2,9 +2,10 @@
 
   * NOT RELEASED YET
 
-  * Remove bad get-orig-source target
+  [ Mark Purcell ]
+  * include debian/sf-get-source.mk
 
- -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Mon, 06 Aug 2007 21:28:28 +0100
+ -- Debian KDE Extras Team <pkg-kde-extras at lists.alioth.debian.org>  Tue, 07 Aug 2007 22:07:26 +0100
 
 digikam (2:0.9.2-4) unstable; urgency=low
 

Modified: kde-extras/digikam/trunk/debian/rules
===================================================================
--- kde-extras/digikam/trunk/debian/rules	2007-08-07 20:53:11 UTC (rev 7001)
+++ kde-extras/digikam/trunk/debian/rules	2007-08-07 21:07:35 UTC (rev 7002)
@@ -4,6 +4,7 @@
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/class/kde.mk
+include debian/sf-get-source.mk
 
 DEB_CONFIGURE_EXTRA_FLAGS := --enable-debug=full
 

Added: kde-extras/digikam/trunk/debian/sf-get-source.mk
===================================================================
--- kde-extras/digikam/trunk/debian/sf-get-source.mk	                        (rev 0)
+++ kde-extras/digikam/trunk/debian/sf-get-source.mk	2007-08-07 21:07:35 UTC (rev 7002)
@@ -0,0 +1,34 @@
+# copied from CDBS' buildvars
+DEB_SOURCE_PACKAGE ?= $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
+DEB_VERSION ?= $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
+DEB_NOEPOCH_VERSION ?= $(shell echo $(DEB_VERSION) | cut -d: -f2-)
+DEB_UPSTREAM_VERSION ?= $(shell echo $(DEB_NOEPOCH_VERSION) | sed 's/-[^-]*$$//')
+
+# where to store the resulting .orig tarball
+DEB_TARBALL_DOWNLOAD_DIR ?= ../tarballs
+TARBALL_EXT ?= tar.gz
+
+SF_PROJECT ?= $(DEB_SOURCE_PACKAGE)
+SF_MODULE ?= $(DEB_SOURCE_PACKAGE)
+SF_TARBALL ?= $(SF_MODULE)-$(DEB_UPSTREAM_VERSION).$(TARBALL_EXT)
+SF_DOWNLOAD_URL ?= http://$$sf_mirror.dl.sourceforge.net/$(SF_PROJECT)/$(SF_TARBALL)
+SF_MIRRORS ?= belnet easynews heanet internap jaist kent mesh nchc optusnet ovh puzzle superb-east superb-west surfnet switch ufpr umn
+SF_DOWNLOAD_COMMAND ?= for sf_mirror in $(SF_MIRRORS); do wget -N -nv -T10 -t1 -O $(DEB_TARBALL_DOWNLOAD_DIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.$(TARBALL_EXT) $(SF_DOWNLOAD_URL) && break; done
+
+get-orig-source:
+	dh_testdir
+	@@echo 'Source package:                      $(DEB_SOURCE_PACKAGE)'
+	@@echo 'Source package:                      $(DEB_VERSION)'
+	@@echo 'Source version without epoch:        $(DEB_NOEPOCH_VERSION)'
+	@@echo 'Upstream version (for orig tarball): $(DEB_UPSTREAM_VERSION)'
+	mkdir -p $(DEB_TARBALL_DOWNLOAD_DIR)
+	$(SF_DOWNLOAD_COMMAND)
+	case "$(TARBALL_EXT)" in \
+	tar.bz2|tbz) \
+	bzcat $(DEB_TARBALL_DOWNLOAD_DIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.$(TARBALL_EXT) | \
+	gzip -9 >$(DEB_TARBALL_DOWNLOAD_DIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz ; \
+	rm -f $(DEB_TARBALL_DOWNLOAD_DIR)/$(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.$(TARBALL_EXT) \
+	;;\
+	esac
+
+.PHONY: get-orig-source




More information about the pkg-kde-commits mailing list