[mate-terminal] 06/10: Revert "debian/rules: Upstream is now DFSG compiant."
Mike Gabriel
sunweaver at debian.org
Fri Jun 19 13:26:51 UTC 2015
This is an automated email from the git hooks/post-receive script.
sunweaver pushed a commit to branch debian/experimental
in repository mate-terminal.
commit 4b58facc81895aa889a4f8d8b162d39ac04a8b86
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Fri Jun 19 14:24:41 2015 +0200
Revert "debian/rules: Upstream is now DFSG compiant."
This reverts commit d2e600f9803939cd7a04c502dcf0148d214bd949.
---
debian/rules | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)
diff --git a/debian/rules b/debian/rules
index afdd76a..aa94962 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,18 @@
#!/usr/bin/make -f
+PKD = $(word 1,$(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 = +dfsg1
+VER ?= $(subst $(DTYPE),,$(UVER))
+
DHFLAGS=--parallel
%:
dh $@ $(DHFLAGS) --with python2
override_dh_install:
+ rm -rfv debian/tmp/usr/share/omf/
dh_install --fail-missing
override_dh_installchangelogs:
@@ -17,6 +24,7 @@ override_dh_auto_configure:
dh_auto_configure $(DHFLAGS) -- \
--disable-silent-rules \
--disable-static \
+ --disable-scrollkeeper \
--disable-schemas-compile \
--enable-gtk-doc \
--enable-mpaste \
@@ -25,5 +33,23 @@ override_dh_auto_configure:
override_dh_strip:
dh_strip --dbg-package=mate-terminal-dbg
-get-orig-source:
- uscan --noconf --force-download --rename --download-current-version --destdir=..
+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 \
+ help/
+ $(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)"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-terminal.git
More information about the pkg-mate-commits
mailing list