Gentoo Archives: gentoo-commits

From: Aaron Bauman <bman@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/pbbuttonsd/
Date: Sat, 02 Jun 2018 22:38:23
Message-Id: 1527979019.c5e7617ecae925edd807828a7fa38278d719c23f.bman@gentoo
1 commit: c5e7617ecae925edd807828a7fa38278d719c23f
2 Author: Aaron Bauman <bman <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 2 19:57:40 2018 +0000
4 Commit: Aaron Bauman <bman <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 2 22:36:59 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5e7617e
7
8 app-laptop/pbbuttonsd: drop old EAPI=0 ebuilds
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 app-laptop/pbbuttonsd/Manifest | 1 -
13 app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r3.ebuild | 126 ----------------------
14 app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r4.ebuild | 130 -----------------------
15 3 files changed, 257 deletions(-)
16
17 diff --git a/app-laptop/pbbuttonsd/Manifest b/app-laptop/pbbuttonsd/Manifest
18 index 9abb5c4a669..797ddc84c0f 100644
19 --- a/app-laptop/pbbuttonsd/Manifest
20 +++ b/app-laptop/pbbuttonsd/Manifest
21 @@ -1,2 +1 @@
22 -DIST pbbuttonsd-0.8.1.tar.gz 589630 BLAKE2B 6cc9e8cfdbb3878be38d3e06f84af08f1c0dcdca23868c2b04c3812bb8d69780dbe86911b6c58a2a7345b39a19fffb2536ca7f0230ec8159710505b86c2b3ebe SHA512 856f8533c1f6489986c232baa8b8002a01d009ed3728ee35bc723aece91ba626ce961119c0d424f40c2f9289827f317c56d70fe8f0e035cbd9f08d7701316ac3
23 DIST pbbuttonsd-0.8.1a.tar.gz 589747 BLAKE2B a0410b7f165e8a0f5b6efa8fa86cc32a84e62da08141d285442d48f0e541d4d6d063e61a7e48aa7901135c4fc9640a7968be821619b3741ce30ba1497015aad4 SHA512 4aaf674872982925f7aa8e06a363f50830f13d9491f4a3b850c1852a8a6d4b2c72164f839c482eed059703dd25d900fe3bb774f78e7039ac2464ea7a1837bf99
24
25 diff --git a/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r3.ebuild b/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r3.ebuild
26 deleted file mode 100644
27 index 6b240e0d85b..00000000000
28 --- a/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r3.ebuild
29 +++ /dev/null
30 @@ -1,126 +0,0 @@
31 -# Copyright 1999-2018 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI=0
35 -
36 -inherit autotools flag-o-matic eutils
37 -
38 -DESCRIPTION="Handles power management and special keys on laptops"
39 -HOMEPAGE="http://pbbuttons.berlios.de"
40 -SRC_URI="mirror://sourceforge/pbbuttons/${P}.tar.gz"
41 -
42 -LICENSE="GPL-2"
43 -SLOT="0"
44 -KEYWORDS="~amd64 ppc ~x86"
45 -IUSE="acpi alsa debug doc ibam macbook oss"
46 -
47 -DEPEND="macbook? (
48 - sys-libs/libsmbios
49 - sys-apps/pciutils
50 - )
51 - >=dev-libs/glib-2.6
52 - doc? ( app-doc/doxygen )"
53 -RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0 )
54 - >=dev-libs/glib-2.6"
55 -
56 -src_unpack() {
57 - unpack ${A}
58 - cd "${S}"
59 -
60 - epatch "${FILESDIR}/${PN}-0.8.1-pmcs.patch"
61 - ### Don't link with g++ if we don't use ibam
62 - if ! use ibam; then
63 - epatch "${FILESDIR}/${PN}-0.8.1-g++.patch"
64 - fi
65 - ### Fix macbook -lz issue
66 - epatch "${FILESDIR}/${PN}-0.8.1-lz.patch"
67 - epatch "${FILESDIR}/${PN}-0.8.1-lm.patch"
68 - ### Fix new apple hid fnmode issue
69 - epatch "${FILESDIR}/${PN}-0.8.1-fnmode.patch"
70 - eautoconf
71 -}
72 -
73 -src_compile() {
74 - # Fix crash bug on some systems
75 - replace-flags -O? -O1
76 -
77 - if use macbook; then
78 - laptop=macbook
79 - elif use x86 || use amd64; then
80 - if use acpi; then
81 - laptop=acpi
82 - else
83 - laptop=i386
84 - fi
85 - # Default to PowerBook
86 - else
87 - laptop=powerbook
88 - fi
89 -
90 - econf laptop=$laptop \
91 - $(use_enable debug) \
92 - $(use_with doc doxygen_docs) \
93 - $(use_with alsa) \
94 - $(use_with oss) \
95 - $(use_with ibam) \
96 - || die "Sorry, failed to configure pbbuttonsd"
97 -
98 - # Thanks to Stefan Bruda for this workaround
99 - # Using -j1 fixes a parallel build issue with the docs
100 - if use doc; then
101 - emake -j1 || die "Sorry, failed to compile pbbuttonsd"
102 - else
103 - emake || die "Sorry, failed to compile pbbuttonsd"
104 - fi
105 -}
106 -
107 -src_install() {
108 - dodir /etc/power
109 - use ibam && dodir /var/lib/ibam
110 - make DESTDIR="${D}" install || die "failed to install"
111 - newinitd "${FILESDIR}/pbbuttonsd.rc6" pbbuttonsd
112 - dodoc README
113 - use doc && dohtml -r doc/*
114 -
115 - dodir /etc/power/resume.d
116 - dodir /etc/power/suspend.d
117 - dodir /etc/power/scripts.d
118 - exeinto "/etc/power/scripts.d"
119 - doexe "${FILESDIR}/wireless"
120 - ln -s "${D}/etc/power/scripts.d/wireless" "${D}/etc/power/resume.d/wireless"
121 -}
122 -
123 -pkg_postinst() {
124 - if [ -e /etc/pbbuttonsd.conf ]; then
125 - ewarn "The pbbuttonsd.cnf file replaces /etc/pbuttonsd.conf with a new"
126 - ewarn "file (/etc/pbbuttonsd.conf) and a new format. Please check the"
127 - ewarn "manual page with 'man pbbuttonsd.cnf' for details."
128 - ewarn
129 - fi
130 -
131 - if use macbook; then
132 - ewarn "Macbook and Macbook Pro users should make sure to have applesmc"
133 - ewarn "loaded before starting pbbuttonsdm otherwise auto-adjustments"
134 - ewarn "will not work and pbbuttonsd may segfault."
135 - fi
136 -
137 - ewarn "Ensure that the evdev kernel module is loaded otherwise"
138 - ewarn "pbbuttonsd won't work. SysV IPC is also required."
139 - ewarn
140 - ewarn "If you need extra security, you can tell pbbuttonsd to only accept"
141 - ewarn "input from one user. You can set the userallowed option in"
142 - ewarn "/etc/pbbuttonsd.cnf to limit access."
143 - ewarn
144 -
145 - if use ibam; then
146 - elog "To properly initialize the IBaM battery database, you will"
147 - elog "need to perform a full discharge/charge cycle. For more"
148 - elog "details, please see the pbbuttonsd man page."
149 - elog
150 - fi
151 -
152 - elog "A script is now available to reset your wirless connection on resume."
153 - elog "Simply uncomment the commented command and set the correct device to"
154 - elog "use it. You can find the script in /etc/power/resume.d/wireless"
155 -
156 -}
157
158 diff --git a/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r4.ebuild b/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r4.ebuild
159 deleted file mode 100644
160 index a1941b1e7b4..00000000000
161 --- a/app-laptop/pbbuttonsd/pbbuttonsd-0.8.1-r4.ebuild
162 +++ /dev/null
163 @@ -1,130 +0,0 @@
164 -# Copyright 1999-2018 Gentoo Foundation
165 -# Distributed under the terms of the GNU General Public License v2
166 -
167 -EAPI=0
168 -
169 -inherit autotools flag-o-matic eutils
170 -
171 -DESCRIPTION="Handles power management and special keys on laptops"
172 -HOMEPAGE="http://pbbuttons.berlios.de"
173 -SRC_URI="mirror://sourceforge/pbbuttons/${P}.tar.gz"
174 -
175 -LICENSE="GPL-2"
176 -SLOT="0"
177 -KEYWORDS="~amd64 ~ppc ~x86"
178 -IUSE="acpi alsa debug doc ibam macbook oss"
179 -
180 -DEPEND="macbook? (
181 - sys-libs/libsmbios
182 - sys-apps/pciutils
183 - )
184 - >=dev-libs/glib-2.6
185 - doc? ( app-doc/doxygen )"
186 -RDEPEND="alsa? ( >=media-libs/alsa-lib-1.0 )
187 - >=dev-libs/glib-2.6"
188 -
189 -src_unpack() {
190 - unpack ${A}
191 - cd "${S}"
192 -
193 - epatch "${FILESDIR}/${PN}-0.8.1-pmcs.patch"
194 - ### Don't link with g++ if we don't use ibam
195 - if ! use ibam; then
196 - epatch "${FILESDIR}/${PN}-0.8.1-g++.patch"
197 - fi
198 - ### Fix macbook -lz issue
199 - epatch "${FILESDIR}/${PN}-0.8.1-lz.patch"
200 - epatch "${FILESDIR}/${PN}-0.8.1-lm.patch"
201 - ### Fix new apple hid fnmode issue
202 - epatch "${FILESDIR}/${PN}-0.8.1-fnmode.patch"
203 - ### Add kernel 2.6.x stuff for 3.x as well
204 - epatch "${FILESDIR}/${PN}-0.8.1-laptopmode.sh.patch"
205 - epatch "${FILESDIR}/${PN}-0.8.1-cpufreq.patch"
206 -
207 - eautoconf
208 -}
209 -
210 -src_compile() {
211 - # Fix crash bug on some systems
212 - replace-flags -O? -O1
213 -
214 - if use macbook; then
215 - laptop=macbook
216 - elif use x86 || use amd64; then
217 - if use acpi; then
218 - laptop=acpi
219 - else
220 - laptop=i386
221 - fi
222 - # Default to PowerBook
223 - else
224 - laptop=powerbook
225 - fi
226 -
227 - econf laptop=$laptop \
228 - $(use_enable debug) \
229 - $(use_with doc doxygen_docs) \
230 - $(use_with alsa) \
231 - $(use_with oss) \
232 - $(use_with ibam) \
233 - || die "Sorry, failed to configure pbbuttonsd"
234 -
235 - # Thanks to Stefan Bruda for this workaround
236 - # Using -j1 fixes a parallel build issue with the docs
237 - if use doc; then
238 - emake -j1 || die "Sorry, failed to compile pbbuttonsd"
239 - else
240 - emake || die "Sorry, failed to compile pbbuttonsd"
241 - fi
242 -}
243 -
244 -src_install() {
245 - dodir /etc/power
246 - use ibam && dodir /var/lib/ibam
247 - make DESTDIR="${D}" install || die "failed to install"
248 - newinitd "${FILESDIR}/pbbuttonsd.rc6" pbbuttonsd
249 - dodoc README
250 - use doc && dohtml -r doc/*
251 -
252 - dodir /etc/power/resume.d
253 - dodir /etc/power/suspend.d
254 - dodir /etc/power/scripts.d
255 - exeinto "/etc/power/scripts.d"
256 - doexe "${FILESDIR}/wireless"
257 - ln -s "${D}/etc/power/scripts.d/wireless" "${D}/etc/power/resume.d/wireless"
258 -}
259 -
260 -pkg_postinst() {
261 - if [ -e /etc/pbbuttonsd.conf ]; then
262 - ewarn "The pbbuttonsd.cnf file replaces /etc/pbuttonsd.conf with a new"
263 - ewarn "file (/etc/pbbuttonsd.conf) and a new format. Please check the"
264 - ewarn "manual page with 'man pbbuttonsd.cnf' for details."
265 - ewarn
266 - fi
267 -
268 - if use macbook; then
269 - ewarn "Macbook and Macbook Pro users should make sure to have applesmc"
270 - ewarn "loaded before starting pbbuttonsdm otherwise auto-adjustments"
271 - ewarn "will not work and pbbuttonsd may segfault."
272 - fi
273 -
274 - ewarn "Ensure that the evdev kernel module is loaded otherwise"
275 - ewarn "pbbuttonsd won't work. SysV IPC is also required."
276 - ewarn
277 - ewarn "If you need extra security, you can tell pbbuttonsd to only accept"
278 - ewarn "input from one user. You can set the userallowed option in"
279 - ewarn "/etc/pbbuttonsd.cnf to limit access."
280 - ewarn
281 -
282 - if use ibam; then
283 - elog "To properly initialize the IBaM battery database, you will"
284 - elog "need to perform a full discharge/charge cycle. For more"
285 - elog "details, please see the pbbuttonsd man page."
286 - elog
287 - fi
288 -
289 - elog "A script is now available to reset your wirless connection on resume."
290 - elog "Simply uncomment the commented command and set the correct device to"
291 - elog "use it. You can find the script in /etc/power/resume.d/wireless"
292 -
293 -}