commit:     ddda10175137abf8c24312f605bfd7b05a64d0f0
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Nov 28 20:48:39 2024 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Nov 28 20:49:00 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ddda1017

dev-ml/utop: add 2.15.0

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/utop/Manifest           |  1 +
 dev-ml/utop/utop-2.15.0.ebuild | 69 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/dev-ml/utop/Manifest b/dev-ml/utop/Manifest
index 5e5e78be39f5..53891f30f714 100644
--- a/dev-ml/utop/Manifest
+++ b/dev-ml/utop/Manifest
@@ -1,2 +1,3 @@
 DIST utop-2.12.1.tar.gz 416596 BLAKE2B 
a8a31c91fd4f989e3d89bc736caa7b611ba0ccc2de905adcd1cf59fff87770d5a00c2d7a43462940269ae8be2f5980fa5b8d2ec7ba547b937cc1e6a579621f2f
 SHA512 
cc52bdb2a58141e6f7b678c93f69b0aa5ca4c628cb6841e02e6a783191a917bd838c06682d55f4f455a01a7004e43b5193d8574968b8400050b0f7b5a102ca3a
 DIST utop-2.14.0.tar.gz 418609 BLAKE2B 
726ff00d6ce13f6bb81b6e1ad82749094f25a6394f6552f2a976f270d182a7b600a9a17a1c692e56fa807332b25638a8cf0c2082c12ef93262ef5409633fba27
 SHA512 
16c724c0d54cd14d2126060f00e8b86fe3b886cffd7ff306a825d7f9e045b74ffc5830f659ccb151dfaa36c41c2966c26bc2c2e7567f9e1d725b33e9f677d19e
+DIST utop-2.15.0.tar.gz 418750 BLAKE2B 
76339509d363f36375b8c4bd84f3f17e1c9df514e1b9753d0fa5773aedb1114a2a4fd483fa5aec6a8aed25314dadf69b445c3eb387642013283c09e3dbebcf17
 SHA512 
f05aa85fbec3a4ecda6068b1ed350f61a0b3626969641c37508fde0fdeeffa80abd50b406c36884a81bc965d91d97d797490da1fe4edea0daa3936d47bbb1c70

diff --git a/dev-ml/utop/utop-2.15.0.ebuild b/dev-ml/utop/utop-2.15.0.ebuild
new file mode 100644
index 000000000000..5439a2c47f25
--- /dev/null
+++ b/dev-ml/utop/utop-2.15.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune elisp-common
+
+DESCRIPTION="Universal toplevel for OCaml"
+HOMEPAGE="https://github.com/ocaml-community/utop";
+SRC_URI="https://github.com/ocaml-community/utop/archive/${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="emacs +ocamlopt test"
+
+ELISP_DEPEND="
+       emacs? (
+               >=app-editors/emacs-24:*
+               >=app-emacs/tuareg-mode-2.2.0
+       )
+"
+DEPEND="
+       >=dev-lang/ocaml-4.11
+       dev-ml/lambda-term:=[ocamlopt?]
+       dev-ml/logs:=[ocamlopt?]
+       dev-ml/lwt:=[ocamlopt?]
+       dev-ml/react:=
+       dev-ml/xdg:=[ocamlopt?]
+       dev-ml/zed:=[ocamlopt?]
+"
+RDEPEND="
+       ${DEPEND}
+       ${ELISP_DEPEND}
+"
+BDEPEND="
+       dev-ml/cppo
+       dev-ml/findlib
+       ${ELISP_DEPEND}
+       test? ( dev-ml/alcotest )
+"
+
+RESTRICT="!test? ( test )"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_compile() {
+       dune_src_compile
+
+       use emacs &&
+               BYTECOMPFLAGS="-L src/top" elisp-compile src/top/*.el
+}
+
+src_install() {
+       dune_src_install
+
+       if use emacs ; then
+               elisp-install ${PN} src/top/*.el{,c}
+               elisp-site-file-install "${FILESDIR}/${SITEFILE}"
+       fi
+}
+
+pkg_postinst() {
+       use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+       use emacs && elisp-site-regen
+}

Reply via email to