commit: 954f5791f829419d58a39a4cfafdd0b83883bf0a Author: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com> AuthorDate: Sat Jul 27 03:23:54 2024 +0000 Commit: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com> CommitDate: Sat Jul 27 03:23:54 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=954f5791
dev-util/ocamlformat: new package, add 0.26.2 Signed-off-by: Hiroki Tokunaga <tokusan441 <AT> gmail.com> dev-util/ocamlformat/Manifest | 1 + dev-util/ocamlformat/metadata.xml | 20 +++++++++++ dev-util/ocamlformat/ocamlformat-0.26.2.ebuild | 49 ++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) diff --git a/dev-util/ocamlformat/Manifest b/dev-util/ocamlformat/Manifest new file mode 100644 index 000000000..183858fe3 --- /dev/null +++ b/dev-util/ocamlformat/Manifest @@ -0,0 +1 @@ +DIST ocamlformat-0.26.2.tar.gz 901463 BLAKE2B 619838f68f6031d8e98319a66c3a906b46e1c394c5d7ddce18a4c91029522add716f298d18b232503a84c1a0f6384edd280cc20faf0974f5b8c019e2e827a083 SHA512 c6df074b69a35a545898961f8cd578a5cafbf4a382bd0b9783a770a40072bdd91be864a53c27c175ceef7ffff5a25b165b475c7a92ac4f790bf19abc74897bbe diff --git a/dev-util/ocamlformat/metadata.xml b/dev-util/ocamlformat/metadata.xml new file mode 100644 index 000000000..aaa09e3d5 --- /dev/null +++ b/dev-util/ocamlformat/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>tokusan...@gmail.com</email> + <name>Hiroki Tokunaga</name> + </maintainer> + <longdescription lang="en">ocamlformat is a code formatter for OCaml. It comes with opinionated default settings but is also fully customizable to suit your coding style. + + Profiles: ocamlformat offers profiles we predefined formatting configurations. Profiles include default, ocamlformat, janestreet. + Configurable: Users can change the formatting profile and configure every option in their .ocamlformat configuration file. + Format Comments: ocamlformat can format comments, docstrings, and even code blocks in your comments. + RPC: ocamlformat provides an RPC server that can bed used by other tools to easily format OCaml Code. + +ocamlformat is part of the OCaml Platform, the recommended set of tools for OCaml.</longdescription> + <upstream> + <bugs-to>https://github.com/ocaml-ppx/ocamlformat/issues</bugs-to> + <remote-id type="github">ocaml-ppx/ocamlformat</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild new file mode 100644 index 000000000..1ade5d9a2 --- /dev/null +++ b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2024 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:= + dev-ml/csexp:= + dev-ml/re:= + + dev-ml/base:= + dev-ml/dune-build-info:= + dev-ml/either:= + dev-ml/fix:= + dev-ml/fpath:= + dev-ml/menhir:= + dev-ml/ocaml-version:= + dev-util/ocp-indent:= + dev-ml/stdio:= + dev-ml/uuseg:= + dev-ml/uutf:= + dev-ml/astring:= + dev-ml/camlp-streams:= +" + +DEPEND=" + ${RDEPEND} +" + +BEPEND=" + test? ( + dev-ml/alcotest:= + ) +"