summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2021-11-25 21:41:42 +0100
committerMaciej Barć <xgqt@gentoo.org>2021-11-25 21:47:44 +0100
commit8bca653c406eab635c04db4e0fbae3b16de81c07 (patch)
treef6b827b1f3b5bcf2353a7c60e06d5527076441ff /dev-scheme
parentdev-python/redis-py: Keyword 4.0.2 ppc64, #826690 (diff)
downloadgentoo-8bca653c406eab635c04db4e0fbae3b16de81c07.tar.gz
gentoo-8bca653c406eab635c04db4e0fbae3b16de81c07.tar.bz2
gentoo-8bca653c406eab635c04db4e0fbae3b16de81c07.zip
dev-scheme/chez: fix for ncurses detection; ncurses slot
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/chez/chez-9.5.6-r1.ebuild (renamed from dev-scheme/chez/chez-9.5.6.ebuild)10
-rw-r--r--dev-scheme/chez/files/tinfo.patch12
2 files changed, 7 insertions, 15 deletions
diff --git a/dev-scheme/chez/chez-9.5.6.ebuild b/dev-scheme/chez/chez-9.5.6-r1.ebuild
index 3755edbfecd6..6ec1f6d5145f 100644
--- a/dev-scheme/chez/chez-9.5.6.ebuild
+++ b/dev-scheme/chez/chez-9.5.6-r1.ebuild
@@ -19,17 +19,21 @@ SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="X examples ncurses threads"
+BDEPEND="virtual/pkgconfig"
RDEPEND="
X? ( x11-libs/libX11 )
- ncurses? ( sys-libs/ncurses )
+ ncurses? ( sys-libs/ncurses:= )
"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/tinfo.patch" )
-
src_prepare() {
tc-export AR CC CXX LD RANLIB
+ if use ncurses ; then
+ local nclibs="\"$($(tc-getPKG_CONFIG) --libs ncurses)\""
+ sed -i "s|ncursesLib=-lncurses|ncursesLib=${nclibs}|g" configure || die
+ fi
+
default
}
diff --git a/dev-scheme/chez/files/tinfo.patch b/dev-scheme/chez/files/tinfo.patch
deleted file mode 100644
index a7dc613bd234..000000000000
--- a/dev-scheme/chez/files/tinfo.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-index b8ff70a..349bc3f 100755
---- a/configure
-+++ b/configure
-@@ -483,7 +483,7 @@ if [ "$disablex11" = "yes" ]; then
- fi
-
- cursesLib=-lcurses
--ncursesLib=-lncurses
-+ncursesLib="-lncurses -ltinfo"
-
- if [ "$disablecurses" = "yes" ]; then
- echo '#define DISABLE_CURSES' >> $w/c/config.h