[librdf-linkeddata-perl] 10/11: Modernize resolving target suite. Thanks to Gregor Herrmann.
Jonas Smedegaard
dr at jones.dk
Fri Aug 25 12:50:16 UTC 2017
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository librdf-linkeddata-perl.
commit 4137e89feaf207594ce7e7225b73e53ba3d9ef1b
Author: Jonas Smedegaard <dr at jones.dk>
Date: Fri Aug 25 14:48:29 2017 +0200
Modernize resolving target suite. Thanks to Gregor Herrmann.
---
debian/rules | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/debian/rules b/debian/rules
index d8515b9..2b84434 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,11 +16,16 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+include /usr/share/dpkg/pkg-info.mk
+
include /usr/share/cdbs/1/class/perl-makemaker.mk
include /usr/share/cdbs/1/rules/debhelper.mk
pkg = $(DEB_SOURCE_PACKAGE)
+# resolve if release is experimental
+EXP_RELEASE = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))
+
# Needed both by upstream build and (always/often) at runtime
perl-deps = moo moox-log-any rdf-ns-curated rdf-trine plack www
perl-deps += html-html5-writer rdf-rdfa-generator
@@ -52,8 +57,4 @@ binary-post-install/$(pkg)::
mv $(DEB_DESTDIR)/usr/bin $(DEB_DESTDIR)/usr/share/librdf-linkeddata-perl
# relax regression tests when targeted experimental suite
-# NOTE: instead of dpkg-parsechangelog:
-# should `include /usr/share/dpkg/pkg-info.mk' and
-# use $(DEB_DISTRIBUTION)
-DEB_MAKE_CHECK_TARGET = test TEST_VERBOSE=1 \
- $(if $(shell dpkg-parsechangelog | grep -Fx 'Distribution: experimental'),|| true)
+DEB_MAKE_CHECK_TARGET = test TEST_VERBOSE=1 $(if $(EXP_RELEASE),|| true)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/librdf-linkeddata-perl.git
More information about the Pkg-perl-cvs-commits
mailing list