Package Details: ocaml-sedlex 3.3-2

Git Clone URL: https://aur.archlinux.org/ocaml-sedlex.git (read-only, click to copy)
Package Base: ocaml-sedlex
Description: Unicode-friendly OCaml lexer generator
Upstream URL: https://github.com/ocaml-community/sedlex
Keywords: generator lexer library ocaml unicode utf-8 utf8
Licenses: MIT
Submitter: mgrabovsky
Maintainer: dpeukert
Last Packager: dpeukert
Votes: 0
Popularity: 0.000000
First Submitted: 2016-08-17 17:05 (UTC)
Last Updated: 2024-11-13 22:15 (UTC)

Dependencies (5)

Required by (1)

Sources (1)

Pinned Comments

dpeukert commented on 2022-08-25 20:53 (UTC)

The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/ocaml-sedlex

Latest Comments

dpeukert commented on 2022-08-25 20:53 (UTC)

The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/ocaml-sedlex

dpeukert commented on 2022-06-16 16:30 (UTC)

Hey, I've noticed this package no longer builds, here's a fix (w/ an update to 3.0):

diff --git a/PKGBUILD b/PKGBUILD
index d22e184..2af78f5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,20 @@
 # Maintainer: Matej Grabovsky <matej.grabovsky at gmail>
-# Contributor: Daniel Peukert <dan.peukert@gmail.com>
+# Contributor: Daniel Peukert <daniel@peukert.cc>
 pkgname=ocaml-sedlex
-pkgver=2.5
+pkgver=3.0
 pkgrel=1
 pkgdesc='Unicode-friendly OCaml lexer generator'
 license=('MIT')
 arch=('i686' 'x86_64')
 url='https://github.com/ocaml-community/sedlex'
