From a7e0182ec772dcf05cd8cd71b0e8df1bfec54521 Mon Sep 17 00:00:00 2001 From: Ivan Lloro Date: Sun, 10 Aug 2025 11:40:44 +0100 Subject: [PATCH] dev-ml/camlpdf: add 2.8.1 Drop x86 support (not well supported by OCaml 4.X and unavailable in OCaml 5) Signed-off-by: Ivan Lloro Part-of: https://github.com/gentoo/gentoo/pull/39619 Signed-off-by: Joonas Niilola --- dev-ml/camlpdf/Manifest | 1 + dev-ml/camlpdf/camlpdf-2.8.1.ebuild | 36 +++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 dev-ml/camlpdf/camlpdf-2.8.1.ebuild diff --git a/dev-ml/camlpdf/Manifest b/dev-ml/camlpdf/Manifest index ee79105caf4e..17ff6b181e31 100644 --- a/dev-ml/camlpdf/Manifest +++ b/dev-ml/camlpdf/Manifest @@ -1 +1,2 @@ DIST camlpdf-2.7.1.tar.gz 841886 BLAKE2B 30215949fab2517e00cf520ef4f79a6fbf49173e7e2643ac1a47d0dd945063908de2928f7181d2182ad4fe51945bb3f6a89a54aa236a889ea392cd126ef856c8 SHA512 2480a282a6ce09444ed14a3f41561375ecf7e3c57f7559a48ad9791d9f824e59820bfd39aa36910ff6bdc9b160cef76ab90dbbfe628c836c3f5c5081dfd5e452 +DIST camlpdf-2.8.1.tar.gz 847238 BLAKE2B f3aa0e72c47e54222a138e058e817e2c6f76ec978b7f5b9f6e56f8fbfbfb923c403d331f4d77b63a1a2deb091a332f8f83b48559537301636b6ee2ad0f5e0072 SHA512 baf16128dbe4b3bf1cc1c726976e083cd12113de6865a1d847f1e606bdc2570ce474076d5350d705dd22f538e21dd524d9e8bd56708fedd56df822be92be36a2 diff --git a/dev-ml/camlpdf/camlpdf-2.8.1.ebuild b/dev-ml/camlpdf/camlpdf-2.8.1.ebuild new file mode 100644 index 000000000000..a42cce5c703b --- /dev/null +++ b/dev-ml/camlpdf/camlpdf-2.8.1.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit findlib + +DESCRIPTION="OCaml library for reading, writing, and modifying PDF files" +HOMEPAGE="https://github.com/johnwhitington/camlpdf/" +SRC_URI="https://github.com/johnwhitington/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +# technically LGPL-2.1+ with linking exception +LICENSE="LGPL-2.1-with-linking-exception" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="doc examples" + +RDEPEND="dev-lang/ocaml:=[ocamlopt]" +DEPEND="${RDEPEND}" + +src_compile() { + # parallel make bugs + emake -j1 +} + +src_install() { + findlib_src_install + dodoc Changes README.md + + if use doc ; then + dodoc introduction_to_camlpdf.pdf + dodoc -r doc/camlpdf/html + fi + + use examples && dodoc -r examples +}