Skip to content

Commit

Permalink
games-misc/bsd-games: Fix ncurses[unicode(+)] breakage
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/803194
Signed-off-by: David Seifert <[email protected]>
  • Loading branch information
SoapGentoo committed Jul 26, 2021
1 parent ba54759 commit 1c306d7
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RESTRICT="test"

DEPEND="
sys-apps/miscfiles
sys-libs/ncurses:=
sys-libs/ncurses:=[unicode(+)]
!games-puzzle/hangman
!games-misc/wumpus
"
Expand Down Expand Up @@ -60,10 +60,8 @@ src_prepare() {
# Yes, this stinks.
# Right now, the custom configure script calls pkg-config manually
# and seds it a bunch, and this is easier.
if has_version sys-libs/ncurses[unicode] ; then
# Force looking for both ncurses and ncursesw
sed -i -e 's/pkgs="ncurses"/pkgs="ncursesw"/' configure || die
fi
# Force looking for both ncurses and ncursesw
sed -i -e 's/pkgs="ncurses"/pkgs="ncursesw"/' configure || die

cp "${FILESDIR}"/config.params-gentoo config.params || die
echo bsd_games_cfg_usrlibdir=\"$(get_libdir)\" >> ./config.params || die
Expand Down Expand Up @@ -151,5 +149,5 @@ src_install() {
fowners -R :gamestat /usr/bin/

# State dirs
chmod -R ug+rw "${ED}"/var/games/ || die
fperms -R ug+rw /var/games/
}

0 comments on commit 1c306d7

Please sign in to comment.