Skip to content

Commit

Permalink
app-misc/sl: declare DOCS array in global namespace. quote variables.
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.5, Repoman-2.3.1
  • Loading branch information
monsieurp committed Jun 14, 2017
1 parent 1f6e8ff commit 3698292
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app-misc/sl/sl-5.02.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,23 @@ IUSE="l10n_ja"
RDEPEND="sys-libs/ncurses:0="
DEPEND="${RDEPEND}"

DOCS=( README.md )

src_prepare() {
default
sed -e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" -i Makefile || die
sed \
-e "s/-lncurses/$($(tc-getPKG_CONFIG) --libs ncurses)/" \
-i Makefile || die
}

src_install() {
dobin "${PN}"
doman "${PN}.1"
local DOCS=( README.md )

if use l10n_ja; then
newman ${PN}.1.ja ${PN}.ja.1
newman "${PN}.1.ja" "${PN}.ja.1"
DOCS+=( README.ja.md )
fi

einstalldocs
}

0 comments on commit 3698292

Please sign in to comment.