Subject: [bug#77915] [PATCH 1/2] gnu: Add ocaml-camlpdf.

From: André Batista <[email-masked]>
Date: Fri, 16 May 2025 17:09:05 -0300

Hi Jussi,

sáb 19 abr 2025 às 08:43:15 (1745062995), [email-masked] enviou:
> (...)
> +       (file-name (git-file-name name version))
> +       (sha256
> +        (base32 "1cbqgwh62cqnsbax4k4iv9gb63k1v545izmbffxj8gj1q6sm0k34"))))
> +    (build-system ocaml-build-system)
> +    (arguments
> +     (list
> +      #:tests? #f ;no tests
> +      #:make-flags
> +      #~(list (string-append "CC=" #$(cc-for-target)))

These should be indented relative to the #:make-flags key, so that we can
see that they are arguments to it by just a glance to the code.  Two spaces
should be enough.

> +      #:phases
> +      #~(modify-phases %standard-phases

Same as above.

> +          (delete 'configure)
> +          (add-after 'unpack 'patch-makefile-shell
> +            (lambda _
> +              (patch-makefile-SHELL "OCamlMakefile")))
> +          (add-after 'install 'install-doc
> +            (lambda _
> +              (let ((doc (string-append #$output "/share/doc/"
> +                                        #$name "-" #$version)))
> +                (copy-recursively "doc/camlpdf/html"
> +                                  (string-append doc "/html"))))))))
> +    (home-page "https://github.com/johnwhitington/camlpdf")
> +    (synopsis "OCaml library for PDF file manipulation")
> +    (description
> +     "CamlPDF is an OCaml library that provides functionality for reading,
> +writing, and modifying PDF files.  It serves as the foundation for the
> +@command{cpdf} command-line tool and various API bindings.")
> +    (license license:lgpl2.1+)))
> +
>  (define-public ocaml-cudf
>    (package
>      (name "ocaml-cudf")
> -- 
> 2.49.0

On cpdf there are similar indentation issues.  Other than that LGTM.  I've
successfuly build and made minimal testing.

Could you send a v2 patch fixing the indentation?

Cheers!