1 |
commit: 96c6c7a3faef6bdf2bc1bd6bc893dfb1d03fbc93 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jul 18 12:30:00 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jul 18 12:30:21 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96c6c7a3 |
7 |
|
8 |
games-strategy/tornado: Add USE=nls. |
9 |
|
10 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
11 |
|
12 |
...rnado-1.4-r1-gentoo.patch => tornado-1.4-r2-gentoo.patch} | 0 |
13 |
.../tornado/{tornado-1.4-r1.ebuild => tornado-1.4-r2.ebuild} | 12 ++++++++++-- |
14 |
2 files changed, 10 insertions(+), 2 deletions(-) |
15 |
|
16 |
diff --git a/games-strategy/tornado/files/tornado-1.4-r1-gentoo.patch b/games-strategy/tornado/files/tornado-1.4-r2-gentoo.patch |
17 |
similarity index 100% |
18 |
rename from games-strategy/tornado/files/tornado-1.4-r1-gentoo.patch |
19 |
rename to games-strategy/tornado/files/tornado-1.4-r2-gentoo.patch |
20 |
|
21 |
diff --git a/games-strategy/tornado/tornado-1.4-r1.ebuild b/games-strategy/tornado/tornado-1.4-r2.ebuild |
22 |
similarity index 73% |
23 |
rename from games-strategy/tornado/tornado-1.4-r1.ebuild |
24 |
rename to games-strategy/tornado/tornado-1.4-r2.ebuild |
25 |
index 1cdb04da4b1..c2a5f7c2f76 100644 |
26 |
--- a/games-strategy/tornado/tornado-1.4-r1.ebuild |
27 |
+++ b/games-strategy/tornado/tornado-1.4-r2.ebuild |
28 |
@@ -11,13 +11,14 @@ SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
29 |
LICENSE="GPL-2" |
30 |
SLOT="0" |
31 |
KEYWORDS="~amd64 ~x86" |
32 |
+IUSE="nls" |
33 |
|
34 |
DEPEND=" |
35 |
- sys-devel/gettext |
36 |
+ nls? ( sys-devel/gettext ) |
37 |
" |
38 |
|
39 |
RDEPEND=" |
40 |
- virtual/libintl |
41 |
+ nls? ( virtual/libintl ) |
42 |
" |
43 |
|
44 |
PATCHES=( |
45 |
@@ -25,6 +26,13 @@ PATCHES=( |
46 |
) |
47 |
|
48 |
src_configure() { |
49 |
+ if ! use nls; then |
50 |
+ sed -i \ |
51 |
+ -e '/^all:/s|locales||g' \ |
52 |
+ -e '/^install:/s|install-locale-data||g' \ |
53 |
+ Makefile || die |
54 |
+ fi |
55 |
+ |
56 |
tc-export CC PKG_CONFIG |
57 |
} |