summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-06-24 02:50:55 +0100
committerSam James <sam@gentoo.org>2022-06-24 04:13:47 +0100
commitb028dfb98e34e7da505ec03da95d9049938587d0 (patch)
treede843c25e00b1d27869d5ea996df6b228bf29ee1 /app-misc
parentapp-misc/nnn: drop versions (diff)
downloadgentoo-b028dfb98e34e7da505ec03da95d9049938587d0.tar.gz
gentoo-b028dfb98e34e7da505ec03da95d9049938587d0.tar.bz2
gentoo-b028dfb98e34e7da505ec03da95d9049938587d0.zip
app-misc/nnn: fix build on musl
Closes: https://bugs.gentoo.org/829247 Thanks-to: CFuga <cfuga@cfuga.mx> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/nnn/nnn-4.5.ebuild8
1 files changed, 5 insertions, 3 deletions
diff --git a/app-misc/nnn/nnn-4.5.ebuild b/app-misc/nnn/nnn-4.5.ebuild
index 57340dc98f35..dbb2eb13d5a1 100644
--- a/app-misc/nnn/nnn-4.5.ebuild
+++ b/app-misc/nnn/nnn-4.5.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit bash-completion-r1 toolchain-funcs xdg-utils
+inherit bash-completion-r1 flag-o-matic toolchain-funcs xdg-utils
DESCRIPTION="The missing terminal file browser for X"
HOMEPAGE="https://github.com/jarun/nnn"
@@ -13,13 +13,15 @@ LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc64 ~x86"
-DEPEND="sys-libs/ncurses:0=
- sys-libs/readline:0="
+DEPEND="sys-libs/ncurses:=
+ sys-libs/readline:=
+ elibc_musl? ( sys-libs/fts-standalone )"
RDEPEND="${DEPEND}"
src_prepare() {
default
tc-export CC
+ use elibc_musl && append-flags "-lfts"
sed -i -e '/install: all/install:/' Makefile || die "sed failed"
}