summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Glondu <steph@glondu.net>2023-07-15 13:52:19 +0200
committerStephane Glondu <steph@glondu.net>2023-07-15 13:52:49 +0200
commit68ba12d1f68ba3e537887719b461736cdafdee9c (patch)
tree31abecb6d37e04f0db271038a866f3f19543fcb6
parent85c5bcc6d4b163517f4b438cb02e4875bb5285ff (diff)
Use ocaml_dune DH buildsystemdebian/1.2-2
-rw-r--r--debian/changelog6
-rw-r--r--debian/control2
-rw-r--r--debian/debian-dune1
-rwxr-xr-xdebian/rules13
4 files changed, 9 insertions, 13 deletions
diff --git a/debian/changelog b/debian/changelog
index 3218c3a..46a91f0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+ocplib-endian (1.2-2) unstable; urgency=medium
+
+ * Use ocaml_dune DH buildsystem
+
+ -- Stéphane Glondu <glondu@debian.org> Sat, 15 Jul 2023 13:52:12 +0200
+
ocplib-endian (1.2-1) unstable; urgency=low
[ Stéphane Glondu ]
diff --git a/debian/control b/debian/control
index 825070f..2e8f03c 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Build-Depends:
ocaml-nox,
ocaml-dune,
cppo,
- dh-ocaml
+ dh-ocaml (>= 1.2)
Standards-Version: 4.6.0
Rules-Requires-Root: no
Section: ocaml
diff --git a/debian/debian-dune b/debian/debian-dune
new file mode 100644
index 0000000..d63e876
--- /dev/null
+++ b/debian/debian-dune
@@ -0,0 +1 @@
+ocplib-endian
diff --git a/debian/rules b/debian/rules
index ef3411f..9cf84c0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,21 +3,10 @@
include /usr/share/ocaml/ocamlvars.mk
-DESTDIR=$(CURDIR)/debian/tmp
-
%:
- dh $@ --with ocaml
-
-override_dh_auto_build:
- dune build -p ocplib-endian
-
-override_dh_auto_install:
- dune install --destdir=$(DESTDIR) --prefix=/usr --libdir=..$(OCAML_STDLIB_DIR)
- rm -f $(DESTDIR)/usr/doc/ocplib-endian/COPYING.txt
+ dh $@ --with ocaml --buildsystem ocaml_dune
override_dh_auto_test:
ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
dh_auto_test
endif
-
-override_dh_dwz: