Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 531516 - sys-power/cpupower - respect LINGUAS
Summary: sys-power/cpupower - respect LINGUAS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Samuli Suominen (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2014-12-03 09:12 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-12-03 16:37 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2014-12-03 09:12:35 UTC
--- cpupower-3.15.ebuild        15 Jul 2014 05:33:30 -0000      1.2
+++ cpupower-3.15.ebuild        3 Dec 2014 09:11:58 -0000
@@ -3,7 +3,7 @@
 # $Header: /var/cvsroot/gentoo-x86/sys-power/cpupower/cpupower-3.15.ebuild,v 1.2 2014/07/15 05:33:30 ssuominen Exp $

 EAPI=5
-inherit multilib toolchain-funcs
+inherit eutils multilib toolchain-funcs

 DESCRIPTION="Shows and sets processor power related values"
 HOMEPAGE="http://www.kernel.org/"
@@ -57,14 +57,16 @@ src_prepare() {
                -e "/$libs/{ s,${libs},,g; s,\$, ${libs},g;}" \
                -e "s:-O1 -g::" \
                Makefile || die
+
+       strip-linguas -i po/
 }

 src_compile() {
-       emake "${myemakeargs[@]}"
+       emake "${myemakeargs[@]}" LANGUAGES=${LINGUAS}
 }

 src_install() {
-       emake DESTDIR="${D}" "${myemakeargs[@]}" install
+       emake DESTDIR="${D}" "${myemakeargs[@]}" install LANGUAGES=${LINGUAS}
        dodoc README ToDo

        newconfd "${FILESDIR}"/conf.d-r2 ${PN}
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-12-03 09:14:35 UTC
Ah, both LANGUAGES= additions need quoting.
Comment 2 Mike Gilbert gentoo-dev 2015-12-03 16:37:37 UTC
commit dd2de2ffdae5780a62a204a4b0d49563352b7452
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Thu Dec 3 11:36:36 2015 -0500

    sys-power/cpupower: Add LINUGUAS support

    Bug: https://bugs.gentoo.org/531516

    Package-Manager: portage-2.2.26_p10

 sys-power/cpupower/cpupower-4.2.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)