dev-ml/dune: add 3.20.0

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-08-24 13:21:42 +02:00
parent dbaff575c9
commit 1b5b42408e
2 changed files with 71 additions and 0 deletions

View File

@@ -2,3 +2,4 @@ DIST dune-3.16.1.tar.gz 3000392 BLAKE2B 93de09c47fda95e1d83f10c9a4e7cfb7f801c7c4
DIST dune-3.17.2.tar.gz 3015019 BLAKE2B 8b79e0f6d878722529c21069de7975642351e9dbbf8508a04677a8e04d7eab53dffca785d52dbdbbd4fd28635f2a0bc29abf04f0d9fd87cf6d0ba26b470b4c6c SHA512 8feaf89c5bada83d840e6a1e42ae9308375b07dabc2363015b667bcff638dd78acd526c1a43dd4730ab675b4828f7304e503b97e9f53397e73ed4e644693f260
DIST dune-3.18.1.tar.gz 2918737 BLAKE2B 38731cdc61d2944f27487e844c554d0085e9a1787e9ebe7fb92e53d74df6e5919aaefe361c171e129451c7a57b95efe2cc066c1e087bf4a082ca34f6b5a100de SHA512 e9f188360f680bd4a2dad50a11f71e40aec42247f2eff2ac8f3071e6500620c1e631377e675f6b336c2ee9420d665885ce3509b7285bcef306521ba9b49c5208
DIST dune-3.19.1.tar.gz 2917826 BLAKE2B 588a7d2195169ed1210a7126bd06cfdea4fa0e7735f23c346314c3cbbea1e76ec1286f1b56b337a151fc3246343c001794bde6a9eb85a4a05c6a1537ae2ae8bb SHA512 a101cad5d159a7134bd38d25968ea24189485b12f517e746c5b4c367a8d6ca0959ea59a71dc8c939e5d28a6ae644de9b3c12582579c044e3a081373ac680beb6
DIST dune-3.20.0.tar.gz 3050361 BLAKE2B 91d8c347d27b444bb3764a5bb8f910c6fc8282a664d94ae213bac000a219f4f7f1d57cc152cddaee358225b779b7d433817ae02b94cb7cc501e9d1e95c53633e SHA512 6723652837f9c1349bfdbfc6514ff379f9460baef3be35a836a6d8f898278a015bfd35cef5c83c510728526dd2f9a1d8a09f0339c71db5720593306467b6fade

View File

@@ -0,0 +1,70 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit multiprocessing elisp-common
DESCRIPTION="A composable build system for OCaml"
HOMEPAGE="https://github.com/ocaml/dune"
SRC_URI="https://github.com/ocaml/dune/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
IUSE="emacs"
RESTRICT="strip test"
RDEPEND="
dev-lang/ocaml:=
emacs? ( >=app-editors/emacs-23.1:* )
"
DEPEND="${RDEPEND}"
QA_FLAGS_IGNORED="usr/bin/dune"
BYTECOMPFLAGS="-L ${S}/editor-integration/emacs"
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
default
# This allows `dune --version` to output the correct version
# instead of "n/a"
sed -i "/^(name dune)/a (version ${PV})" dune-project || die
}
src_configure() {
./configure \
--libdir="$(ocamlc -where)" \
--mandir=/usr/share/man \
--docdir=/usr/share/doc \
--etcdir=/etc \
--datadir=/usr/share \
--sbindir=/usr/sbin \
--bindir=/usr/bin \
|| die
}
src_compile() {
ocaml boot/bootstrap.ml -j $(makeopts_jobs) --verbose || die
./_boot/dune.exe build @install -p "${PN}" --profile dune-bootstrap \
-j $(makeopts_jobs) --display short || die
use emacs && elisp-compile editor-integration/emacs/*.el
}
src_install() {
# OCaml generates textrels on 32-bit arches
if use arm || use ppc || use x86 ; then
export QA_TEXTRELS='.*'
fi
default
mv "${ED}"/usr/share/doc/dune "${ED}"/usr/share/doc/${PF} || die
if use emacs ; then
elisp-install ${PN} editor-integration/emacs/*.el{,c}
elisp-site-file-install "${FILESDIR}/${SITEFILE}"
fi
}