-depends=('ocaml>=4.04'
+depends=('ocaml>=4.08'
          'ocaml-gen'
-         'ocaml-ppxlib>=0.18.0'
+         'ocaml-ppxlib>=0.26.0'
          'ocaml-uchar')
-makedepends=('dune>=1.8.0')
+makedepends=('dune>=2.8.0')
 source=("https://github.com/alainfrisch/sedlex/archive/v${pkgver}.tar.gz")
 options=(!strip !makeflags)
-sha256sums=('5b98dcf6db145c7749709858443f3d997fe4670c14be05831577cc0b0da038a5')
+sha256sums=('d440f10ebe4fe245e7449246d4cbafad2f51124f8a3db91d3ea6ea3f9db48854')

 build() {
     cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
@@ -31,7 +31,7 @@ check() {
 package() {
     cd "$srcdir/${pkgname/ocaml-/}-$pkgver"

-    DESTDIR="$pkgdir" dune install --prefix /usr --libdir lib/ocaml --release
+    DESTDIR="$pkgdir" dune install --prefix /usr --libdir /usr/lib/ocaml --release

     install -dm755 "$pkgdir/usr/share/doc/$pkgname"
     mv "$pkgdir/usr/doc/sedlex/"* "$pkgdir/usr/share/doc/$pkgname/"
diff --git a/.SRCINFO b/.SRCINFO
index 80d752b..7f99528 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,22 +1,19 @@
-# Generated by mksrcinfo v8
-# Fri Dec 17 12:00:48 UTC 2021
 pkgbase = ocaml-sedlex
    pkgdesc = Unicode-friendly OCaml lexer generator
-   pkgver = 2.5
+   pkgver = 3.0
    pkgrel = 1
    url = https://github.com/ocaml-community/sedlex
    arch = i686
    arch = x86_64
    license = MIT
-   makedepends = dune>=1.8.0
-   depends = ocaml>=4.04
+   makedepends = dune>=2.8.0
+   depends = ocaml>=4.08
    depends = ocaml-gen
-   depends = ocaml-ppxlib>=0.18.0
+   depends = ocaml-ppxlib>=0.26.0
    depends = ocaml-uchar
    options = !strip
    options = !makeflags
-   source = https://github.com/alainfrisch/sedlex/archive/v2.5.tar.gz
-   sha256sums = 5b98dcf6db145c7749709858443f3d997fe4670c14be05831577cc0b0da038a5
+   source = https://github.com/alainfrisch/sedlex/archive/v3.0.tar.gz
+   sha256sums = d440f10ebe4fe245e7449246d4cbafad2f51124f8a3db91d3ea6ea3f9db48854

 pkgname = ocaml-sedlex
-

mgrabovsky commented on 2021-03-09 18:31 (UTC)

Oops, I removed the uchar dependency by mistake during the last release and missed dune earlier. All should be fixed now. Thanks for the heads up!

dpeukert commented on 2021-03-07 12:48 (UTC)

Hi, I've noticed that dune and uchar are missing as deps, here's a fix:

diff --git a/.SRCINFO b/.SRCINFO
index 80488e5..e44d6c0 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,16 @@
-# Generated by mksrcinfo v8
-# Mon Mar  1 11:30:16 UTC 2021
 pkgbase = ocaml-sedlex
    pkgdesc = Unicode-friendly OCaml lexer generator
    pkgver = 2.3
-   pkgrel = 1
+   pkgrel = 2
    url = https://github.com/ocaml-community/sedlex
    arch = i686
    arch = x86_64
    license = MIT
+   makedepends = dune>=1.8.0
    depends = ocaml>=4.04
    depends = ocaml-gen
    depends = ocaml-ppxlib>=0.18.0
+   depends = ocaml-uchar
    options = !strip
    options = !makeflags
    source = https://github.com/alainfrisch/sedlex/archive/v2.3.tar.gz
diff --git a/PKGBUILD b/PKGBUILD
index f20187c..c286b3f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,14 +2,16 @@
 # Contributor: Daniel Peukert <dan.peukert@gmail.com>
 pkgname=ocaml-sedlex
 pkgver=2.3
-pkgrel=1
+pkgrel=2
 pkgdesc='Unicode-friendly OCaml lexer generator'
 license=('MIT')
 arch=('i686' 'x86_64')
 url='https://github.com/ocaml-community/sedlex'
 depends=('ocaml>=4.04'
          'ocaml-gen'
-         'ocaml-ppxlib>=0.18.0')
+         'ocaml-ppxlib>=0.18.0'
+         'ocaml-uchar')
+makedepends=('dune>=1.8.0')
 source=("https://github.com/alainfrisch/sedlex/archive/v${pkgver}.tar.gz")
 options=(!strip !makeflags)
 sha256sums=('f9b090eb5e583b40b0ce89f15b94e87bdc933b5652c7afc0b652a6ae227a0f58')

mgrabovsky commented on 2020-07-06 17:56 (UTC)

Thanks, mate.

dpeukert commented on 2020-07-06 15:41 (UTC) (edited on 2020-07-06 15:42 (UTC) by dpeukert)

Hey, I've noticed this package no longer builds, so here's a fix (also contains an update to 2.2):

diff --git a/.SRCINFO b/.SRCINFO
index 9d6b7f2..07ac923 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,20 +1,23 @@
-# Generated by mksrcinfo v8
-# Sun Apr 26 10:57:54 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
+   makedepends = dune>=1.8.0
+   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.diff
+   sha256sums = de5459c98568cd1e2b96e8af61e428015d7f6650a1c0ec362d538d0874730841
+   sha256sums = 39dcebebc8946c4cd192bd2662167b59f6e492e7394973bbea7ef23560e26f9d

 pkgname = ocaml-sedlex

diff --git a/PKGBUILD b/PKGBUILD
index 212ace1..984255d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,41 @@
 # Maintainer: Matej Grabovsky <matej.grabovsky at gmail>
 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')
+makedepends=('dune>=1.8.0')
+source=("https://github.com/alainfrisch/sedlex/archive/v${pkgver}.tar.gz"
+        'fix-pervasives.diff')
 options=(!strip !makeflags)
-sha256sums=('7b4a66a74419a88a841370d7162243f834e0842c3ce984f2b0090f5f11ab1699')
+sha256sums=('de5459c98568cd1e2b96e8af61e428015d7f6650a1c0ec362d538d0874730841'
+            '39dcebebc8946c4cd192bd2662167b59f6e492e7394973bbea7ef23560e26f9d')
+
+prepare() {
+    cd "$srcdir/${pkgname/ocaml-/}-$pkgver"
+
+    patch --forward -p1 < "$srcdir/fix-pervasives.diff"
+}

 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.diff b/fix-pervasives.diff
new file mode 100644
index 0000000..df0c6cc
--- /dev/null
+++ b/fix-pervasives.diff
@@ -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 =

dpeukert commented on 2020-04-10 01:27 (UTC)

Can you fix the typo in the checksum field? Thanks

robertfoster commented on 2019-12-07 12:24 (UTC)

Please remove the <Paste> typo from sha256 field. Thanks man !

J5lx commented on 2018-07-02 13:29 (UTC)

ocaml-findlib is missing from makedepends.