Skip to content

Commit

Permalink
dev-ml/cudf: allow llvm-libunwind
Browse files Browse the repository at this point in the history
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Oct 11, 2021
1 parent 3646120 commit 78fcfe9
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@ 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="
>=dev-lang/ocaml-3.12:=[ocamlopt?]
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}
Expand All @@ -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
Expand Down

0 comments on commit 78fcfe9

Please sign in to comment.