commit:     26becc6fcd2aa9697cbb1a47376fefb783a9f38a
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Jan  9 20:51:39 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan  9 20:52:30 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26becc6f

dev-ml/luv: use ${BROOT} for gnuconfig copy

Bug: https://bugs.gentoo.org/828563
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ml/luv/luv-0.5.10-r2.ebuild | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dev-ml/luv/luv-0.5.10-r2.ebuild b/dev-ml/luv/luv-0.5.10-r2.ebuild
index 03d2824cf662..bd71cb8b0198 100644
--- a/dev-ml/luv/luv-0.5.10-r2.ebuild
+++ b/dev-ml/luv/luv-0.5.10-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit dune
+inherit dune gnuconfig
 
 DESCRIPTION="Binding to libuv: cross-platform asynchronous I/O"
 HOMEPAGE="https://github.com/aantron/luv";
@@ -22,10 +22,11 @@ RDEPEND="
        dev-ml/result:=
 "
 DEPEND="${RDEPEND}"
-BDEPEND="test? ( dev-ml/alcotest )"
+BDEPEND="sys-devel/gnuconfig
+       test? ( dev-ml/alcotest )"
 
 src_prepare() {
-       cp /usr/share/gnuconfig/config.guess 
src/c/vendor/configure/config.guess \
-               || die
        default
+
+       cp "${BROOT}"/usr/share/gnuconfig/config.{guess,sub} 
src/c/vendor/configure/ || die
 }

Reply via email to