From: Jeroen Roovers Date: Wed, 18 Jul 2018 12:30:00 +0000 (+0200) Subject: games-strategy/tornado: Add USE=nls. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=96c6c7a3faef6bdf2bc1bd6bc893dfb1d03fbc93;p=gentoo.git games-strategy/tornado: Add USE=nls. Package-Manager: Portage-2.3.43, Repoman-2.3.10 --- diff --git a/games-strategy/tornado/files/tornado-1.4-r1-gentoo.patch b/games-strategy/tornado/files/tornado-1.4-r2-gentoo.patch similarity index 100% rename from games-strategy/tornado/files/tornado-1.4-r1-gentoo.patch rename to games-strategy/tornado/files/tornado-1.4-r2-gentoo.patch diff --git a/games-strategy/tornado/tornado-1.4-r1.ebuild b/games-strategy/tornado/tornado-1.4-r2.ebuild similarity index 73% rename from games-strategy/tornado/tornado-1.4-r1.ebuild rename to games-strategy/tornado/tornado-1.4-r2.ebuild index 1cdb04da4b13..c2a5f7c2f76c 100644 --- a/games-strategy/tornado/tornado-1.4-r1.ebuild +++ b/games-strategy/tornado/tornado-1.4-r2.ebuild @@ -11,13 +11,14 @@ SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" +IUSE="nls" DEPEND=" - sys-devel/gettext + nls? ( sys-devel/gettext ) " RDEPEND=" - virtual/libintl + nls? ( virtual/libintl ) " PATCHES=( @@ -25,6 +26,13 @@ PATCHES=( ) src_configure() { + if ! use nls; then + sed -i \ + -e '/^all:/s|locales||g' \ + -e '/^install:/s|install-locale-data||g' \ + Makefile || die + fi + tc-export CC PKG_CONFIG }