summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Glondu <steph@glondu.net>2023-08-13 12:13:36 +0200
committerStephane Glondu <steph@glondu.net>2023-08-13 12:13:36 +0200
commit1a46c0e40d14c7adb764807eb149afda90c9f8a7 (patch)
tree0d09a5b67d1206fcded51a9ce55dd6ae6c879e27
parentf4883ba7d0e6392e27cc2152ed4116d74fb041f5 (diff)
Use ocaml_dune DH buildsystem
-rw-r--r--debian/changelog6
-rw-r--r--debian/control2
-rw-r--r--debian/debian-dune1
-rwxr-xr-xdebian/rules16
4 files changed, 10 insertions, 15 deletions
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 <glondu@debian.org> 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 <debian-ocaml-maint@lists.debian.org>
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