Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/longrun/files/, app-admin/longrun/
Date: Fri, 29 Dec 2017 17:02:48
Message-Id: 1514566938.5df18678843df1422bf534f219ea19785bee5ff6.soap@gentoo
1 commit: 5df18678843df1422bf534f219ea19785bee5ff6
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 29 16:48:47 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 29 17:02:18 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5df18678
7
8 app-admin/longrun: Port to EAPI 6
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 app-admin/longrun/files/0.9-makefile_cflags.patch | 15 +++++----
13 app-admin/longrun/longrun-0.9-r4.ebuild | 38 ++++++++++-------------
14 app-admin/longrun/metadata.xml | 8 ++---
15 3 files changed, 28 insertions(+), 33 deletions(-)
16
17 diff --git a/app-admin/longrun/files/0.9-makefile_cflags.patch b/app-admin/longrun/files/0.9-makefile_cflags.patch
18 index a1522917788..8848dc66786 100644
19 --- a/app-admin/longrun/files/0.9-makefile_cflags.patch
20 +++ b/app-admin/longrun/files/0.9-makefile_cflags.patch
21 @@ -1,14 +1,13 @@
22 -Common subdirectories: longrun.old/debian and longrun/debian
23 -diff -u longrun.old/Makefile longrun/Makefile
24 ---- longrun.old/Makefile 2005-08-12 22:36:14.186390784 +0300
25 -+++ longrun/Makefile 2005-08-12 22:37:36.157929216 +0300
26 -@@ -3,7 +3,7 @@
27 +--- a/Makefile
28 ++++ b/Makefile
29 +@@ -2,8 +2,8 @@
30 +
31 all: longrun README stamp-po
32
33 - longrun: longrun.c
34 +-longrun: longrun.c
35 - gcc -DLOCALEDIR=\"$(LOCALEDIR)\" -g -O2 -W -Wall -o longrun longrun.c
36 -+ $(CC) $(CFLAGS) $(LDFLAGS) -DLOCALEDIR=\"$(LOCALEDIR)\" -W -Wall -o longrun longrun.c
37 ++CFLAGS += -W -Wall
38 ++CPPFLAGS += -DLOCALEDIR=\"$(LOCALEDIR)\"
39
40 README: longrun.1
41 groff -Tascii -man longrun.1 | col -bx > README
42 -Common subdirectories: longrun.old/po and longrun/po
43
44 diff --git a/app-admin/longrun/longrun-0.9-r4.ebuild b/app-admin/longrun/longrun-0.9-r4.ebuild
45 index afe681e3a69..0508c52ea18 100644
46 --- a/app-admin/longrun/longrun-0.9-r4.ebuild
47 +++ b/app-admin/longrun/longrun-0.9-r4.ebuild
48 @@ -1,54 +1,50 @@
49 -# Copyright 1999-2015 Gentoo Foundation
50 +# Copyright 1999-2017 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52
53 -inherit eutils linux-info toolchain-funcs
54 +EAPI=6
55 +
56 +inherit linux-info toolchain-funcs
57
58 DESCRIPTION="A utility to control Transmeta's Crusoe and Efficeon processors"
59 HOMEPAGE="http://freshmeat.net/projects/longrun/"
60
61 DEBIAN_PATCH_VERSION="19"
62 -DEBIAN_PATCH="${PN}_${PV}-${DEBIAN_PATCH_VERSION}.diff.gz"
63 +DEBIAN_PATCH="${PN}_${PV}-${DEBIAN_PATCH_VERSION}.diff"
64 SRC_URI="
65 mirror://kernel/linux/utils/cpu/crusoe/${P}.tar.bz2
66 - mirror://debian/pool/main/l/${PN}/${DEBIAN_PATCH}"
67 + mirror://debian/pool/main/l/${PN}/${DEBIAN_PATCH}.gz"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="-ppc x86"
72 IUSE=""
73
74 -DEPEND=""
75 +DEPEND="sys-apps/groff"
76
77 S=${WORKDIR}/${PN}
78
79 CONFIG_CHECK="~X86_MSR ~X86_CPUID"
80 -
81 ERROR_X86_MSR="
82 Longrun needs a MSR device to function. Please select
83 MSR under Processor type and features. It can be build
84 -directly into the kernel or as a module.
85 -"
86 -
87 +directly into the kernel or as a module."
88 ERROR_X86_CPUID="
89 Longrun needs a CPUID device to function. Please select
90 CPUID under Processor type and features. It can be
91 -build directly into the kernel or as a module.
92 -"
93 +build directly into the kernel or as a module."
94
95 -src_unpack() {
96 - unpack ${P}.tar.bz2
97 - cd "${S}"
98 - epatch "${DISTDIR}/${DEBIAN_PATCH}"
99 - epatch "${FILESDIR}/${PV}-makefile_cflags.patch"
100 - epatch "${FILESDIR}/${PV}-replace-loff_t.patch"
101 -}
102 +PATCHES=(
103 + "${WORKDIR}"/${DEBIAN_PATCH}
104 + "${FILESDIR}"/${PV}-makefile_cflags.patch
105 + "${FILESDIR}"/${PV}-replace-loff_t.patch
106 +)
107
108 -src_compile() {
109 - emake CC="$(tc-getCC)" || die "emake failed"
110 +src_configure() {
111 + tc-export CC
112 }
113
114 src_install() {
115 - make DESTDIR="${D}" install || die "make install failed"
116 + default
117 dodoc MAKEDEV-cpuid-msr
118 }
119
120
121 diff --git a/app-admin/longrun/metadata.xml b/app-admin/longrun/metadata.xml
122 index 36cfa75cbc1..fcfeedac0c1 100644
123 --- a/app-admin/longrun/metadata.xml
124 +++ b/app-admin/longrun/metadata.xml
125 @@ -3,10 +3,10 @@
126 <pkgmetadata>
127 <!-- maintainer-needed -->
128 <longdescription>
129 -Longrun is a user space utility program for controlling the Longrun
130 -thermal and power save functionalities found in the processors made
131 -by Transmeta.
132 -</longdescription>
133 + Longrun is a user space utility program for controlling the Longrun
134 + thermal and power save functionalities found in the processors made
135 + by Transmeta.
136 + </longdescription>
137 <upstream>
138 <remote-id type="freshmeat">longrun</remote-id>
139 </upstream>