* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/ocamlformat/
@ 2024-07-27 3:24 Hiroki Tokunaga
0 siblings, 0 replies; 5+ messages in thread
From: Hiroki Tokunaga @ 2024-07-27 3:24 UTC (permalink / raw
To: gentoo-commits
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>tokusan441@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:=
+ )
+"
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/ocamlformat/
@ 2024-07-28 13:53 Hiroki Tokunaga
0 siblings, 0 replies; 5+ messages in thread
From: Hiroki Tokunaga @ 2024-07-28 13:53 UTC (permalink / raw
To: gentoo-commits
commit: c706cf718bc7cdba951394831c0cb9a5218dd844
Author: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
AuthorDate: Sun Jul 28 13:51:47 2024 +0000
Commit: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
CommitDate: Sun Jul 28 13:51:47 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c706cf71
dev-util/ocamlformat: fix typo
Closes: https://bugs.gentoo.org/936810
Signed-off-by: Hiroki Tokunaga <tokusan441 <AT> gmail.com>
dev-util/ocamlformat/ocamlformat-0.26.2.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
index 1ade5d9a2..6ab97c5a6 100644
--- a/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
+++ b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
@@ -42,7 +42,7 @@ DEPEND="
${RDEPEND}
"
-BEPEND="
+BDEPEND="
test? (
dev-ml/alcotest:=
)
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/ocamlformat/
@ 2024-07-28 15:54 Hiroki Tokunaga
0 siblings, 0 replies; 5+ messages in thread
From: Hiroki Tokunaga @ 2024-07-28 15:54 UTC (permalink / raw
To: gentoo-commits
commit: cb2ecdebe5f74ec48583eee4389c62cc409cbefc
Author: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
AuthorDate: Sun Jul 28 15:53:32 2024 +0000
Commit: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
CommitDate: Sun Jul 28 15:53:32 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cb2ecdeb
dev-util/ocamlformat: decouple libraries
Some OCaml packages need only its libraries.
Signed-off-by: Hiroki Tokunaga <tokusan441 <AT> gmail.com>
dev-util/ocamlformat/ocamlformat-0.26.2.ebuild | 31 +++++++++++---------------
1 file changed, 13 insertions(+), 18 deletions(-)
diff --git a/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
index 6ab97c5a6..77cd36a73 100644
--- a/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
+++ b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
@@ -19,23 +19,9 @@ 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:=
+ >=dev-ml/cmdliner-1.1.0:=
+ ~dev-ml/ocamlformat-lib-${PV}:=
+ >=dev-ml/re-1.10.3:=
"
DEPEND="
@@ -44,6 +30,15 @@ DEPEND="
BDEPEND="
test? (
- dev-ml/alcotest:=
+ >=dev-ml/cmdliner-1.2.0:=
+ ~dev-ml/ocamlformat-rpc-lib-${PV}:=
)
"
+
+src_compile() {
+ dune-compile ocamlformat
+}
+
+src_install() {
+ dune-install ocamlformat
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/ocamlformat/
@ 2024-07-29 12:01 Hiroki Tokunaga
0 siblings, 0 replies; 5+ messages in thread
From: Hiroki Tokunaga @ 2024-07-29 12:01 UTC (permalink / raw
To: gentoo-commits
commit: 45c77a4d1d8e96235c6ea714a24e48ccac98ea9b
Author: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
AuthorDate: Mon Jul 29 12:00:33 2024 +0000
Commit: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
CommitDate: Mon Jul 29 12:00:33 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=45c77a4d
dev-util/ocamlformat: fix missing dependencies
Closes: https://bugs.gentoo.org/936871
Signed-off-by: Hiroki Tokunaga <tokusan441 <AT> gmail.com>
dev-util/ocamlformat/ocamlformat-0.26.2.ebuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
index 77cd36a73..89514035b 100644
--- a/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
+++ b/dev-util/ocamlformat/ocamlformat-0.26.2.ebuild
@@ -28,10 +28,14 @@ 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:=
)
"
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [gentoo-commits] repo/proj/guru:dev commit in: dev-util/ocamlformat/
@ 2024-10-06 1:33 Hiroki Tokunaga
0 siblings, 0 replies; 5+ messages in thread
From: Hiroki Tokunaga @ 2024-10-06 1:33 UTC (permalink / raw
To: gentoo-commits
commit: 9bef7e43499a30a950d1275fa79102ebf4269095
Author: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
AuthorDate: Sun Oct 6 01:31:46 2024 +0000
Commit: Hiroki Tokunaga <tokusan441 <AT> gmail <DOT> com>
CommitDate: Sun Oct 6 01:32:47 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9bef7e43
dev-util/ocamlformat: make `ocamlformat --version` print the correct version
Signed-off-by: Hiroki Tokunaga <tokusan441 <AT> gmail.com>
dev-util/ocamlformat/ocamlformat-0.26.2-r1.ebuild | 54 +++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/dev-util/ocamlformat/ocamlformat-0.26.2-r1.ebuild b/dev-util/ocamlformat/ocamlformat-0.26.2-r1.ebuild
new file mode 100644
index 000000000..b2cd22858
--- /dev/null
+++ b/dev-util/ocamlformat/ocamlformat-0.26.2-r1.ebuild
@@ -0,0 +1,54 @@
+# 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-1.1.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
+}
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-10-06 1:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-06 1:33 [gentoo-commits] repo/proj/guru:dev commit in: dev-util/ocamlformat/ Hiroki Tokunaga
-- strict thread matches above, loose matches on Subject: below --
2024-07-29 12:01 Hiroki Tokunaga
2024-07-28 15:54 Hiroki Tokunaga
2024-07-28 13:53 Hiroki Tokunaga
2024-07-27 3:24 Hiroki Tokunaga
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox