summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2021-11-14 15:40:10 +0100
committerKeri Harris <keri@gentoo.org>2021-11-14 15:40:37 +0100
commit96bc73a96fc6e2ee02319f97f46ce5c61579d362 (patch)
tree306c4008f5040cc64981b5afe7c4ec5ee47c852f /dev-lang/swi-prolog
parentdev-python/flask-wtf: fix deps for 1.0.0's doc build, #822999 (diff)
downloadgentoo-96bc73a96fc6e2ee02319f97f46ce5c61579d362.tar.gz
gentoo-96bc73a96fc6e2ee02319f97f46ce5c61579d362.tar.bz2
gentoo-96bc73a96fc6e2ee02319f97f46ce5c61579d362.zip
dev-lang/swi-prolog: link libswipl.so with split ncurses/tinfo libs
Package-Manager: Portage-3.0.20, Repoman-3.0.2 Signed-off-by: Keri Harris <keri@gentoo.org>
Diffstat (limited to 'dev-lang/swi-prolog')
-rw-r--r--dev-lang/swi-prolog/swi-prolog-8.2.4-r3.ebuild2
-rw-r--r--dev-lang/swi-prolog/swi-prolog-8.3.29-r1.ebuild2
2 files changed, 2 insertions, 2 deletions
diff --git a/dev-lang/swi-prolog/swi-prolog-8.2.4-r3.ebuild b/dev-lang/swi-prolog/swi-prolog-8.2.4-r3.ebuild
index 2b6f4bef271d..a11d78960fa2 100644
--- a/dev-lang/swi-prolog/swi-prolog-8.2.4-r3.ebuild
+++ b/dev-lang/swi-prolog/swi-prolog-8.2.4-r3.ebuild
@@ -62,7 +62,7 @@ src_prepare() {
local ncurses_lib_flags=$(pkg-config --libs ncurses)
sed -i "/project(SWI-Prolog)/a set(CMAKE_REQUIRED_LIBRARIES \${CMAKE_REQUIRED_LIBRARIES} ${ncurses_lib_flags})" CMakeLists.txt || die
- sed -i "/project(SWI-Prolog)/a set(CMAKE_EXE_LINKER_FLAGS \"${ncurses_lib_flags} \${CMAKE_EXE_LINKER_FLAGS}\")" CMakeLists.txt || die
+ sed -i "s:\${CURSES_LIBRARIES}:${ncurses_lib_flags}:" src/CMakeLists.txt || die
cmake_src_prepare
}
diff --git a/dev-lang/swi-prolog/swi-prolog-8.3.29-r1.ebuild b/dev-lang/swi-prolog/swi-prolog-8.3.29-r1.ebuild
index a2ca0d2e06bb..469bc73ee6e5 100644
--- a/dev-lang/swi-prolog/swi-prolog-8.3.29-r1.ebuild
+++ b/dev-lang/swi-prolog/swi-prolog-8.3.29-r1.ebuild
@@ -63,7 +63,7 @@ src_prepare() {
local ncurses_lib_flags=$(pkg-config --libs ncurses)
sed -i "/project(SWI-Prolog)/a set(CMAKE_REQUIRED_LIBRARIES \${CMAKE_REQUIRED_LIBRARIES} ${ncurses_lib_flags})" CMakeLists.txt || die
- sed -i "/project(SWI-Prolog)/a set(CMAKE_EXE_LINKER_FLAGS \"${ncurses_lib_flags} \${CMAKE_EXE_LINKER_FLAGS}\")" CMakeLists.txt || die
+ sed -i "s:\${CURSES_LIBRARIES}:${ncurses_lib_flags}:" src/CMakeLists.txt || die
cmake_src_prepare
}