From dd0ea0f7210f1e3cde38488554cd1bacc2ba22f6 Mon Sep 17 00:00:00 2001 From: Hiroki Tokunaga Date: Sat, 27 Jul 2024 00:29:27 +0900 Subject: [PATCH] dev-util/ocp-indent: new package, add 1.8.2 Signed-off-by: Hiroki Tokunaga --- dev-util/ocp-indent/Manifest | 1 + dev-util/ocp-indent/metadata.xml | 18 +++++++++++++ dev-util/ocp-indent/ocp-indent-1.8.2.ebuild | 30 +++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 dev-util/ocp-indent/Manifest create mode 100644 dev-util/ocp-indent/metadata.xml create mode 100644 dev-util/ocp-indent/ocp-indent-1.8.2.ebuild diff --git a/dev-util/ocp-indent/Manifest b/dev-util/ocp-indent/Manifest new file mode 100644 index 0000000000..41a1e90384 --- /dev/null +++ b/dev-util/ocp-indent/Manifest @@ -0,0 +1 @@ +DIST ocp-indent-1.8.2.tar.gz 109681 BLAKE2B 7d9610bf086a431f39eed9b7314cfe639c2a1a21237c5e5948b8c01b1e84d7036549621e1ab5fb945fd06cd2dbc17b7e9c2a5e3c692b102cbef3e6f859981aec SHA512 c5f8b63d6d3baabbadffba159d485f54f6e903eaa59a58b6df509e12e679b5b63a1cf7734d336d6b3456ea6ac74e42c58889199f2a3ed584566589d0c9bbfef5 diff --git a/dev-util/ocp-indent/metadata.xml b/dev-util/ocp-indent/metadata.xml new file mode 100644 index 0000000000..44bad39163 --- /dev/null +++ b/dev-util/ocp-indent/metadata.xml @@ -0,0 +1,18 @@ + + + + + tokusan441@gmail.com + Hiroki Tokunaga + + Ocp-indent is based on an approximate, tolerant OCaml parser and a simple stack machine ; this is much faster and more reliable than using regexps. Presets and configuration options available, with the possibility to set them project-wide. Supports most common syntax extensions, and extensible for others. + +Includes: +- An indentor program, callable from the command-line or from within editors +- Bindings for popular editors +- A library that can be directly used by editor writers, or just for fault-tolerant/approximate parsing. + + https://github.com/OCamlPro/ocp-indent/issues + OCamlPro/ocp-indent + + diff --git a/dev-util/ocp-indent/ocp-indent-1.8.2.ebuild b/dev-util/ocp-indent/ocp-indent-1.8.2.ebuild new file mode 100644 index 0000000000..2ffe4a754b --- /dev/null +++ b/dev-util/ocp-indent/ocp-indent-1.8.2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune + +DESCRIPTION="Indentation tool for OCaml, to be used from editors like Emacs and Vim." +HOMEPAGE=" + http://www.typerex.org/ocp-indent.html + https://github.com/OCamlPro/ocp-indent +" +SRC_URI="https://github.com/OCamlPro/ocp-indent/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-2.1-with-linking-exception" + +SLOT="0/${PV}" + +KEYWORDS="~amd64" +IUSE="ocamlopt test" + +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-ml/cmdliner-1.0.0:= +" + +DEPEND=" + ${RDEPEND} +"