diff --git a/dev-ml/tar/Manifest b/dev-ml/tar/Manifest index 96729e50ab..bfbe50b959 100644 --- a/dev-ml/tar/Manifest +++ b/dev-ml/tar/Manifest @@ -1 +1,2 @@ +DIST tar-1.1.0.tar.gz 24429 BLAKE2B 778f77f650c775e22cfd71741ce3b0aa5e75026c4be697c3d9d5532407c07f68c59700a78eff5c48bcfefa6db7b5116fed3d9c0bba708bb94b5cce41bea5dbbe SHA512 d02a5c2bef9a77b2bb32f7f85d741eb58d42ffcff916a3cfe618ff4b372d72e53176dfc050e876efcbbaf5057aa21b5615e99ebb435eb63aa10815b0ce102ba7 DIST tar-2.0.1.tar.gz 26751 BLAKE2B a381c258c75350198c25c105f8ca33f33dd8d946f88cb102186ece414def2fa5e25191c2ed43d5d0e9286a0bc352ffec8b6999d17f18479642900b59f4d1cc17 SHA512 fd2e302497eb673a4e8000d0bcfd9012b1f118021e1d071a7c56cc6652ec6da9c6f755c18aa4b275daf1f722409d71cbb4519285096682344bfa65bbe800cbd1 diff --git a/dev-ml/tar/tar-1.1.0.ebuild b/dev-ml/tar/tar-1.1.0.ebuild new file mode 100644 index 0000000000..4102ea6773 --- /dev/null +++ b/dev-ml/tar/tar-1.1.0.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune multiprocessing + +MYPN="ocaml-${PN}" + +DESCRIPTION="Pure OCaml library to read and write tar files" +HOMEPAGE=" + https://github.com/mirage/ocaml-tar + https://opam.ocaml.org/packages/tar/ +" +SRC_URI="https://github.com/mirage/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${MYPN}-${PV}" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="mirage ocamlopt test unix" + +RDEPEND=" + dev-ml/camlp-streams:= + dev-ml/cstruct:= + dev-ml/re:= + dev-ml/lwt:= + + mirage? ( + dev-ml/io-page:= + dev-ml/mirage-block:= + dev-ml/mirage-kv:= + dev-ml/ptime:= + ) +" +DEPEND=" + ${RDEPEND} + test? ( + dev-ml/mirage-block-unix + dev-ml/ounit2 + ) +" + +RESTRICT="!test? ( test )" +REQUIRED_USE=" + test? ( mirage unix ) +" + +src_compile() { + local pkgs="tar" + for u in mirage unix ; do + if use ${u} ; then + pkgs="${pkgs},tar-${u}" + fi + done + dune build -p "${pkgs}" -j $(makeopts_jobs) || die +} + +src_install() { + dune_src_install tar + use mirage && dune_src_install tar-mirage + use unix && dune_src_install tar-unix +} diff --git a/dev-ml/tar/tar-2.0.1.ebuild b/dev-ml/tar/tar-2.0.1.ebuild index c993136e2b..4102ea6773 100644 --- a/dev-ml/tar/tar-2.0.1.ebuild +++ b/dev-ml/tar/tar-2.0.1.ebuild @@ -8,7 +8,10 @@ inherit dune multiprocessing MYPN="ocaml-${PN}" DESCRIPTION="Pure OCaml library to read and write tar files" -HOMEPAGE="https://github.com/mirage/ocaml-tar" +HOMEPAGE=" + https://github.com/mirage/ocaml-tar + https://opam.ocaml.org/packages/tar/ +" SRC_URI="https://github.com/mirage/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/${MYPN}-${PV}"