Diff cpupower-4.13.0 with a cpupower-5.4

/usr/portage/sys-power/cpupower/cpupower-5.4.ebuild 2020-02-01 21:09:00.000000000 +0300
1 1
# Copyright 2013-2020 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=6
4
EAPI=7
5 5

  
6
# eutils: strip-linguas
7
inherit eutils systemd toolchain-funcs
6
inherit systemd toolchain-funcs
8 7

  
9 8
DESCRIPTION="Shows and sets processor power related values"
10 9
HOMEPAGE="https://www.kernel.org/"
11
SRC_URI="https://dev.gentoo.org/~floppym/dist/${P}.tar.xz"
10
SRC_URI="https://cdn.kernel.org/pub/linux/kernel/v${PV%%.*}.x/linux-${PV}.tar.xz"
12 11

  
13 12
LICENSE="GPL-2"
14 13
SLOT="0/0"
15
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
14
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
16 15
IUSE="nls"
17 16

  
18 17
# File collision w/ headers of the deprecated cpufrequtils
......
24 23
	nls? ( sys-devel/gettext )"
25 24

  
26 25
PATCHES=(
27
	"${FILESDIR}"/cflags-strip.patch
26
	"${FILESDIR}/cpupower-5.4-cflags.patch"
27
	"${FILESDIR}/cpupower-5.4-gcc-10.patch"
28 28
)
29 29

  
30
S="${WORKDIR}/linux-${PV}"
31

  
30 32
src_configure() {
31 33
	export bindir="${EPREFIX}/usr/bin"
32 34
	export sbindir="${EPREFIX}/usr/sbin"
......
48 50
		VERSION=${PV}
49 51
	)
50 52

  
51
	if [[ -n ${LINGUAS+set} ]]; then
52
		strip-linguas -i po
53
		myemakeargs+=( LANGUAGES="${LINGUAS}" )
54
	fi
55

  
53
	cd tools/power/cpupower || die
56 54
	emake "${myemakeargs[@]}"
57 55
}
58 56

  
59 57
src_install() {
60
	emake DESTDIR="${D}" "${myemakeargs[@]}" install
58
	cd tools/power/cpupower || die
59
	emake "${myemakeargs[@]}" DESTDIR="${D}" install
61 60
	doheader lib/cpupower.h
62
	dodoc README ToDo
61
	einstalldocs
63 62

  
64 63
	newconfd "${FILESDIR}"/conf.d-r2 cpupower
65 64
	newinitd "${FILESDIR}"/init.d-r4 cpupower
Thank you!