[libfont-freetype-perl] 03/10: debian/rules: use short-form dh(1).
gregor herrmann
gregoa at debian.org
Sat Feb 22 17:02:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
gregoa pushed a commit to branch master
in repository libfont-freetype-perl.
commit 07765b1c04c944cb2c82c45e6963810b3933a9db
Author: gregor herrmann <gregoa at debian.org>
Date: Sat Feb 22 17:47:51 2014 +0100
debian/rules: use short-form dh(1).
---
debian/clean | 1 +
debian/libfont-freetype-perl.docs | 1 +
debian/libfont-freetype-perl.examples | 1 +
debian/rules | 83 ++---------------------------------
4 files changed, 6 insertions(+), 80 deletions(-)
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..6c931ab
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+t/data/bdf_glyphs.txt
diff --git a/debian/libfont-freetype-perl.docs b/debian/libfont-freetype-perl.docs
new file mode 100644
index 0000000..1333ed7
--- /dev/null
+++ b/debian/libfont-freetype-perl.docs
@@ -0,0 +1 @@
+TODO
diff --git a/debian/libfont-freetype-perl.examples b/debian/libfont-freetype-perl.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/libfont-freetype-perl.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/rules b/debian/rules
index 1ee8d51..f66cf2c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,84 +1,7 @@
#!/usr/bin/make -f
-# This debian/rules file is based on a template for normal perl
-# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
-# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
-# be used freely wherever it is useful.
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+ dh $@
-include /usr/share/dpatch/dpatch.make
-
-# If set to a true value then MakeMaker's prompt function will
-# always return the default without waiting for user input.
-export PERL_MM_USE_DEFAULT=1
-
-PERL ?= /usr/bin/perl
-PACKAGE = $(shell dh_listpackages)
-TMP = $(CURDIR)/debian/$(PACKAGE)
-
-# Allow disabling build optimisation by setting noopt in
-# $DEB_BUILD_OPTIONS
-CFLAGS = -Wall -g
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
-
-build: build-stamp
-build-stamp: patch
- dh_testdir
- # Add commands to compile the package here
- $(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+override_dh_auto_test:
# Disable for now. Fail to pass the test - Anthony Fok 2008-07-27
- #$(MAKE) test
- touch $@
-
-clean: clean-patched unpatch
-clean-patched:
- dh_testdir
- dh_testroot
- dh_clean build-stamp install-stamp
- # Add commands to clean up after the build process here
- [ ! -f Makefile ] || $(MAKE) realclean
- # FIXME: One file is left behind; try fixing Makefile.PL instead.
- # - Anthony Fok 2008-07-27
- rm -f t/data/bdf_glyphs.txt
-
-install: install-stamp
-install-stamp: build-stamp
- dh_testdir
- dh_testroot
- dh_clean -k
- # Add commands to install the package into $(TMP)
- $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
- [ ! -d $(TMP)/usr/share/perl5 ] || \
- rmdir --ignore-fail-on-non-empty --parents --verbose \
- $(TMP)/usr/share/perl5
- touch $@
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do here for an architecture-dependent package
-
-# Build architecture-dependent files here.
-binary-arch: build install
- dh_testdir
- dh_testroot
- dh_installexamples examples/*
- dh_installdocs TODO
- dh_installchangelogs Changes
- dh_shlibdeps
- dh_strip
- dh_perl
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libfont-freetype-perl.git
More information about the Pkg-perl-cvs-commits
mailing list