gentoo-ebuilds/dev-ml/camlzip/camlzip-1.13.ebuild
Sam James 15680df2a7
dev-ml/camlzip: Stabilize 1.13 x86, #945767
Signed-off-by: Sam James <sam@gentoo.org>
2024-12-29 10:53:33 +00:00

42 lines
915 B
Bash

# 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
}