diff --git a/dev-ml/ppx_import/Manifest b/dev-ml/ppx_import/Manifest new file mode 100644 index 0000000000000..b0784564811f4 --- /dev/null +++ b/dev-ml/ppx_import/Manifest @@ -0,0 +1 @@ +DIST ppx_import-1.9.1.tar.gz 13820 BLAKE2B 295796041ecad89c95bd6a6fe14a9d9bb969f7d984388cca5181c31b8358affeb92a4d200bb9e11449a0216995a8477b809acf251b049e8331eea9e6bb918cb7 SHA512 37bd54bc477b91a3aa4b2433a9817c6d939f1e4a1d950b83b05964d22540296582cec6513a0959fd036f738dbd6ef9df13430183b8bdaa9425c7640a5fddf4b3 diff --git a/dev-ml/ppx_import/files/ppx_import-dune-ounit2.patch b/dev-ml/ppx_import/files/ppx_import-dune-ounit2.patch new file mode 100644 index 0000000000000..ac164dc0d11d9 --- /dev/null +++ b/dev-ml/ppx_import/files/ppx_import-dune-ounit2.patch @@ -0,0 +1,9 @@ +index 3ec5810..b2d8d6d 100644 +--- a/src_test/ppx_deriving/dune ++++ b/src_test/ppx_deriving/dune +@@ -2,4 +2,4 @@ + (name test_ppx_import) + (preprocess + (staged_pps ppx_import ppx_deriving.show)) +- (libraries compiler-libs.common oUnit)) ++ (libraries compiler-libs.common ounit2)) diff --git a/dev-ml/ppx_import/metadata.xml b/dev-ml/ppx_import/metadata.xml new file mode 100644 index 0000000000000..511eaa4e57988 --- /dev/null +++ b/dev-ml/ppx_import/metadata.xml @@ -0,0 +1,14 @@ + + + + + + ml@gentoo.org + ML + + + https://github.com/ocaml-ppx/ppx_import/releases/ + https://github.com/ocaml-ppx/ppx_import/issues/ + ocaml-ppx/ppx_import + + diff --git a/dev-ml/ppx_import/ppx_import-1.9.1.ebuild b/dev-ml/ppx_import/ppx_import-1.9.1.ebuild new file mode 100644 index 0000000000000..19b0da3ed57f0 --- /dev/null +++ b/dev-ml/ppx_import/ppx_import-1.9.1.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune + +DESCRIPTION="A syntax extension for importing declarations from interface files" +HOMEPAGE="https://github.com/ocaml-ppx/ppx_import/" +SRC_URI="https://github.com/ocaml-ppx/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="+ocamlopt test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-ml/ppxlib:=" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + dev-ml/ounit2 + dev-ml/ppx_deriving + dev-ml/ppx_sexp_conv + ) +" + +PATCHES=( "${FILESDIR}"/${PN}-dune-ounit2.patch )