summaryrefslogtreecommitdiff
path: root/dev-ml/camlzip/camlzip-1.13.ebuild
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2024-11-02 16:39:31 +0100
committerAlfredo Tupone <tupone@gentoo.org>2024-11-02 16:39:48 +0100
commitf55665ccef5d2e6a481ae6dcd1e346dfdcea86f4 (patch)
treec4e0dc93c6335635a44726e64e2ca99a2c4b3d89 /dev-ml/camlzip/camlzip-1.13.ebuild
parent98456fa074771982d5f0c9841c6b9bce226168ff (diff)
downloadgentoo-f55665ccef5d2e6a481ae6dcd1e346dfdcea86f4.tar.gz
gentoo-f55665ccef5d2e6a481ae6dcd1e346dfdcea86f4.tar.bz2
gentoo-f55665ccef5d2e6a481ae6dcd1e346dfdcea86f4.zip
dev-ml/camlzip: add 1.13
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml/camlzip/camlzip-1.13.ebuild')
-rw-r--r--dev-ml/camlzip/camlzip-1.13.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/dev-ml/camlzip/camlzip-1.13.ebuild b/dev-ml/camlzip/camlzip-1.13.ebuild
new file mode 100644
index 000000000000..e68f0345ce9f
--- /dev/null
+++ b/dev-ml/camlzip/camlzip-1.13.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit findlib
+
+DESCRIPTION="Compressed file access ML library (ZIP, GZIP and JAR)"
+HOMEPAGE="https://github.com/xavierleroy/camlzip"
+SRC_URI="https://github.com/xavierleroy/camlzip/archive/rel$(ver_rs 1- '').tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-rel$(ver_rs 1- '')"
+
+LICENSE="LGPL-2.1"
+SLOT="1/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+IUSE="+ocamlopt"
+
+RDEPEND=">=dev-lang/ocaml-4.13:=[ocamlopt?]
+ >=sys-libs/zlib-1.1.3"
+DEPEND="${RDEPEND}"
+
+QA_FLAGS_IGNORED=(
+ "usr/lib.*/ocaml/stublibs/dllcamlzip.so"
+ "usr/lib.*/ocaml/zip/zip.cmxs"
+)
+
+src_compile() {
+ emake allbyt
+
+ if use ocamlopt; then
+ emake allopt
+ fi
+}
+
+src_install() {
+ findlib_src_preinst
+
+ emake DESTDIR="${D}" install-findlib
+ dosym zip/libcamlzip.a /usr/$(get_libdir)/ocaml/libcamlzip.a
+
+ dodoc README.md Changes
+}