commit:     7267ce69059f3d6d639dc0433ae7e1a9d7254cbd
Author:     Ivan Lloro <ivan.lloro.boada <AT> gmail <DOT> com>
AuthorDate: Sun Aug 10 10:41:29 2025 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Aug 12 11:32:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7267ce69

app-text/cpdf: add 2.8.1

Drop x86 support (not well supported by OCaml 4.X and unavailable in OCaml 5)

Signed-off-by: Ivan Lloro <ivan.lloro.boada <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/39619
Closes: https://github.com/gentoo/gentoo/pull/39619
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-text/cpdf/Manifest          |  1 +
 app-text/cpdf/cpdf-2.8.1.ebuild | 36 ++++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)

diff --git a/app-text/cpdf/Manifest b/app-text/cpdf/Manifest
index 5a307665312c..71fe044a7b4c 100644
--- a/app-text/cpdf/Manifest
+++ b/app-text/cpdf/Manifest
@@ -1 +1,2 @@
 DIST cpdf-2.7.1.tar.gz 1660693 BLAKE2B 
71cbb72c06ceacd12adbb97c81a504626273d3c0bc74077936b6693bb397b38c97a2db70703a3da8a7caa49d696ee904992150cba133079408e961ef8c7273a2
 SHA512 
b23c1c151f095d11b6c3c56766cdc05aa6b12a0e1224880a050f69f67c4d40053f2415ac3f9e54233bf8314ca8bdfccc2c65dd44b0c6d60ae8d7c08b1c411a04
+DIST cpdf-2.8.1.tar.gz 1740371 BLAKE2B 
cd1a99fda9524091d680ddf2218b34f09c55b251708d16beaab0e621b268780e53bae2fb3bd247e7b6e3951800715f977c7a9df7f0388023f0a5e08cde610566
 SHA512 
f325c703835a82be462cafa5fb9548329ef648e3aa66bca73c2ae1d9e99813b3008915018bf5090e0c0dd6e31509e97895b01c64a9b4484c4993be59e85995e8

diff --git a/app-text/cpdf/cpdf-2.8.1.ebuild b/app-text/cpdf/cpdf-2.8.1.ebuild
new file mode 100644
index 000000000000..c407970fa307
--- /dev/null
+++ b/app-text/cpdf/cpdf-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="A command line tool for manipulating PDF files"
+HOMEPAGE="https://community.coherentpdf.com/ 
https://github.com/johnwhitington/cpdf-source/";
+SRC_URI="https://github.com/johnwhitington/cpdf-source/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-source-${PV}"
+
+# ISC is only for cpdfxmlm.ml{,i}
+LICENSE="AGPL-3 ISC"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc"
+
+RDEPEND=">=dev-lang/ocaml-4:=[ocamlopt]
+       ~dev-ml/camlpdf-${PV}:="
+DEPEND="${RDEPEND}"
+
+src_compile() {
+       # parallel make issues
+       emake -j1
+}
+
+src_install() {
+       findlib_src_install
+
+       dobin cpdf
+       dodoc Changes README.md cpdfmanual.pdf
+       doman cpdf.1
+
+       use doc && dodoc -r doc/cpdf/html
+}

Reply via email to