mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
dev-ml/logs: add 0.9.0
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
DIST logs-0.7.0.tbz 18458 BLAKE2B 091d1778166af0b67e17e932a775a73e31e5d167b94b1b378063a7112c21bf1ac935c7e51fe29bcc0121cd5e60ea46ed3c7381f4db5df400b463feedfbe89663 SHA512 657f66eeaf5788947a3ff4b2a179f7e192ad4ce086fc8968286066d4b83af476523b3befce50ee58abf2d9b8c8dc65573ba8ed62f9c5e7933db29a7fb769646a
|
||||
DIST logs-0.8.0.tbz 19314 BLAKE2B 658f498aef61f42d2291b074fd317ace2db46c1b52c83a5757b3a7c1ed6b710ec20f6d56c5ade4e283b0d5760c43975e05572f935aff447c753be127eadf41b8 SHA512 c34c67b00d6a989a2660204ea70db8521736d6105f15d1ee0ec6287a662798fe5c4d47075c6e7c84f5d5372adb5af5c4c404f79db70d69140af5e0ebbea3b6a5
|
||||
DIST logs-0.9.0.tbz 19795 BLAKE2B c45086fa59a3b6bb332e7da6615278a0f1bcb687f080aa0503c751b40ac0d5a2c8de0314c908496f6704c9b93bf13e92674d3fab6ed8c653136174e8c9a9aa58 SHA512 b75fb28e83f33461b06b5c9b60972c4a9a9a1599d637b4a0c7b1e86a87f34fe5361e817cb31f42ad7e7cbb822473b28fab9f58a02870eb189ebe88dae8e045ff
|
||||
|
||||
68
dev-ml/logs/logs-0.9.0.ebuild
Normal file
68
dev-ml/logs/logs-0.9.0.ebuild
Normal file
@@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit findlib
|
||||
|
||||
DESCRIPTION="Logging infrastructure for OCaml"
|
||||
HOMEPAGE="https://erratique.ch/software/logs https://github.com/dbuenzli/logs"
|
||||
SRC_URI="https://erratique.ch/software/logs/releases/${P}.tbz"
|
||||
|
||||
LICENSE="ISC"
|
||||
SLOT="0/${PV}"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
||||
IUSE="+fmt cli +lwt test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-lang/ocaml-4.14
|
||||
dev-ml/result:=[ocamlopt]
|
||||
fmt? ( dev-ml/fmt:= )
|
||||
cli? ( dev-ml/cmdliner:=[ocamlopt] )
|
||||
lwt? ( dev-ml/lwt:= )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
dev-ml/findlib
|
||||
dev-ml/ocamlbuild
|
||||
dev-ml/opam-installer
|
||||
dev-ml/topkg
|
||||
test? ( <=dev-ml/mtime-1.4.0 )
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i \
|
||||
-e "/test\/test_fmt/d" \
|
||||
-e "/test\/test_formatter/d" \
|
||||
-e "/test\/tool/d" \
|
||||
-e "/test\/test_lwt/d" \
|
||||
pkg/pkg.ml \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ocaml pkg/pkg.ml build \
|
||||
--with-js_of_ocaml-compiler false \
|
||||
--with-fmt $(usex fmt true false) \
|
||||
--with-cmdliner $(usex cli true false) \
|
||||
--with-lwt $(usex lwt true false) \
|
||||
--tests $(usex test true false) \
|
||||
--with-base-threads true \
|
||||
|| die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ocaml pkg/pkg.ml test || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
opam-installer -i \
|
||||
--prefix="${ED}/usr" \
|
||||
--libdir="${D}/$(ocamlc -where)" \
|
||||
--docdir="${ED}/usr/share/doc/${PF}" \
|
||||
${PN}.install || die
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user