mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
dev-util/ocamlformat: add 0.29.0
Signed-off-by: Daichi Yamamoto <dev@dyama.net>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST ocamlformat-0.26.2.tar.gz 901463 BLAKE2B 619838f68f6031d8e98319a66c3a906b46e1c394c5d7ddce18a4c91029522add716f298d18b232503a84c1a0f6384edd280cc20faf0974f5b8c019e2e827a083 SHA512 c6df074b69a35a545898961f8cd578a5cafbf4a382bd0b9783a770a40072bdd91be864a53c27c175ceef7ffff5a25b165b475c7a92ac4f790bf19abc74897bbe
|
||||
DIST ocamlformat-0.29.0.tar.gz 1419912 BLAKE2B c4e51555346f7139987f2aad8544b1d46a30cd94ca2ce80a434f63e132bce8a6d8790d38fcd54536a778f0d1c16783bf4af92b80329d71467da7b589d1c05810 SHA512 c33216f4e3f109e7bb0a69d648938a31a2a43129cfab695b1129aa9b693de297225ca2d0b3cf9172724f7993d9cfe0ea7cb5f5dfb6fafb91113ce579ea2c70de
|
||||
|
||||
55
dev-util/ocamlformat/ocamlformat-0.29.0.ebuild
Normal file
55
dev-util/ocamlformat/ocamlformat-0.29.0.ebuild
Normal file
@@ -0,0 +1,55 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit dune
|
||||
|
||||
DESCRIPTION="Auto-formatter for OCaml code"
|
||||
HOMEPAGE="https://github.com/ocaml-ppx/ocamlformat"
|
||||
SRC_URI="https://github.com/ocaml-ppx/ocamlformat/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
|
||||
SLOT="0/${PV}"
|
||||
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="ocamlopt test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-ml/cmdliner-1.1.0:=
|
||||
>=dev-ml/csexp-1.4.0:=
|
||||
~dev-ml/ocamlformat-lib-${PV}:=
|
||||
>=dev-ml/re-1.10.3:=
|
||||
"
|
||||
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
"
|
||||
|
||||
# Includes testing dependencies of `ocamlformat-lib`.
|
||||
BDEPEND="
|
||||
test? (
|
||||
>=dev-ml/cmdliner-1.2.0:=
|
||||
~dev-ml/ocamlformat-rpc-lib-${PV}:=
|
||||
|
||||
>=dev-ml/alcotest-1.3.0:=
|
||||
>=dev-util/ocp-indent-1.8.1:=
|
||||
)
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed -i "/^(name ocamlformat)/a (version ${PV})" dune-project || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
dune-compile ocamlformat
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dune-install ocamlformat
|
||||
}
|
||||
Reference in New Issue
Block a user