[pkg-d-commits] [mustache-d] 02/04: Build with Meson

Matthias Klumpp mak at moszumanska.debian.org
Mon Oct 3 21:40:25 UTC 2016


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

mak pushed a commit to branch master
in repository mustache-d.

commit 3dae3c81bb2f7f74a7e756453ec46a74f391ca17
Author: Matthias Klumpp <mak at debian.org>
Date:   Mon Oct 3 23:33:59 2016 +0200

    Build with Meson
---
 debian/control                      |  3 ++-
 debian/libmustache-d-dev.install.in |  3 ---
 debian/rules                        | 24 ++++++++++++++++--------
 3 files changed, 18 insertions(+), 12 deletions(-)

diff --git a/debian/control b/debian/control
index 1efbba6..e479a85 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,8 @@ Priority: optional
 Maintainer: Debian D Language Group <pkg-d-devel at lists.alioth.debian.org>
 Uploaders: Matthias Klumpp <mak at debian.org>
 Build-Depends: debhelper (>= 9.0.0),
-               dub
+               ldc,
+               meson
 Standards-Version: 3.9.8
 Homepage: https://github.com/repeatedly/mustache-d
 Vcs-Git: https://anonscm.debian.org/git/pkg-d/mustache-d.git
diff --git a/debian/libmustache-d-dev.install.in b/debian/libmustache-d-dev.install.in
deleted file mode 100644
index b4dcfd0..0000000
--- a/debian/libmustache-d-dev.install.in
+++ /dev/null
@@ -1,3 +0,0 @@
-dub.json /usr/include/d/mustache-d/
-libmustache-d.a /usr/lib/@DEB_HOST_MULTIARCH@/
-src/ /usr/include/d/mustache-d/
diff --git a/debian/rules b/debian/rules
index eca28c5..6f84696 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,20 +2,28 @@
 # -*- makefile -*-
 #export DH_VERBOSE=1
 
+CONFIG_FLAGS := --prefix=/usr \
+		--buildtype=plain
+
+INSTALL_DIR := $(CURDIR)/debian/libmustache-d-dev
+export DFLAGS=-O -g -release
+
 %:
 	dh $@
 
+override_dh_auto_configure:
+	mkdir build
+	(cd build && meson $(CONFIG_FLAGS) ..)
+
 override_dh_auto_build:
-	dub -v --skip-registry=all build
+	ninja -Cbuild -v
 
-override_dh_auto_test:
-	dub -v --skip-registry=all test
+override_dh_auto_install:
+	DESTDIR=$(INSTALL_DIR) ninja -Cbuild -v install
 
-override_dh_install:
-	sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' \
-		debian/libmustache-d-dev.install.in > debian/libmustache-d-dev.install
-	dh_install
+override_dh_auto_test:
+	ninja -Cbuild -v test
 
 override_dh_clean:
-	rm -f debian/libmustache-d-dev.install
+	rm -rf build/
 	dh_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/mustache-d.git



More information about the pkg-d-commits mailing list