[libmarpa-r2-perl] 01/07: Regenerate autotools and build libmarpa with CDBS autotools.mk snippet, to hopefully address bug#750356, #750358. Build-depend on libtool, automake and autoconf.

Jonas Smedegaard dr at jones.dk
Thu Jun 26 20:37:16 UTC 2014


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

js pushed a commit to branch master
in repository libmarpa-r2-perl.

commit 84a2b18fb9e9d11e12a5bfe4394c12f0d8a7dc2b
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Thu Jun 26 20:32:33 2014 +0200

    Regenerate autotools and build libmarpa with CDBS autotools.mk snippet, to hopefully address bug#750356, #750358. Build-depend on libtool, automake and autoconf.
---
 debian/rules | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 49 insertions(+)

diff --git a/debian/rules b/debian/rules
index a0a77bb..6b0551f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,8 +16,13 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+DEB_AUTO_UPDATE_LIBTOOL = pre
+DEB_AUTO_UPDATE_ACLOCAL = ,
+DEB_AUTO_UPDATE_AUTOCONF = ,
+DEB_AUTO_UPDATE_AUTOMAKE = ,
 include /usr/share/cdbs/1/rules/upstream-tarball.mk
 include /usr/share/cdbs/1/rules/utils.mk
+include /usr/share/cdbs/1/class/autotools.mk
 include /usr/share/cdbs/1/class/perl-build.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
@@ -48,6 +53,50 @@ deps-test-opt = libppi-perl
 CDBS_BUILD_DEPENDS +=, $(bdeps), $(deps), $(deps-test), $(deps-test-opt)
 CDBS_DEPENDS_$(pkg) = $(deps)
 
+# put aside upstream-shipped autogenerated files and (re)generate during build
+makefiledirs = .
+files_autoconf_modern = $(auxdir)/compile
+DEB_UPSTREAM_CRUFT_MOVE = $(filter-out $(files_autoconf_modern),\
+	$(files_autotools))
+DEB_UPSTREAM_CRUFT_COPY = libmarpa_dist/LIB_VERSION
+makefile-clean::
+	rm -f $(files_autoconf_modern)
+# TODO: move below to CDBS autotools.mk snippet (if indeed generic)
+basedir = libmarpa_dist
+auxdir = $(basedir)
+macrodir = $(basedir)/m4
+autom4tedir = $(basedir)/autom4te.cache
+files_autotools_core = $(auxdir)/config.guess $(auxdir)/config.sub
+stems_m4_libtool = libtool ltoptions ltsugar ltversion lt~obsolete
+files_libtool = $(auxdir)/ltmain.sh $(stems_m4_libtool:%=$(macrodir)/%.m4)
+files_aclocal = $(basedir)/aclocal.m4
+stems_aux_autoconf = ar-lib compile install-sh missing
+files_autoconf = $(basedir)/configure $(stems_aux_autoconf:%=$(auxdir)/%)
+files_automake = $(auxdir)/depcomp $(makefiledirs:%=$(basedir)/%/Makefile.in)
+files_autotools = $(files_autotools_core) $(files_libtool) $(files_aclocal)
+files_autotools += $(files_autoconf) $(files_automake)
+files_configure = $(DEB_BUILDDIR)/config.log
+files_make = $(makefiledirs:%=$(DEB_BUILDDIR)/%/Makefile)
+DEB_ACLOCAL_ARGS = -Im4 --install --force
+DEB_AUTOMAKE_ARGS = --add-missing --copy --foreign --force
+DEB_MAKE_CLEAN_TARGET = distclean
+makefile-clean::
+	rm -rf $(dirs_autotools)
+	rm -f $(filter-out $(DEB_UPSTREAM_CRUFT_MOVE),\
+		$(files_autotools) $(files_configure) $(files_make))
+clean::
+	rm -f $(filter-out $(DEB_UPSTREAM_CRUFT_MOVE),\
+		$(files_autotools_core))
+	test ! -d $(auxdir) || rmdir --ignore-fail-on-non-empty $(auxdir)
+
+# Use custom sourcedir for autotools (re)generation and make build
+#debian/stamp-autotools-files: DEB_SRCDIR = $(basedir)
+DEB_SRCDIR = $(basedir)
+DEB_PERL_SRCDIR = .
+DEB_BUILDDIR = .
+
+DEB_CONFIGURE_EXTRA_FLAGS = --with-pic --disable-shared
+
 # install demos and their pod files only as example files
 binary-post-install/$(pkg)::
 	mkdir -p debian/$(pkg)/usr/share/doc/$(pkg)/examples

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmarpa-r2-perl.git



More information about the Pkg-perl-cvs-commits mailing list