aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--debian/control5
-rwxr-xr-xdebian/rules15
2 files changed, 13 insertions, 7 deletions
diff --git a/debian/control b/debian/control
index 8acd8b3..0237784 100644
--- a/debian/control
+++ b/debian/control
@@ -2,10 +2,11 @@ Source: sciteco
Section: editors
Priority: optional
Maintainer: Robin Haberkorn <rhaberkorn@fmsbw.de>
-Build-Depends: debhelper (>= 10), dh-exec, gcc (>= 4:8.1), g++ (>= 4:8.1),
+Build-Depends: debhelper (>= 10), dh-exec, dh-autoreconf,
+ gcc (>= 4:8.1), g++ (>= 4:8.1),
libglib2.0-dev (>= 2.44),
ncurses-term, libncurses-dev,
- libgtk-3-dev (>= 3.24), xvfb,
+ libgtk-3-dev (>= 3.24), xvfb, xauth,
groff (>= 1.19.2)
Standards-Version: 4.5.0
Homepage: https://sciteco.fmsbw.de/
diff --git a/debian/rules b/debian/rules
index 5ce058d..cd684aa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,18 +27,24 @@ MAKEFLAGS += -j$(NUMJOBS)
endif
# In case `make check` fails, there will be a complete log.
-export TESTSUITEFLAGS="--verbose --color=never"
+# FIXME: Not all distributions appear to support --color=never.
+#export TESTSUITEFLAGS="--verbose --color=never"
+export TESTSUITEFLAGS="--verbose"
%:
dh $@
build build-arch build-indep: build-curses-stamp build-gtk-stamp;
+autoreconf-stamp:
+ dh_testdir
+ test -x ./configure || dh_autoreconf
+ touch $@
+
# NOTE: The datadir will be relative to the binary location at runtime.
# This makes the binary relocateable, which is important when creating
# AppImages from the Debian packages.
-build-curses-stamp:
- dh_testdir
+build-curses-stamp: autoreconf-stamp
rm -rf build-curses
dh_auto_configure -Bbuild-curses -- \
--with-interface=ncurses \
@@ -49,8 +55,7 @@ build-curses-stamp:
# NOTE: This does not depend on install-curses-stamp and uses
# --disable-bootstrap to speed up builds since that would prevent parallel builds.
-build-gtk-stamp:
- dh_testdir
+build-gtk-stamp: autoreconf-stamp
rm -rf build-gtk
dh_auto_configure -Bbuild-gtk -- \
--program-prefix=g \