From 36982924d609007d940a0cb48ab77e00e9a27fba Mon Sep 17 00:00:00 2001 From: Patrice Clement Date: Wed, 14 Jun 2017 11:53:35 +0200 Subject: app-misc/sl: declare DOCS array in global namespace. quote variables. Package-Manager: Portage-2.3.5, Repoman-2.3.1 --- app-misc/sl/sl-5.02.ebuild | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'app-misc/sl') diff --git a/app-misc/sl/sl-5.02.ebuild b/app-misc/sl/sl-5.02.ebuild index 1c87e8f33590..9df694b3499d 100644 --- a/app-misc/sl/sl-5.02.ebuild +++ b/app-misc/sl/sl-5.02.ebuild @@ -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 } -- cgit v1.2.3-65-gdbad