commit:     fc97292b2d22848a0f84a7f4879df77244bdb573
Author:     Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
AuthorDate: Sun Jul 28 15:53:24 2024 +0000
Commit:     Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
CommitDate: Sun Jul 28 15:53:24 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=fc97292b

dev-ml/ocamlformat-lib: new package, add 0.26.2

Signed-off-by: Hiroki Tokunaga <tokusan441 <AT> gmail.com>

 dev-ml/ocamlformat-lib/Manifest                    |  1 +
 dev-ml/ocamlformat-lib/metadata.xml                | 12 +++++
 .../ocamlformat-lib/ocamlformat-lib-0.26.2.ebuild  | 62 ++++++++++++++++++++++
 3 files changed, 75 insertions(+)

diff --git a/dev-ml/ocamlformat-lib/Manifest b/dev-ml/ocamlformat-lib/Manifest
new file mode 100644
index 000000000..a46c069c6
--- /dev/null
+++ b/dev-ml/ocamlformat-lib/Manifest
@@ -0,0 +1 @@
+DIST ocamlformat-lib-0.26.2.tar.gz 901463 BLAKE2B 
619838f68f6031d8e98319a66c3a906b46e1c394c5d7ddce18a4c91029522add716f298d18b232503a84c1a0f6384edd280cc20faf0974f5b8c019e2e827a083
 SHA512 
c6df074b69a35a545898961f8cd578a5cafbf4a382bd0b9783a770a40072bdd91be864a53c27c175ceef7ffff5a25b165b475c7a92ac4f790bf19abc74897bbe

diff --git a/dev-ml/ocamlformat-lib/metadata.xml 
b/dev-ml/ocamlformat-lib/metadata.xml
new file mode 100644
index 000000000..38731331c
--- /dev/null
+++ b/dev-ml/ocamlformat-lib/metadata.xml
@@ -0,0 +1,12 @@
+<?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>
+       <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-ml/ocamlformat-lib/ocamlformat-lib-0.26.2.ebuild 
b/dev-ml/ocamlformat-lib/ocamlformat-lib-0.26.2.ebuild
new file mode 100644
index 000000000..f2691a0e7
--- /dev/null
+++ b/dev-ml/ocamlformat-lib/ocamlformat-lib-0.26.2.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="OCamlFormat is a tool to automatically format OCaml code in a 
uniform style."
+HOMEPAGE="
+       https://opam.ocaml.org/packages/ocamlformat-lib
+       https://github.com/ocaml-ppx/ocamlformat
+"
+SRC_URI="https://github.com/ocaml-ppx/ocamlformat/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+S="${WORKDIR}/ocamlformat-${PV}"
+
+LICENSE="MIT LGPL-2.1-with-linking-exception"
+
+SLOT="0/${PV}"
+
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+       >=dev-ml/base-0.12.0:=
+       dev-ml/dune-build-info:=
+       dev-ml/either:=
+       dev-ml/fix:=
+       dev-ml/fpath:=
+       >=dev-ml/menhir-20201216:=
+       >=dev-ml/ocaml-version-3.5.0:=
+       >=dev-util/ocp-indent-1.8.0:=
+       dev-ml/stdio:=
+       >=dev-ml/uuseg-10.0.0:=
+       >=dev-ml/uutf-1.0.1:=
+       >=dev-ml/csexp-1.4.0:=
+       dev-ml/astring:=
+       dev-ml/result:=
+       dev-ml/camlp-streams:=
+"
+
+DEPEND="
+       ${RDEPEND}
+"
+
+BDEPEND="
+       test? (
+               >=dev-ml/alcotest-1.3.0:=
+               ~dev-ml/ocamlformat-rpc-lib-${PV}:=
+               >=dev-util/ocp-indent-1.8.1:=
+       )
+"
+
+src_compile() {
+       dune-compile ocamlformat-lib
+}
+
+src_install() {
+       dune-install ocamlformat-lib
+}

Reply via email to