app-text/cpdf: version bump to 2.2.1
authorTim Harder <radhermit@gentoo.org>
Fri, 21 Dec 2018 07:01:26 +0000 (01:01 -0600)
committerTim Harder <radhermit@gentoo.org>
Fri, 21 Dec 2018 07:47:54 +0000 (01:47 -0600)
Signed-off-by: Tim Harder <radhermit@gentoo.org>
app-text/cpdf/Manifest
app-text/cpdf/cpdf-2.2.1.ebuild [new file with mode: 0644]

index 4b5b9d4c9d23207bf64b0879f29d2281f87c0e0e..610aa4c715aba568fab6c63f240402a2efdbf14f 100644 (file)
@@ -1 +1,2 @@
 DIST cpdf-2.1.1.tar.gz 349536 BLAKE2B 4064605890745ebaa24d32c3294a3293312dc8df6ab3989e1a7417989cdb19aca6b70faafb258c7c00d6febeba8b17379396c1f90628e72be0791cdefc579b6f SHA512 aa06efaf098d3fe3f560ea30da9c3546e13d294b22d61c4cc3df553eb90e338d59ee1b51d14d7982ce52967bcf98c2afec9a5b5ae101e2183961f4be862c6517
+DIST cpdf-2.2.1.tar.gz 704730 BLAKE2B 1767d2c9fdc645b4ff97b828b1d7bedb22aa645444f299e36ec4717015ea7b87dbbac4c9ec27bb508a7adb28b2c75c155bf9094a168567abbffa93887712241d SHA512 3dda72513c551cca5d8cb60732b3f2c2e8ad400bd2c9fcf0c3b54a68e94385e3f19ec7713de95efa90eafb7b0077662097565a28616041019e03edf140b6af4f
diff --git a/app-text/cpdf/cpdf-2.2.1.ebuild b/app-text/cpdf/cpdf-2.2.1.ebuild
new file mode 100644 (file)
index 0000000..f65bcfc
--- /dev/null
@@ -0,0 +1,39 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit findlib
+
+DESCRIPTION="A command line tool for manipulating PDF files"
+HOMEPAGE="http://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"
+
+# BSD is only for xmlm.ml
+LICENSE="Coherent-Graphics BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND=">=dev-lang/ocaml-4:=[ocamlopt]
+       dev-ml/camlpdf:="
+DEPEND="${RDEPEND}"
+
+RESTRICT="mirror bindist"
+
+S=${WORKDIR}/${PN}-source-${PV}
+
+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
+}