[SCM] pluma Debian package branch, master, updated. 11ac2c89c1ea5f4766ab2ce8ef618a5e188153d4
Mike Gabriel
sunweaver at moszumanska.debian.org
Tue Feb 18 11:48:22 UTC 2014
Gitweb-URL: http://git.debian.org/?p=pkg-mate/pluma.git;a=commitdiff;h=e47d3f4
The following commit has been merged in the master branch:
commit e47d3f43aaf6f343dbdd7b088a063d44701bb214
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Tue Feb 18 11:59:48 2014 +0100
debian/rules: build with autoreconf
---
debian/changelog | 2 +-
debian/control | 1 +
debian/rules | 31 ++++++++++++++++++++++++++++---
3 files changed, 30 insertions(+), 4 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 14bd2c0..2177e77 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-pluma (1.6.2-1) UNRELEASED; urgency=low
+pluma (1.6.2+dfsg1-1) UNRELEASED; urgency=low
* Initial release. (Closes: #734965).
diff --git a/debian/control b/debian/control
index d0ff2cf..02e1030 100644
--- a/debian/control
+++ b/debian/control
@@ -20,6 +20,7 @@ Build-Depends: debhelper (>= 9),
libgtksourceview2.0-dev,
libx11-dev,
mate-common,
+ dh-autoreconf,
Standards-Version: 3.9.5
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-mate/pluma.git;a=summary
Vcs-Git: git://anonscm.debian.org/pkg-mate/pluma.git
diff --git a/debian/rules b/debian/rules
index 02af42b..897eef9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,13 @@
#!/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))
+
%:
- dh $@
+ dh $@ --with autoreconf
override_dh_install:
rm -rfv debian/tmp/usr/lib/*/pluma/plugin-loaders/*.la
@@ -19,5 +25,24 @@ override_dh_auto_test:
override_dh_strip:
dh_strip --dbg-package=pluma-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) \
+ && find . -depth -type d -name 'windows' -exec $(RM) -r {} \; -printf 'removed %p
' \
+ && $(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)"
\ No newline at end of file
--
pluma Debian package
More information about the pkg-mate-commits
mailing list