[med-svn] [hmmer2] 02/06: drop unneeded get-orig-source target

Andreas Tille tille at debian.org
Thu Apr 13 07:15:05 UTC 2017


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

tille pushed a commit to branch master
in repository hmmer2.

commit e8f283dd3bfe98b035846443a9db52f375a21ee3
Author: Andreas Tille <tille at debian.org>
Date:   Thu Apr 13 08:43:27 2017 +0200

    drop unneeded get-orig-source target
---
 debian/changelog |  1 +
 debian/rules     | 16 ++--------------
 2 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6b5df06..b3e6067 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 hmmer2 (2.3.2+dfsg-1) UNRELEASED; urgency=medium
 
   * Link against libsquid instead of code copy
+  * d/rules: drop unneeded get-orig-source target
 
  -- Andreas Tille <tille at debian.org>  Tue, 11 Apr 2017 17:24:13 +0200
 
diff --git a/debian/rules b/debian/rules
index 26cd526..4f092a7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,24 +11,12 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 pkgdata:=hmmer2
 sampledir:=$(CURDIR)/debian/$(pkgdata)/usr/share/doc/$(pkgdata)/examples
 
-# lkajan: The following violates point 4.9 of the Debian policy: "get-orig-source [...] may be invoked in any directory [...]" as uscan needs to find the watch file.
-.PHONY: get-orig-source
-get-orig-source:
-	set -e; \
-	t=$$(mktemp -d) || exit 1; \
-	trap "rm -rf -- '$$t'" EXIT; \
-	pwd; \
-	uscan --no-conf --force-download --rename --destdir "$$t"; \
-	( cd "$$t"; \
-		gunzip *.tar.gz; \
-		tar --owner=root --group=root --mode=a+rX --delete -f *.tar --wildcards 'hmmer-*/Userguide.pdf'; \
-		xz --best *.tar; \
-	); \
-	mv $$t/*.tar.xz ./
 
 .PHONY: override_dh_auto_configure
 override_dh_auto_configure:
 	dh_auto_configure -- --enable-threads --enable-lfs --enable-pvm
+	# avoid duplicated definition of PACKAGE_NAME (basically conflicting with biosquid when used together)
+	sed -i -e '/^#define PACKAGE_NAME /i #ifndef PACKAGE_NAME' -e '/^#define PACKAGE_NAME /a #endif' src/config.h
 
 .PHONY: override_dh_auto_install
 override_dh_auto_install:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/hmmer2.git



More information about the debian-med-commit mailing list