commit:     78fcfe98d7e96695c406b8481294b54039726842
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 11 04:57:45 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Oct 11 04:57:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78fcfe98

dev-ml/cudf: allow llvm-libunwind

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-ml/cudf/{cudf-0.9-r1.ebuild => cudf-0.9-r2.ebuild} | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/dev-ml/cudf/cudf-0.9-r1.ebuild b/dev-ml/cudf/cudf-0.9-r2.ebuild
similarity index 84%
rename from dev-ml/cudf/cudf-0.9-r1.ebuild
rename to dev-ml/cudf/cudf-0.9-r2.ebuild
index 769436a427c..dcde5334719 100644
--- a/dev-ml/cudf/cudf-0.9-r1.ebuild
+++ b/dev-ml/cudf/cudf-0.9-r2.ebuild
@@ -12,7 +12,7 @@ 
SRC_URI="https://gforge.inria.fr/frs/download.php/file/36602/${P}.tar.gz";
 LICENSE="LGPL-3"
 SLOT="0/${PV}"
 KEYWORDS="amd64 arm arm64 ppc ppc64 x86"
-IUSE="+ocamlopt test"
+IUSE="+ocamlopt llvm-libunwind test"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
@@ -20,7 +20,8 @@ RDEPEND="
        dev-ml/extlib:=
        dev-ml/findlib:=
        dev-libs/glib:2
-       sys-libs/libunwind:=
+       llvm-libunwind? ( sys-libs/llvm-libunwind:= )
+       !llvm-libunwind? ( sys-libs/libunwind:= )
        sys-libs/ncurses:=
 "
 DEPEND="${RDEPEND}
@@ -41,10 +42,10 @@ src_prepare() {
                -e 's|make|$(MAKE)|g' \
                Makefile || die
        sed -i \
-               -e 's|-lncurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0 
libunwind)|g' \
+               -e 's|-lncurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0) 
-lunwind|g' \
                c-lib/Makefile || die
        sed -i \
-               -e 's|-lcurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0 
libunwind)|g' \
+               -e 's|-lcurses|$(shell ${PKG_CONFIG} --libs ncurses glib-2.0) 
-lunwind|g' \
                c-lib/Makefile.variants || die
 
        tc-export CC PKG_CONFIG

Reply via email to