1 |
commit: dd2de2ffdae5780a62a204a4b0d49563352b7452 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 3 16:36:36 2015 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 3 16:36:50 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd2de2ff |
7 |
|
8 |
sys-power/cpupower: Add LINUGUAS support |
9 |
|
10 |
Bug: https://bugs.gentoo.org/531516 |
11 |
|
12 |
Package-Manager: portage-2.2.26_p10 |
13 |
|
14 |
sys-power/cpupower/cpupower-4.2.ebuild | 8 +++++++- |
15 |
1 file changed, 7 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/sys-power/cpupower/cpupower-4.2.ebuild b/sys-power/cpupower/cpupower-4.2.ebuild |
18 |
index 7634782..e16df53 100644 |
19 |
--- a/sys-power/cpupower/cpupower-4.2.ebuild |
20 |
+++ b/sys-power/cpupower/cpupower-4.2.ebuild |
21 |
@@ -3,7 +3,7 @@ |
22 |
# $Id$ |
23 |
|
24 |
EAPI=5 |
25 |
-inherit multilib toolchain-funcs |
26 |
+inherit eutils multilib toolchain-funcs |
27 |
|
28 |
DESCRIPTION="Shows and sets processor power related values" |
29 |
HOMEPAGE="https://www.kernel.org/" |
30 |
@@ -40,6 +40,12 @@ src_compile() { |
31 |
LDFLAGS="${LDFLAGS}" |
32 |
OPTIMIZATION="${CFLAGS}" |
33 |
) |
34 |
+ |
35 |
+ if [[ -n ${LINGUAS+set} ]]; then |
36 |
+ strip-linguas -i po |
37 |
+ myemakeargs+=( LANGUAGES="${LINGUAS}" ) |
38 |
+ fi |
39 |
+ |
40 |
emake "${myemakeargs[@]}" |
41 |
} |