dev-ml/*: remove vendored csexp and pp before the build process

Closes: https://bugs.gentoo.org/940360
Signed-off-by: Hiroki Tokunaga <tokusan441@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/38801
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Hiroki Tokunaga
2024-09-28 16:27:56 +02:00
committed by Alfredo Tupone
parent 037e8638df
commit 2bdf5a887a
2 changed files with 8 additions and 3 deletions
@@ -25,9 +25,7 @@ RDEPEND="${DEPEND}"
src_prepare() {
default
# This enables dune-configurator to use the vendored csexp module
sed -i 's/stdune.csexp/dune-configurator.csexp/' \
vendor/csexp/src/dune || die
rm -r vendor/{csexp,pp} || die
}
src_configure() {
@@ -20,6 +20,7 @@ RESTRICT="test"
BDEPEND=">=dev-ml/dune-3.12"
DEPEND="
dev-ml/csexp:=[ocamlopt?]
>=dev-ml/pp-1.2.0:=[ocamlopt?]
"
RDEPEND="${DEPEND}
!dev-ml/stdune
@@ -27,6 +28,12 @@ RDEPEND="${DEPEND}
!dev-ml/ordering
"
src_prepare() {
default
rm -r vendor/{csexp,pp} || die
}
src_configure() {
:
}