diff options
author | Matěj Grabovský | 2020-07-06 19:52:15 +0200 |
---|---|---|
committer | Matěj Grabovský | 2020-07-06 19:52:15 +0200 |
commit | 1947ade0ad74a6b420d0a5deb718744b7b0fcb3b (patch) | |
tree | 19ffea38c262665980af19af003eb4d6e8fc53ca | |
parent | 23a6327add09e16e4407b653c0e21ccab482fcf1 (diff) | |
download | aur-1947ade0ad74a6b420d0a5deb718744b7b0fcb3b.tar.gz |
Update to 2.2
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | fix-pervasives.patch | 21 |
3 files changed, 58 insertions, 19 deletions
@@ -1,20 +1,24 @@ # Generated by mksrcinfo v8 -# Sun Apr 26 10:57:54 UTC 2020 +# Mon Jul 6 17:52:02 UTC 2020 pkgbase = ocaml-sedlex pkgdesc = Unicode-friendly OCaml lexer generator - pkgver = 2.1 - pkgrel = 3 + pkgver = 2.2 + pkgrel = 1 url = https://github.com/ocaml-community/sedlex arch = i686 arch = x86_64 license = MIT - depends = ocaml + depends = ocaml>=4.02.3 depends = ocaml-gen - depends = ocaml-ppx_tools + depends = ocaml-migrate-parsetree + depends = ocaml-ppx_tools_versioned>=5.2.3 + depends = ocaml-uchar options = !strip options = !makeflags - source = https://github.com/alainfrisch/sedlex/archive/v2.1.tar.gz - sha256sums = 7b4a66a74419a88a841370d7162243f834e0842c3ce984f2b0090f5f11ab1699 + source = https://github.com/alainfrisch/sedlex/archive/v2.2.tar.gz + source = fix-pervasives.patch + sha256sums = de5459c98568cd1e2b96e8af61e428015d7f6650a1c0ec362d538d0874730841 + sha256sums = 39dcebebc8946c4cd192bd2662167b59f6e492e7394973bbea7ef23560e26f9d pkgname = ocaml-sedlex @@ -1,31 +1,45 @@ # Maintainer: Matej Grabovsky <matej.grabovsky at gmail> +# Contributor: Daniel Peukert <dan.peukert@gmail.com> pkgname=ocaml-sedlex -pkgver=2.1 -pkgrel=3 +pkgver=2.2 +pkgrel=1 pkgdesc='Unicode-friendly OCaml lexer generator' license=('MIT') arch=('i686' 'x86_64') url='https://github.com/ocaml-community/sedlex' -depends=('ocaml' 'ocaml-gen' 'ocaml-ppx_tools') -source=("https://github.com/alainfrisch/sedlex/archive/v${pkgver}.tar.gz") +depends=('ocaml>=4.02.3' + 'ocaml-gen' + 'ocaml-migrate-parsetree' + 'ocaml-ppx_tools_versioned>=5.2.3' + 'ocaml-uchar') +source=("https://github.com/alainfrisch/sedlex/archive/v${pkgver}.tar.gz" + 'fix-pervasives.patch') options=(!strip !makeflags) -sha256sums=('7b4a66a74419a88a841370d7162243f834e0842c3ce984f2b0090f5f11ab1699') +sha256sums=('de5459c98568cd1e2b96e8af61e428015d7f6650a1c0ec362d538d0874730841' + '39dcebebc8946c4cd192bd2662167b59f6e492e7394973bbea7ef23560e26f9d') + +prepare() { + cd "$srcdir/${pkgname/ocaml-/}-$pkgver" + + patch --forward -p1 < "$srcdir/fix-pervasives.patch" +} build() { cd "$srcdir/${pkgname/ocaml-/}-$pkgver" - make all - make opt + make build } -package() { +check() { cd "$srcdir/${pkgname/ocaml-/}-$pkgver" - export DESTDIR="$pkgdir$(ocamlfind printconf destdir)" - export OCAMLFIND_DESTDIR="$DESTDIR" - mkdir -p "$DESTDIR" + make test +} + +package() { + cd "$srcdir/${pkgname/ocaml-/}-$pkgver" - make install + DESTDIR="$pkgdir" dune install --prefix /usr --libdir lib/ocaml --release install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } diff --git a/fix-pervasives.patch b/fix-pervasives.patch new file mode 100644 index 000000000000..df0c6cc991fa --- /dev/null +++ b/fix-pervasives.patch @@ -0,0 +1,21 @@ +diff --git a/src/generator/gen_unicode.ml.inc b/src/generator/gen_unicode.ml.inc +index 44106a1..78415fc 100644 +--- a/src/generator/gen_unicode.ml.inc ++++ b/src/generator/gen_unicode.ml.inc +@@ -77,14 +77,14 @@ let split list n = + + let print_elements ch hashtbl = + let cats = +- List.sort_uniq Pervasives.compare ++ List.sort_uniq compare + (Hashtbl.fold (fun cat _ l -> cat::l) hashtbl []) + in + let len = List.length cats in + List.iter (fun c -> + let entries = + List.map (fun (b,e) -> Printf.sprintf "0x%x, 0x%x" b e) +- (List.sort_uniq Pervasives.compare ++ (List.sort_uniq compare + (Hashtbl.find_all hashtbl c)) + in + let entries = |