Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/fbpanel/, x11-misc/fbpanel/files/
Date: Tue, 28 Feb 2017 19:11:08
Message-Id: 1488309037.da2b848f594f74c10e1f97dc4429fa1abd607e79.soap@gentoo
1 commit: da2b848f594f74c10e1f97dc4429fa1abd607e79
2 Author: Harri Nieminen <moikkis <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 25 18:13:38 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 28 19:10:37 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da2b848f
7
8 x11-misc/fbpanel: Version bump to 7.0
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11 Closes: https://github.com/gentoo/gentoo/pull/4085
12
13 x11-misc/fbpanel/Manifest | 1 +
14 x11-misc/fbpanel/fbpanel-7.0.ebuild | 58 +++++++++++
15 x11-misc/fbpanel/files/fbpanel-7.0-clang.patch | 57 ++++++++++
16 x11-misc/fbpanel/files/fbpanel-7.0-shebangs.patch | 120 ++++++++++++++++++++++
17 4 files changed, 236 insertions(+)
18
19 diff --git a/x11-misc/fbpanel/Manifest b/x11-misc/fbpanel/Manifest
20 index ee89550ced..37e46383f5 100644
21 --- a/x11-misc/fbpanel/Manifest
22 +++ b/x11-misc/fbpanel/Manifest
23 @@ -1 +1,2 @@
24 DIST fbpanel-6.1.tbz2 190266 SHA256 e14542cc81ea06e64dd4708546f5fd3f5e01884c3e4617885c7ef22af8cf3965 SHA512 10ffa422d811725dff68f43af9735d79c7859114bdf06f49b05e0bc4b0fd5eb8a3ea196cd07753f261d60c0bd0716baa6d5a22c860dde6597c70bfcfb0f7078e WHIRLPOOL 362d4beaa383ad716a851d4fe1a5e583d635c300a0d97ba36d07e2709b8ca09cd6756c7bf8f7fc62508c547dc23c043b6ad0e90787dc629b3dda280d2b55e97e
25 +DIST fbpanel-7.0.tar.gz 3746477 SHA256 711570954f8f99235d6afb7ec3226dede20b832eb712a5bd00e4f793b75ac5bb SHA512 9706a96569c41241de4dbd250c9d6a473b53a5e26e880f4c782041b2b91c7570046e1bee3070059fd2d333fb7159490732ef397b86701c72d4c65c0784948874 WHIRLPOOL 37fc5f86b80474026b660491b83ee26c4e9e260cadafff9673d161feb79efe2b2d6c89f1c83c76ebfe41eeee61e83cf3dc271667d4a2aeefe37c5e93c30f8e31
26
27 diff --git a/x11-misc/fbpanel/fbpanel-7.0.ebuild b/x11-misc/fbpanel/fbpanel-7.0.ebuild
28 new file mode 100644
29 index 0000000000..408fcdd3aa
30 --- /dev/null
31 +++ b/x11-misc/fbpanel/fbpanel-7.0.ebuild
32 @@ -0,0 +1,58 @@
33 +# Copyright 1999-2017 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +PYTHON_COMPAT=( python2_7 )
39 +
40 +inherit python-any-r1 toolchain-funcs
41 +
42 +DESCRIPTION="light-weight X11 desktop panel"
43 +HOMEPAGE="https://aanatoly.github.io/fbpanel/"
44 +SRC_URI="https://github.com/aanatoly/fbpanel/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="GPL-2"
47 +SLOT="0"
48 +KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
49 +IUSE="alsa"
50 +
51 +RDEPEND="
52 + dev-libs/glib:2
53 + alsa? ( media-libs/alsa-lib )
54 + x11-libs/gdk-pixbuf:2[X]
55 + x11-libs/gtk+:2
56 + x11-libs/libX11
57 +"
58 +DEPEND="
59 + ${RDEPEND}
60 + ${PYTHON_DEPS}
61 + virtual/pkgconfig
62 + x11-proto/xproto
63 +"
64 +
65 +PATCHES=(
66 + "${FILESDIR}"/${PN}-6.1-underlinking.patch
67 + "${FILESDIR}"/${P}-shebangs.patch
68 + "${FILESDIR}"/${P}-clang.patch
69 +)
70 +
71 +src_configure() {
72 + tc-export CC
73 + # not autotools based
74 + local myconfigure=(
75 + ./configure V=1
76 + --mandir="${EPREFIX}"/usr/share/man/man1
77 + --datadir="${EPREFIX}"/usr/share/${PN}
78 + --prefix="${EPREFIX}"/usr
79 + --libdir="${EPREFIX}"/usr/$(get_libdir)/${PN}
80 + $(usex alsa --sound --no-sound)
81 + )
82 + echo ${myconfigure[@]} || die
83 + ${myconfigure[@]} || die
84 +}
85 +
86 +pkg_postinst() {
87 + elog "For the volume plugin to work, you need to configure your kernel"
88 + elog "with CONFIG_SND_MIXER_OSS or CONFIG_SOUND_PRIME or some other means"
89 + elog "that provide the /dev/mixer device node."
90 +}
91
92 diff --git a/x11-misc/fbpanel/files/fbpanel-7.0-clang.patch b/x11-misc/fbpanel/files/fbpanel-7.0-clang.patch
93 new file mode 100644
94 index 0000000000..69347c0f3a
95 --- /dev/null
96 +++ b/x11-misc/fbpanel/files/fbpanel-7.0-clang.patch
97 @@ -0,0 +1,57 @@
98 +diff -u -r fbpanel-7.0/plugins/battery/power_supply.c fbpanel-7.0-3/plugins/battery/power_supply.c
99 +--- fbpanel-7.0/plugins/battery/power_supply.c 2015-12-05 08:34:19.000000000 +0200
100 ++++ fbpanel-7.0-3/plugins/battery/power_supply.c 2017-02-25 14:52:55.431202738 +0200
101 +@@ -154,7 +154,7 @@
102 + tmp->path = path;
103 + tmp->name = NULL;
104 + tmp->status = NULL;
105 +- tmp->capacity = -1.0d;
106 ++ tmp->capacity = -1.0f;
107 + return tmp;
108 + }
109 +
110 +@@ -206,12 +206,12 @@
111 + bat->capacity = g_ascii_strtod(tmp_value, NULL);
112 + } else { // for older kernels
113 + tmp_value = (gchar*) g_hash_table_lookup(hash, SYS_ACPI_UEVENT_BAT_ENERGY_NOW_KEY);
114 +- gdouble tmp = -1.0d;
115 ++ gdouble tmp = -1.0f;
116 + if (tmp_value != NULL) { // ac off
117 + tmp = g_ascii_strtod(tmp_value, NULL);
118 + tmp_value = (gchar*) g_hash_table_lookup(hash, SYS_ACPI_UEVENT_BAT_ENERGY_FULL_KEY);
119 +- if (tmp_value != NULL && tmp > 0.0d) {
120 +- tmp = tmp / g_ascii_strtod(tmp_value, NULL) * 100.0d;
121 ++ if (tmp_value != NULL && tmp > 0.0f) {
122 ++ tmp = tmp / g_ascii_strtod(tmp_value, NULL) * 100.0f;
123 + bat->capacity = tmp;
124 + }
125 + } else {
126 +@@ -219,8 +219,8 @@
127 + if (tmp_value != NULL) { // ac on
128 + tmp = g_ascii_strtod(tmp_value, NULL);
129 + tmp_value = (gchar*) g_hash_table_lookup(hash, SYS_ACPI_UEVENT_BAT_CHARGE_FULL_KEY);
130 +- if (tmp_value != NULL && tmp > 0.0d) {
131 +- tmp = tmp / g_ascii_strtod(tmp_value, NULL) * 100.0d;
132 ++ if (tmp_value != NULL && tmp > 0.0f) {
133 ++ tmp = tmp / g_ascii_strtod(tmp_value, NULL) * 100.0f;
134 + bat->capacity = tmp;
135 + }
136 + }
137 +@@ -327,7 +327,7 @@
138 + extern gdouble
139 + power_supply_get_bat_capacity(power_supply* ps)
140 + {
141 +- gdouble total_bat_capacity = 0.0d;
142 ++ gdouble total_bat_capacity = 0.0f;
143 + guint bat_count = 0;
144 + GSequenceIter* it;
145 + bat* battery;
146 +@@ -335,7 +335,7 @@
147 + it = g_sequence_get_begin_iter(ps->bat_list);
148 + while (!g_sequence_iter_is_end(it)) {
149 + battery = (bat*) g_sequence_get(it);
150 +- if (battery->capacity > 0.0d) {
151 ++ if (battery->capacity > 0.0f) {
152 + total_bat_capacity = total_bat_capacity + battery->capacity;
153 + }
154 + bat_count++;
155
156 diff --git a/x11-misc/fbpanel/files/fbpanel-7.0-shebangs.patch b/x11-misc/fbpanel/files/fbpanel-7.0-shebangs.patch
157 new file mode 100644
158 index 0000000000..cdbe998e06
159 --- /dev/null
160 +++ b/x11-misc/fbpanel/files/fbpanel-7.0-shebangs.patch
161 @@ -0,0 +1,120 @@
162 +--- a/.config/help
163 ++++ b/.config/help
164 +@@ -1,4 +1,4 @@
165 +-#!/usr/bin/python
166 ++#!/usr/bin/env python2
167 +
168 + import re, os, sys, textwrap
169 + # Formats help message
170 +--- a/.config/repl.py
171 ++++ b/.config/repl.py
172 +@@ -1,4 +1,4 @@
173 +-#!/usr/bin/python
174 ++#!/usr/bin/env python2
175 +
176 + import re, sys
177 +
178 +--- a/.config/tar.py
179 ++++ b/.config/tar.py
180 +@@ -1,4 +1,4 @@
181 +-#!/usr/bin/python
182 ++#!/usr/bin/env python2
183 +
184 + import subprocess as sp
185 + import re, tempfile
186 +--- a/configure
187 ++++ b/configure
188 +@@ -1,4 +1,4 @@
189 +-#!/usr/bin/python
190 ++#!/usr/bin/env python2
191 +
192 + import sys
193 + if sys.version_info < (2, 7):
194 +--- a/exec/make_profile.in
195 ++++ b/exec/make_profile.in
196 +@@ -1,4 +1,4 @@
197 +-#!/bin/bash
198 ++#!/usr/bin/env bash
199 +
200 + umask 0077
201 + # new profile directory
202 +--- a/exec/xlogout
203 ++++ b/exec/xlogout
204 +@@ -1,4 +1,4 @@
205 +-#!/bin/bash
206 ++#!/usr/bin/env bash
207 +
208 + # xlogout - logs user out of its X session
209 + # Linux specific since uses /proc
210 +--- a/scripts/endianess.sh
211 ++++ b/scripts/endianess.sh
212 +@@ -1,4 +1,4 @@
213 +-#!/bin/bash
214 ++#!/usr/bin/env bash
215 +
216 + # When cross compiling, you may put cross compiler directory
217 + # in PATH before native gcc (aka spoofing), or you may set CC
218 +--- a/scripts/install_locale.sh
219 ++++ b/scripts/install_locale.sh
220 +@@ -1,4 +1,4 @@
221 +-#!/bin/bash
222 ++#!/usr/bin/env bash
223 +
224 + dir=/tmp/lo-$$
225 + mkdir $dir
226 +--- a/scripts/install_locale.sh.in
227 ++++ b/scripts/install_locale.sh.in
228 +@@ -1,4 +1,4 @@
229 +-#!/bin/bash
230 ++#!/usr/bin/env bash
231 +
232 + dir=/tmp/lo-$$
233 + mkdir $dir
234 +--- a/scripts/install.sh
235 ++++ b/scripts/install.sh
236 +@@ -1,4 +1,4 @@
237 +-#!/bin/bash
238 ++#!/usr/bin/env bash
239 +
240 + usage ()
241 + {
242 +--- a/scripts/mk_tar
243 ++++ b/scripts/mk_tar
244 +@@ -1,4 +1,4 @@
245 +-#!/bin/bash
246 ++#!/usr/bin/env bash
247 +
248 +
249 + function info()
250 +--- a/scripts/rfs-pkg-config
251 ++++ b/scripts/rfs-pkg-config
252 +@@ -1,4 +1,4 @@
253 +-#!/bin/bash
254 ++#!/usr/bin/env bash
255 +
256 + # Tt runs pkg-config in a way that everything is searched under RFS
257 + # but reported including full path. Suitable for cross-compiling
258 +--- a/scripts/update-proj.sh
259 ++++ b/scripts/update-proj.sh
260 +@@ -1,4 +1,4 @@
261 +-#!/bin/bash
262 ++#!/usr/bin/env bash
263 +
264 + function usage ()
265 + {
266 +--- a/www/plugins/mk_gallery
267 ++++ b/www/plugins/mk_gallery
268 +@@ -1,4 +1,4 @@
269 +-#!/bin/sh
270 ++#!/usr/bin/env sh
271 +
272 + echo > "$1"
273 + #echo '<table cellpadding="0" cellspacing="0" border="0" align="left" bgcolor="#ffffff">' >> "$1"
274 +--- a/www/shots/mk_gallery
275 ++++ b/www/shots/mk_gallery
276 +@@ -1,4 +1,4 @@
277 +-#!/bin/sh
278 ++#!/usr/bin/env sh
279 +
280 + function help ()
281 + {