[irstlm] 99/146: Convert packaging to use Debhelper
Giulio Paci
giuliopaci-guest at moszumanska.debian.org
Tue May 17 07:37:13 UTC 2016
This is an automated email from the git hooks/post-receive script.
giuliopaci-guest pushed a commit to branch master
in repository irstlm.
commit 5e4be57dd821c213bd5e406a47c3ed0d7b3edfab
Author: Balint Reczey <balint at balintreczey.hu>
Date: Sun Dec 20 13:40:03 2015 +0100
Convert packaging to use Debhelper
---
debian/control | 2 +-
debian/rules | 80 +++++++---------------------------------------------------
2 files changed, 10 insertions(+), 72 deletions(-)
diff --git a/debian/control b/debian/control
index 208bd2d..a4b31a8 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: text
Priority: optional
Maintainer: Giulio Paci <giuliopaci at gmail.com>
Uploaders: Koichi Akabe <vbkaisetsu at gmail.com>
-Build-Depends: cdbs,
+Build-Depends: dh-autoreconf,
devscripts,
libtool,
automake,
diff --git a/debian/rules b/debian/rules
index fff0906..cf24fe8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,78 +1,16 @@
#!/usr/bin/make -f
-DEB_ROOT := $(abspath $(dir $(firstword $(MAKEFILE_LIST)))/..)
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall
-include /usr/share/dpkg/buildflags.mk
-
-include /usr/share/cdbs/1/rules/utils.mk
-include /usr/share/cdbs/1/class/autotools.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
-
-DEB_INSTALL_DOCS_ALL :=
-DEB_TAR_SRCDIR := .
-
-DEB_AUTO_UPDATE_LIBTOOL = pre
-DEB_AUTO_UPDATE_ACLOCAL = 1.11
-DEB_ACLOCAL_ARGS = -I m4
-DEB_AUTO_UPDATE_AUTOMAKE = 1.11
-DEB_AUTOMAKE_ARGS = --foreign --add-missing --copy
-DEB_AUTO_UPDATE_AUTOCONF = 2.69
-DEB_AUTO_UPDATE_AUTOHEADER = 2.69
-
-DEB_CONFIGURE_SCRIPT_ENV = $(call cdbs_set_nondefaultvars,CC CXX) CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="-Wl,--as-needed $(LDFLAGS)"
-
-DEB_CONFIGURE_USER_FLAGS = --enable-shared
-
-BACKUP=config.h.in
-
-pre-build::
- # Backup files expected to be modified.
- set -e ; for i in $(BACKUP); do \
- if [ ! -f "$$i".backup ]; then cp -a "$$i" "$$i".backup; fi ; \
- done
-
-clean::
- set -e ; for i in $(BACKUP); do \
- if [ -f "$$i".backup ]; then mv -f "$$i".backup "$$i"; fi ; \
- done
-
-clean::
- $(RM) \
- Makefile.in \
- aclocal.m4 \
- config.guess \
- config.sub \
- configure \
- depcomp \
- install-sh \
- ltmain.sh \
- m4/libtool.m4 \
- m4/ltoptions.m4 \
- m4/ltsugar.m4 \
- m4/ltversion.m4 \
- m4/lt~obsolete.m4 \
- missing \
- scripts/Makefile.in \
- src/Makefile.in
-
-# IRSTLM_GET_ORIG_TEMPORARY=$(DEB_ROOT)/temporary
-# IRSTLM_GET_ORIG_BASENAME=irstlm-5.80.01
-# IRSTLM_GET_ORIG_ORIG_PATH=$(DEB_ROOT)/temporary/$(IRSTLM_GET_ORIG_BASENAME)/
-# get-orig-source:
-# mkdir -p $(IRSTLM_GET_ORIG_TEMPORARY)
-# cd $(DEB_ROOT) && uscan --no-conf --download-current-version --destdir $(DEB_ROOT)/temporary
-# $(RM) $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).orig.tar.gz
-# mv $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tgz $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar.gz
-# gzip -d $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar.gz
-# tar -f $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar --delete irstlm-5.80.01/scripts/other/astyle_Linux irstlm-5.80.01/scripts/other/astyle_Darwin irstlm-5.80.01/scripts/other/beautify.perl irstlm-5.80.01/scripts/other/
-# gzip $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar
-# mv $(IRSTLM_GET_ORIG_TEMPORARY)/$(IRSTLM_GET_ORIG_BASENAME).tar.gz $$(echo $(IRSTLM_GET_ORIG_BASENAME)+dfsg.orig.tar.gz | sed -e 's/\(.*\)-/\1_/')
-# $(RM) -r $(IRSTLM_GET_ORIG_TEMPORARY)
-clean::
- $(RM) -r $(IRSTLM_GET_ORIG_TEMPORARY)
+%:
+ dh $@ --with autoreconf
-# Needed by upstream build process
-CDBS_BUILD_DEPENDS += , zlib1g-dev, dpkg-dev (>= 1.16.1~)
+override_dh_auto_configure:
+ dh_auto_configure -- --enable-shared
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/irstlm.git
More information about the debian-science-commits
mailing list