[python-sfml] 06/12: Implement get-orig-source using simple uscan method with Files-Excluded

James Cowgill jcowgill-guest at moszumanska.debian.org
Tue Jun 30 14:21:35 UTC 2015


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

jcowgill-guest pushed a commit to branch master
in repository python-sfml.

commit 709068797e5206cbf54777c64242b7a15d1e4e3f
Author: James Cowgill <james410 at cowgill.org.uk>
Date:   Sun Jun 28 23:39:03 2015 +0100

    Implement get-orig-source using simple uscan method with Files-Excluded
---
 debian/rules | 34 ++--------------------------------
 1 file changed, 2 insertions(+), 32 deletions(-)

diff --git a/debian/rules b/debian/rules
index 6e137c3..ec46236 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,19 +1,12 @@
 #!/usr/bin/make -f
 # -*- makefile -*-
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
 export PYBUILD_NAME=sfml
 export PYBUILD_INSTALL_ARGS=--skip-build
 export PYBUILD_TEST_PYTEST=1
 export PYBUILD_TEST_ARGS=$(CURDIR)/tests
 
 PKD   = $(abspath $(dir $(MAKEFILE_LIST)))
-PKG   = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
-UVER  = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
-DTYPE = +dfsg
-VER  ?= $(subst 1.5.1.is.,,$(subst $(DTYPE),,$(UVER)))
 
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
@@ -32,29 +25,6 @@ override_dh_auto_clean:
 	dh_auto_clean
 	rm -rf doc/build
 
-# http://wiki.debian.org/onlyjob/get-orig-source
 .PHONY: get-orig-source
-get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
-	@
-
-$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
-	@echo "# Downloading..."
-	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
-	$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
-	@echo "# Extracting..."
-	mkdir $(PKG)-$(VER) \
-	 && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
-	 || $(RM) -r $(PKG)-$(VER)
-	@echo "# Cleaning-up..."
-	cd $(PKG)-$(VER) \
-	 && $(RM) -r -v \
-		examples/embedding/image.jpg \
-		examples/extending/image.jpg \
-		examples/*/resources/ \
-		examples/*/data/ \
-		tests/runtests.py
-	#$(RM) -v $(PKG)_$(VER).orig.tar.*
-	@echo "# Packing..."
-	find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
-	 | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
-	 && $(RM) -r "$(PKG)-$(VER)"
+get-orig-source:
+	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --repack --compression=xz --download-current-version $(PKD)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/python-sfml.git



More information about the Pkg-games-commits mailing list