Stéphane Glondu pushed to branch master at Debian OCaml Maintainers / ocaml-sedlex
Commits:
-
d9af9e3e
by Stephane Glondu at 2023-08-13T17:53:54+02:00
4 changed files:
Changes:
| 1 | +ocaml-sedlex (3.0-3) UNRELEASED; urgency=medium
|
|
| 2 | + |
|
| 3 | + * Use ocaml_dune DH buildsystem
|
|
| 4 | + |
|
| 5 | + -- Stéphane Glondu <glondu@debian.org> Sun, 13 Aug 2023 17:53:39 +0200
|
|
| 6 | + |
|
| 1 | 7 | ocaml-sedlex (3.0-2) unstable; urgency=medium
|
| 2 | 8 | |
| 3 | 9 | * Team upload.
|
| ... | ... | @@ -12,7 +12,7 @@ Build-Depends: |
| 12 | 12 | libgen-ocaml-dev,
|
| 13 | 13 | libppxlib-ocaml-dev (>= 0.18.0),
|
| 14 | 14 | ocaml-findlib,
|
| 15 | - dh-ocaml
|
|
| 15 | + dh-ocaml (>= 1.2)
|
|
| 16 | 16 | Homepage: https://github.com/ocaml-community/sedlex
|
| 17 | 17 | Vcs-Browser: https://salsa.debian.org/ocaml-team/ocaml-sedlex
|
| 18 | 18 | Vcs-Git: https://salsa.debian.org/ocaml-team/ocaml-sedlex.git
|
| 1 | +sedlex |
| 1 | 1 | #!/usr/bin/make -f
|
| 2 | +# -*- makefile -*-
|
|
| 2 | 3 | |
| 3 | -DESTDIR=$(CURDIR)/debian/tmp
|
|
| 4 | 4 | include /usr/share/ocaml/ocamlvars.mk
|
| 5 | -export OCAMLFIND_DESTDIR=$(DESTDIR)$(OCAML_STDLIB_DIR)
|
|
| 6 | - |
|
| 7 | -%:
|
|
| 8 | - dh $@ --with ocaml
|
|
| 9 | 5 | |
| 10 | -override_dh_auto_configure:
|
|
| 6 | +DESTDIR=$(CURDIR)/debian/tmp
|
|
| 7 | +OCAMLFIND_DESTDIR=$(DESTDIR)$(OCAML_STDLIB_DIR)
|
|
| 11 | 8 | |
| 12 | -override_dh_auto_build:
|
|
| 13 | - dune build -p sedlex --verbose
|
|
| 9 | +%:
|
|
| 10 | + dh $@ --with ocaml --buildsystem ocaml_dune
|
|
| 14 | 11 | |
| 15 | -override_dh_auto_install:
|
|
| 16 | - dune install --destdir=$(DESTDIR) --prefix=/usr --libdir=$(OCAML_STDLIB_DIR) --verbose
|
|
| 12 | +execute_after_dh_auto_install:
|
|
| 17 | 13 | sed -i 's/uchar//g' $(OCAMLFIND_DESTDIR)/sedlex/META
|
| 18 | 14 | sed -i 's/uchar//g' $(OCAMLFIND_DESTDIR)/sedlex/dune-package
|
| 19 | 15 | sed -i 's/"uchar"//g' $(OCAMLFIND_DESTDIR)/sedlex/opam |
| 20 | - |
|
| 21 | -override_dh_auto_test:
|
|
| 22 | - dune build @runtest -p sedlex --verbose |