[atril] 09/13: debian/rules: Update for new release.
Martin Wimpress
flexiondotorg-guest at moszumanska.debian.org
Thu Jul 30 19:54:05 UTC 2015
This is an automated email from the git hooks/post-receive script.
flexiondotorg-guest pushed a commit to branch debian/experimental
in repository atril.
commit 649321a2bb196f8c91d11f9f6117e16633ec2b74
Author: Martin Wimpress <code at flexion.org>
Date: Thu Jul 30 17:05:36 2015 +0100
debian/rules: Update for new release.
---
debian/rules | 106 +++++++++++++++++++++++++----------------------------------
1 file changed, 45 insertions(+), 61 deletions(-)
diff --git a/debian/rules b/debian/rules
index ec78bd5..110f503 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,64 +1,48 @@
#!/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
+DEB_ATRIL_FLAGS=
+ifeq ($(shell dpkg-vendor --is Debian && echo yes),yes)
+ifeq ($(shell lsb_release -cs),wheezy)
+ DEB_ATRIL_FLAGS=--without-keyring
+endif
+endif
+
+%:
+ dh $@ $(DHFLAGS)
+
+override_dh_install:
+ rm -rfv debian/tmp/usr/lib/*/*.la
+ rm -rfv debian/tmp/usr/lib/*/caja/extensions-2.0/*.la
+ rm -rfv debian/tmp/usr/lib/*/atril/3/backends/*.la
+ rm -rfv debian/tmp/usr/share/MateConf/gsettings/atril.convert
+ dh_install --fail-missing
+
+override_dh_auto_test:
+ DEB_BUILD_OPTIONS=nocheck dh_auto_test
+
+override_dh_auto_configure:
+ NOCONFIGURE=1 ./autogen.sh
+ dh_auto_configure $(DHFLAGS) -- \
+ --enable-gtk-doc \
+ --enable-djvu \
+ --enable-dvi \
+ --enable-t1lib \
+ --enable-pixbuf \
+ --enable-comics \
+ --enable-introspection \
+ --disable-static \
+ --with-gtk=2.0 \
+ $(DEB_ATRIL_FLAGS)
+
+override_dh_strip:
+ dh_strip -patril --dbg-package=atril-dbg
+ dh_strip -plibatrildocument3 --dbg-package=libatrildocument3-dbg
+ dh_strip -plibatrilview3 --dbg-package=libatrilview3-dbg
+
+override_dh_builddeb:
+ dh_builddeb -- -Zxz -z9
+
+get-orig-source:
+ uscan --noconf --force-download --rename --download-current-version --destdir=..
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/autotools.mk
-
-DEB_BUILD_PARALLEL = 1
-
-DEB_DH_INSTALL_ARGS += --fail-missing
-
-# use the NEWS file as upstream ChangeLog...
-DEB_DH_INSTALLCHANGELOGS_ARGS = NEWS
-DEB_INSTALL_DOCS_ALL = README AUTHORS
-
-DEB_CONFIGURE_SCRIPT := ./autogen.sh
-
-DEB_CONFIGURE_EXTRA_FLAGS := --disable-scrollkeeper \
- --disable-silent-rules \
- --enable-gtk-doc \
- --enable-djvu \
- --enable-dvi \
- --enable-t1lib \
- --enable-pixbuf \
- --enable-comics \
- --disable-introspection \
- --disable-static
-
-install/libatrildocument3::
- rm -Rf debian/tmp/usr/lib/atril/3/backends/*.la
-
-install/atril::
- rm -Rf debian/tmp/usr/lib/*/caja/extensions-2.0/libatril-properties-page.la
-
-common-install-indep:: remove-cruft
-common-install-arch:: remove-cruft
-
-remove-cruft::
- rm -f debian/tmp/usr/lib/*.la
-
-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/atril.git
More information about the pkg-mate-commits
mailing list