mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
dev-ml/vhd: initial import
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
dev-ml/vhd/Manifest
Normal file
1
dev-ml/vhd/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST vhd-0.12.2.tar.gz 51907 BLAKE2B 55c08d3dc7ec6f3611fe081860942f0e68eb6e1cdb284d5190baac70d5f2145ea8af3adb80ab51a388b9810b13bece8654d0c49814fecba212d0a400b9cd1662 SHA512 bea4b97492b9c5304418ed220e9303d8d94b3a7db6b7dc3566a967a9878da7dc69b655be6a66edb0ff22806de13c75693cf2dbe93e6e57a736fab0964872d99d
|
||||
14
dev-ml/vhd/metadata.xml
Normal file
14
dev-ml/vhd/metadata.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">mirage/ocaml-vhd</remote-id>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="lwt">provide an Lwt compatible interface to the library</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
52
dev-ml/vhd/vhd-0.12.2.ebuild
Normal file
52
dev-ml/vhd/vhd-0.12.2.ebuild
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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="Read and write .vhd-format format data"
|
||||
HOMEPAGE="https://github.com/mirage/ocaml-vhd-format"
|
||||
SRC_URI="https://github.com/mirage/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${MYPN}-${PV}"
|
||||
|
||||
LICENSE="LGPL-2.1-with-linking-exception"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="lwt ocamlopt test"
|
||||
|
||||
RDEPEND="
|
||||
dev-ml/cstruct
|
||||
dev-ml/io-page
|
||||
dev-ml/rresult
|
||||
dev-ml/uuidm
|
||||
dev-ml/stdlib-shims
|
||||
|
||||
lwt? (
|
||||
dev-ml/mirage-block
|
||||
dev-ml/lwt
|
||||
)
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
test? (
|
||||
dev-ml/ounit
|
||||
dev-ml/io-page[unix(-)]
|
||||
)
|
||||
"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
REQUIRED_USE="test? ( lwt )"
|
||||
|
||||
src_compile() {
|
||||
local pkgs="vhd-format"
|
||||
use lwt && pkgs="${pkgs},vhd-format-lwt"
|
||||
dune build -p "${pkgs}" -j $(makeopts_jobs) || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dune_src_install vhd-format
|
||||
use lwt && dune_src_install vhd-format-lwt
|
||||
}
|
||||
Reference in New Issue
Block a user