diff --git a/dev-ml/fpath/Manifest b/dev-ml/fpath/Manifest new file mode 100644 index 0000000000..94c90105ba --- /dev/null +++ b/dev-ml/fpath/Manifest @@ -0,0 +1 @@ +DIST fpath-0.7.3.tar.gz 28553 BLAKE2B 49be899a29dc09a6b7f47c57d96babea1e0afd614a22427dff54530276c8da6ffd60e1c943e6eb38fbbf80a78618ef406cadb6b023be7b4560bfd055410d4366 SHA512 7b97008e6b2dfb37caac4db34edc88b64856755a7f982aec4dbbff7ea3c4410a8ca99ecefaf0cde93a09d4459b663b5071bea185c2762a3384153f7cd1aa6510 diff --git a/dev-ml/fpath/fpath-0.7.3.ebuild b/dev-ml/fpath/fpath-0.7.3.ebuild new file mode 100644 index 0000000000..f1bb46efe1 --- /dev/null +++ b/dev-ml/fpath/fpath-0.7.3.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit findlib opam + +DESCRIPTION="File paths for OCaml" +HOMEPAGE=" + https://erratique.ch/software/fpath + https://github.com/dbuenzli/fpath +" +SRC_URI="https://github.com/dbuenzli/fpath/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="test" + +DEPEND="dev-ml/topkg" +BDEPEND="dev-ml/ocamlbuild" + +RESTRICT="!test? ( test )" + +src_compile() { + ocaml pkg/pkg.ml build --tests $(usex test 'true' 'false') || die +} + +src_test() { + ocaml pkg/pkg.ml test || die +} diff --git a/dev-ml/fpath/metadata.xml b/dev-ml/fpath/metadata.xml new file mode 100644 index 0000000000..984f808ab6 --- /dev/null +++ b/dev-ml/fpath/metadata.xml @@ -0,0 +1,14 @@ + + + + + tokusan441@gmail.com + Hiroki Tokunaga + + Fpath is an OCaml module for handling file system paths with POSIX or Windows conventions. Fpath processes paths without accessing the file system and is independent from any system library. + + https://erratique.ch/software/fpath/doc/ + https://github.com/dbuenzli/fpath/issues + dbuenzli/fpath + +