dev-ml/angstrom: change metadata

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-05 20:45:12 +02:00
parent 9371202881
commit 15f54d81e1
2 changed files with 27 additions and 10 deletions

View File

@@ -3,7 +3,7 @@
EAPI=8
inherit dune
inherit dune multiprocessing
DESCRIPTION="Parser combinators built for speed and memory efficiency"
HOMEPAGE="https://github.com/inhabitedtype/angstrom"
@@ -12,19 +12,31 @@ SRC_URI="https://github.com/inhabitedtype/angstrom/archive/${PV}.tar.gz -> ${P}.
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="ocamlopt"
IUSE="async lwt-unix ocamlopt unix"
RDEPEND="
dev-ml/async
dev-ml/base
async? ( dev-ml/async )
lwt-unix? (
dev-ml/base
dev-ml/lwt
)
unix? ( dev-ml/base )
dev-ml/bigstringaf
dev-ml/lwt
"
DEPEND="${RDEPEND}"
src_install() {
dune_src_install angstrom-async
dune_src_install angstrom-lwt-unix
dune_src_install angstrom-unix
dune_src_install angstrom
src_compile() {
local pkgs="angstrom"
use async && pkgs="${pkgs},angstrom-async"
use unix && pkgs="${pkgs},angstrom-unix"
use lwt-unix && pkgs="${pkgs},angstrom-lwt-unix"
dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die
}
src_install() {
dune_src_install angstrom
use async && dune_src_install angstrom-async
use lwt-unix && dune_src_install angstrom-lwt-unix
use unix && dune_src_install angstrom-unix
}

View File

@@ -9,4 +9,9 @@
<upstream>
<remote-id type="github">inhabitedtype/angstrom</remote-id>
</upstream>
<use>
<flag name="async">Async support for Angstrom</flag>
<flag name="lwt-unix">Lwt_unix support for Angstrom</flag>
<flag name="unix">Unix support for Angstrom</flag>
</use>
</pkgmetadata>