Commit aef6e2b4 authored by Dominique Dumont's avatar Dominique Dumont

Build a libtool to drop the libtool-bin dependency

Closes: 912838
Thanks:  Helmut Grohne for the patch
parent 6473ff10
AC_INIT([dummy],[1.0])
LT_INIT
AC_PROG_LIBTOOL
AC_OUTPUT
......@@ -3,12 +3,12 @@ Maintainer: Debian Rakudo Maintainers <pkg-rakudo-devel@lists.alioth.debian.org>
Uploaders: Dominique Dumont <dod@debian.org>
Section: libs
Priority: optional
Build-Depends: debhelper (>= 12~),
libtool,
libtool-bin,
Build-Depends: autoconf,
debhelper (>= 12~),
ghostscript,
libtiff-tools,
texlive-latex-recommended,
ghostscript
libtool,
texlive-latex-recommended
Standards-Version: 4.3.0
Vcs-Browser: https://salsa.debian.org/debian/libtommath
Vcs-Git: https://salsa.debian.org/debian/libtommath.git
......
......@@ -21,16 +21,22 @@ export LIBPATH = $(PREFIX)/lib/$(DEB_HOST_MULTIARCH)
dh $@
override_dh_auto_build:
# create a libtool
mkdir debian/libtool
cp debian/configure.ac debian/libtool/
cd debian/libtool && LIBTOOLIZE='libtoolize -i' autoreconf -f -i
dh_auto_configure --sourcedirectory=debian/libtool
echo "running auto_test"
# this script runs "make clean" so it cannot be run after build
/bin/bash testme.sh
echo "cleanup after tests"
make clean
$(MAKE) -f makefile.shared
$(MAKE) -f makefile.shared LT=$(CURDIR)/debian/libtool/libtool
$(MAKE) manual docs
override_dh_auto_install:
$(MAKE) -f makefile.shared install
$(MAKE) -f makefile.shared LT=$(CURDIR)/debian/libtool/libtool install
# Override if not processing -docs
ifeq (,$(findstring libtommath-docs, $(shell dh_listpackages)))
......@@ -39,7 +45,7 @@ override_dh_install:
endif
override_dh_clean:
dh_clean tommath.out
dh_clean tommath.out debian/libtool
override_dh_installchangelogs:
dh_installchangelogs changes.txt
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment