From 1a46c0e40d14c7adb764807eb149afda90c9f8a7 Mon Sep 17 00:00:00 2001 From: Stephane Glondu Date: Sun, 13 Aug 2023 12:13:36 +0200 Subject: Use ocaml_dune DH buildsystem --- debian/changelog | 6 ++++++ debian/control | 2 +- debian/debian-dune | 1 + debian/rules | 16 ++-------------- 4 files changed, 10 insertions(+), 15 deletions(-) create mode 100644 debian/debian-dune diff --git a/debian/changelog b/debian/changelog index 1cab382..fed0811 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ocaml-benchmark (1.6-4) UNRELEASED; urgency=medium + + * Use ocaml_dune DH buildsystem + + -- Stéphane Glondu Sun, 13 Aug 2023 12:13:33 +0200 + ocaml-benchmark (1.6-3) unstable; urgency=medium * Team upload diff --git a/debian/control b/debian/control index 3a58713..2b86796 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Debian OCaml Maintainers Build-Depends: debhelper-compat (= 13), - dh-ocaml, + dh-ocaml (>= 1.2), ocaml, ocaml-dune Standards-Version: 4.6.0 diff --git a/debian/debian-dune b/debian/debian-dune new file mode 100644 index 0000000..d83a1b2 --- /dev/null +++ b/debian/debian-dune @@ -0,0 +1 @@ +benchmark diff --git a/debian/rules b/debian/rules index 2d98311..91ce70b 100755 --- a/debian/rules +++ b/debian/rules @@ -1,19 +1,7 @@ #!/usr/bin/make -f - -# Uncomment this to turn on verbose mode. -# export DH_VERBOSE=1 -# export DH_OPTIONS=-v - -DESTDIR=$(CURDIR)/debian/tmp +# -*- makefile -*- include /usr/share/ocaml/ocamlvars.mk %: - dh $@ --with ocaml - -override_dh_auto_build: - dune build -p benchmark - -override_dh_auto_install: - dune install --destdir=$(DESTDIR) --prefix=/usr --libdir=$(OCAML_STDLIB_DIR) - rm -f $(DESTDIR)/usr/doc/benchmark/LICENSE.md + dh $@ --with ocaml --buildsystem ocaml_dune -- cgit v1.2.3