Package Details: ocaml-ocp-indent 1.8.2-4

Git Clone URL: https://aur.archlinux.org/ocaml-ocp-indent.git (read-only, click to copy)
Package Base: ocaml-ocp-indent
Description: Indentation tool for OCaml, to be used from editors like Emacs and Vim.
Upstream URL: https://github.com/OCamlPro/ocp-indent
Keywords: indent ocaml
Licenses: LGPL
Submitter: condy
Maintainer: condy
Last Packager: condy
Votes: 1
Popularity: 0.000000
First Submitted: 2020-02-09 05:38 (UTC)
Last Updated: 2022-12-07 15:48 (UTC)

Latest Comments

eclairevoyant commented on 2022-12-06 20:12 (UTC) (edited on 2022-12-06 20:12 (UTC) by eclairevoyant)

Thanks for taking a look at this! Also ocaml-findlib should be included as per opam-repository, otherwise building fails:

==> Starting build()...
File "src/dune", line 34, characters 12-19:
34 |  (libraries findlib dynlink ocp-indent.lexer ocp-indent.utils)
                 ^^^^^^^
Error: Library "findlib" not found.
-> required by library "ocp-indent.dynlink" in _build/default/src
-> required by executable indentMain in src/dune:37
-> required by _build/default/src/indentMain.exe
-> required by _build/install/default/bin/ocp-indent
-> required by _build/default/ocp-indent.install
-> required by alias install
-> required by alias default

condy commented on 2022-12-06 16:08 (UTC)

Thanks for correcting me!

eclairevoyant commented on 2022-12-04 07:56 (UTC) (edited on 2022-12-04 07:58 (UTC) by eclairevoyant)

This package doesn't need provides or conflicts. Also, due to some changes in ocaml-cmdliner, it fails to build due to some deprecated commands. Based on the info here, I think the easiest fix is adding something like the following:

prepare() {
    _files=(indentArgs.ml{,i} indentMain.ml)
    for _f in ${_files[@]}; do
        sed -i '1i[@@@alert "-deprecated"]' $_pkgname-$pkgver/src/$_f
    done
}

Finally the license should be corrected to LGPL2.1