mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 04:23:16 -04:00
dev-ml/tar: add 1.1.0
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
63
dev-ml/tar/tar-1.1.0.ebuild
Normal file
63
dev-ml/tar/tar-1.1.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user