Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xmobar/files/, x11-misc/xmobar/
Date: Wed, 26 Aug 2020 23:25:52
Message-Id: 1598484343.233d3fcfd7085787218a341c0f16980937d4f192.slyfox@gentoo
1 commit: 233d3fcfd7085787218a341c0f16980937d4f192
2 Author: Jack Todaro <solpeth <AT> posteo <DOT> org>
3 AuthorDate: Tue Aug 25 23:22:02 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 26 23:25:43 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=233d3fcf
7
8 x11-misc/xmobar: remove old
9
10 Package-Manager: Portage-3.0.4, Repoman-3.0.1
11 Signed-off-by: Jack Todaro <solpeth <AT> posteo.org>
12 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
13
14 x11-misc/xmobar/Manifest | 2 -
15 .../files/xmobar-0.24.3-alsa-mixer-0.3.patch | 26 ------
16 x11-misc/xmobar/files/xmobar-0.24.3-noxpm.patch | 9 --
17 x11-misc/xmobar/metadata.xml | 1 -
18 x11-misc/xmobar/xmobar-0.24.3-r1.ebuild | 100 ---------------------
19 x11-misc/xmobar/xmobar-0.35.1.ebuild | 99 --------------------
20 6 files changed, 237 deletions(-)
21
22 diff --git a/x11-misc/xmobar/Manifest b/x11-misc/xmobar/Manifest
23 index 1efb7834a4b..4e4fd46bf3e 100644
24 --- a/x11-misc/xmobar/Manifest
25 +++ b/x11-misc/xmobar/Manifest
26 @@ -1,3 +1 @@
27 -DIST xmobar-0.24.3.tar.gz 100317 BLAKE2B 3ca7aeb977688b975674dc767f645d15aaf296ff906f51d79529ee58d827188437695b4ee0b960563f6c0ce1489baf1f5bdc4360807989277078a93dfafb3ed1 SHA512 aa16d55b16cf108005ee8ec6c3d1b348b3e70a5182cbb97eed2aeb67bed83bee4b23acff6d29d5bda5a30ce35dc87463a6ade6e0814b588f53b173a1c3b5a5b3
28 -DIST xmobar-0.35.1.tar.gz 133251 BLAKE2B bebd535f2f29f89131b468e1226a63168321cfdb93129e4e3e6cdf9e2489bf4df6bdc02a5d3f6569d5c35d2cfe1fb05efec73587544c7526bf2f97bfe6a7e1b4 SHA512 fd7bb8710f3c877835aa0b20e0fca227f6f620c0be31acd46e6a464b4ba3f6c7da8df31cd3f345e606b03a54328dd9a298e46e8fc2935e74ebd8c5712cedbf76
29 DIST xmobar-0.36.tar.gz 136890 BLAKE2B be76faaec78d66b5f0f99542bc59330106c34413c5502f4dbef8dc47647dbf7ebfc94311de965520ca620c8cfbdc1ba68a3eab36da65e476c413ad9f8f4f3695 SHA512 abb7f9cf367fa5c03f5928006fc5f7c38434743350d5f524307b99448cb30436fb44e0c856bd274032a6803f05b64e6d4ac553f51f4bd817efd2861408007c02
30
31 diff --git a/x11-misc/xmobar/files/xmobar-0.24.3-alsa-mixer-0.3.patch b/x11-misc/xmobar/files/xmobar-0.24.3-alsa-mixer-0.3.patch
32 deleted file mode 100644
33 index 837df1d2975..00000000000
34 --- a/x11-misc/xmobar/files/xmobar-0.24.3-alsa-mixer-0.3.patch
35 +++ /dev/null
36 @@ -1,26 +0,0 @@
37 ---- a/src/Plugins/Monitors/Volume.hs
38 -+++ b/src/Plugins/Monitors/Volume.hs
39 -@@ -122,7 +122,8 @@ formatDb opts dbi = do
40 - runVolume :: String -> String -> [String] -> Monitor String
41 - runVolume mixerName controlName argv = do
42 - opts <- io $ parseOpts argv
43 -- (lo, hi, val, db, sw) <- io readMixer
44 -+ (lo', hi', val', db, sw) <- io readMixer
45 -+ let (lo, hi, val) = (toInteger <$> lo', toInteger <$> hi', toInteger <$> val')
46 - p <- liftMonitor $ liftM3 formatVol lo hi val
47 - b <- liftMonitor $ liftM3 formatVolBar lo hi val
48 - v <- liftMonitor $ liftM3 formatVolVBar lo hi val
49 -@@ -164,11 +165,11 @@ runVolume mixerName controlName argv = do
50 -
51 - getDB :: Maybe Volume -> IO (Maybe Integer)
52 - getDB Nothing = return Nothing
53 -- getDB (Just v) = channel (dB v) 0
54 -+ getDB (Just v) = fmap toInteger <$> channel (dB v) 0
55 -
56 - getVal :: Maybe Volume -> IO (Maybe Integer)
57 - getVal Nothing = return Nothing
58 -- getVal (Just v) = channel (value v) 0
59 -+ getVal (Just v) = fmap toInteger <$> channel (value v) 0
60 -
61 - getSw :: Maybe Switch -> IO (Maybe Bool)
62 - getSw Nothing = return Nothing
63
64 diff --git a/x11-misc/xmobar/files/xmobar-0.24.3-noxpm.patch b/x11-misc/xmobar/files/xmobar-0.24.3-noxpm.patch
65 deleted file mode 100644
66 index 8f4da6b7884..00000000000
67 --- a/x11-misc/xmobar/files/xmobar-0.24.3-noxpm.patch
68 +++ /dev/null
69 @@ -1,9 +0,0 @@
70 -diff --git a/xmobar.cabal b/xmobar.cabal
71 -index f6a6dae..8a17579 100644
72 ---- a/xmobar.cabal
73 -+++ b/xmobar.cabal
74 -@@ -89,3 +89,3 @@ executable xmobar
75 - Xmobar, Actions, Bitmap, Config, Parsers, Commands, Localize,
76 -- XUtil, XPMFile, StatFS, Runnable, ColorCache, Window, Signal,
77 -+ XUtil, StatFS, Runnable, ColorCache, Window, Signal,
78 - Environment,
79
80 diff --git a/x11-misc/xmobar/metadata.xml b/x11-misc/xmobar/metadata.xml
81 index 3ecfd078e08..f3ba842d32a 100644
82 --- a/x11-misc/xmobar/metadata.xml
83 +++ b/x11-misc/xmobar/metadata.xml
84 @@ -7,7 +7,6 @@
85 </maintainer>
86 <use>
87 <flag name="alsa">Use alsa-mixer to get the volume from soundcards</flag>
88 - <flag name="conduit">Use conduit to fetch weather data.</flag>
89 <flag name="dbus">Publish a service on the session bus for controlling xmobar</flag>
90 <flag name="inotify">inotify support (modern Linux only). Required for the Mail and MBox plugins</flag>
91 <flag name="mpd">Support mpd plugin</flag>
92
93 diff --git a/x11-misc/xmobar/xmobar-0.24.3-r1.ebuild b/x11-misc/xmobar/xmobar-0.24.3-r1.ebuild
94 deleted file mode 100644
95 index 7cf587b8268..00000000000
96 --- a/x11-misc/xmobar/xmobar-0.24.3-r1.ebuild
97 +++ /dev/null
98 @@ -1,100 +0,0 @@
99 -# Copyright 1999-2020 Gentoo Authors
100 -# Distributed under the terms of the GNU General Public License v2
101 -
102 -EAPI=7
103 -
104 -# ebuild generated by hackport 0.5.9999
105 -#hackport: flags: -all_extensions,+with_threaded,+with_utf8,with_iwlib:wifi,with_alsa:alsa,with_xft:xft,with_datezone:timezone,with_dbus:dbus,with_mpd:mpd,with_inotify:inotify,with_mpris:mpris,with_xpm:xpm
106 -
107 -CABAL_FEATURES="bin"
108 -inherit haskell-cabal
109 -
110 -DESCRIPTION="A Minimalistic Text Based Status Bar"
111 -HOMEPAGE="https://xmobar.org"
112 -SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
113 -
114 -LICENSE="BSD"
115 -SLOT="0"
116 -KEYWORDS="~amd64 ~x86"
117 -IUSE="alsa dbus inotify mpd mpris timezone wifi conduit uvmeter xft xpm"
118 -
119 -RDEPEND=">=dev-haskell/http-4000.2.4:=
120 - >=dev-haskell/mtl-2.1:= <dev-haskell/mtl-2.3:=
121 - dev-haskell/old-locale:=
122 - >=dev-haskell/parsec-3.1:= <dev-haskell/parsec-3.2:=
123 - dev-haskell/regex-compat:=
124 - >=dev-haskell/stm-2.3:= <dev-haskell/stm-2.5:=
125 - >=dev-haskell/utf8-string-0.3:= <dev-haskell/utf8-string-1.1:=
126 - >=dev-haskell/x11-1.6.1:=
127 - >=dev-lang/ghc-7.8.2:=
128 - x11-libs/libXrandr
129 - x11-libs/libXrender
130 - alsa? ( >=dev-haskell/alsa-core-0.5:= <dev-haskell/alsa-core-0.6:=
131 - >=dev-haskell/alsa-mixer-0.3:= )
132 - dbus? ( >=dev-haskell/dbus-0.10:= )
133 - inotify? ( >=dev-haskell/hinotify-0.3:= <dev-haskell/hinotify-0.4:= )
134 - mpd? ( >=dev-haskell/libmpd-0.9:= <dev-haskell/libmpd-0.10:= )
135 - mpris? ( >=dev-haskell/dbus-0.10:= )
136 - timezone? ( >=dev-haskell/timezone-olson-0.1:= <dev-haskell/timezone-olson-0.2:=
137 - >=dev-haskell/timezone-series-0.1:= <dev-haskell/timezone-series-0.2:= )
138 - wifi? ( net-wireless/wireless-tools )
139 - conduit? ( dev-haskell/http-conduit:=
140 - dev-haskell/http-types:= )
141 - xft? ( >=dev-haskell/x11-xft-0.2:= <dev-haskell/x11-xft-0.4:= )
142 - xpm? ( x11-libs/libXpm )
143 -"
144 -DEPEND="${RDEPEND}
145 - >=dev-haskell/cabal-1.18.1.3
146 -"
147 -
148 -PATCHES=(
149 - "${FILESDIR}"/${P}-noxpm.patch
150 - "${FILESDIR}"/${P}-alsa-mixer-0.3.patch
151 -)
152 -
153 -src_prepare() {
154 - default
155 - # xmobar is an idle multithreaded program
156 - # which sits in 'while { sleep(1); }'
157 - # loops in multiple threads.
158 - # It has a pathological behaviour in GHC:
159 - # everything program does is thread context switch
160 - # 100 times per second. It's easily seen with
161 - #
162 - # $ strace -f -p `pidof xmobar`
163 - #
164 - # where rt_sigreturn() manages to enter/exit
165 - # kernel 32 times in each second to do nothing
166 - # This workaround allows shrinkng wakeups/thread
167 - # switches down to one per second (internal xmobar's
168 - # cycle).
169 - # Be careful when remove it :]
170 - HCFLAGS+=" -with-rtsopts=-V0"
171 -
172 - cabal_chdeps \
173 - 'stm >= 2.3 && < 2.5' 'stm >= 2.3'
174 -}
175 -
176 -src_configure() {
177 - haskell-cabal_src_configure \
178 - --flag=-all_extensions \
179 - $(cabal_flag alsa with_alsa) \
180 - $(cabal_flag conduit with_conduit) \
181 - $(cabal_flag timezone with_datezone) \
182 - $(cabal_flag dbus with_dbus) \
183 - $(cabal_flag inotify with_inotify) \
184 - $(cabal_flag wifi with_iwlib) \
185 - $(cabal_flag mpd with_mpd) \
186 - $(cabal_flag mpris with_mpris) \
187 - --flag=with_threaded \
188 - --flag=with_utf8 \
189 - $(cabal_flag uvmeter with_uvmeter) \
190 - $(cabal_flag xft with_xft) \
191 - $(cabal_flag xpm with_xpm)
192 -}
193 -
194 -src_install() {
195 - cabal_src_install
196 -
197 - dodoc samples/xmobar.config readme.md news.md
198 -}
199
200 diff --git a/x11-misc/xmobar/xmobar-0.35.1.ebuild b/x11-misc/xmobar/xmobar-0.35.1.ebuild
201 deleted file mode 100644
202 index 50130b0d928..00000000000
203 --- a/x11-misc/xmobar/xmobar-0.35.1.ebuild
204 +++ /dev/null
205 @@ -1,99 +0,0 @@
206 -# Copyright 1999-2020 Gentoo Authors
207 -# Distributed under the terms of the GNU General Public License v2
208 -
209 -EAPI=7
210 -
211 -# ebuild generated by hackport 0.6.4.9999
212 -#hackport: flags: -all_extensions,+with_threaded,+with_utf8,with_iwlib:iwlib,with_alsa:alsa,with_xft:xft,with_datezone:timezone,with_dbus:dbus,with_mpd:mpd,with_inotify:inotify,with_mpris:mpris,with_xpm:xpm,with_nl80211:wifi
213 -
214 -CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
215 -inherit haskell-cabal
216 -
217 -DESCRIPTION="A Minimalistic Text Based Status Bar"
218 -HOMEPAGE="http://xmobar.org"
219 -SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
220 -
221 -LICENSE="BSD"
222 -SLOT="0/${PV}"
223 -KEYWORDS="~amd64 ~x86"
224 -IUSE="alsa dbus inotify iwlib mpd mpris +rtsopts timezone uvmeter +weather wifi xft xpm"
225 -
226 -RDEPEND="dev-haskell/async:=[profile?]
227 - >=dev-haskell/extensible-exceptions-0.1:=[profile?] <dev-haskell/extensible-exceptions-0.2:=[profile?]
228 - >=dev-haskell/mtl-2.1:=[profile?] <dev-haskell/mtl-2.3:=[profile?]
229 - dev-haskell/old-locale:=[profile?]
230 - >=dev-haskell/parsec-3.1:=[profile?] <dev-haskell/parsec-3.2:=[profile?]
231 - >=dev-haskell/parsec-numbers-0.1.0:=[profile?]
232 - dev-haskell/regex-compat:=[profile?]
233 - >=dev-haskell/stm-2.3:=[profile?] <dev-haskell/stm-2.6:=[profile?]
234 - >=dev-haskell/utf8-string-0.3:=[profile?] <dev-haskell/utf8-string-1.1:=[profile?]
235 - >=dev-haskell/x11-1.6.1:=[profile?]
236 - >=dev-lang/ghc-8.4.3:=
237 - x11-libs/libXrandr
238 - x11-libs/libXrender
239 - alsa? ( >=dev-haskell/alsa-core-0.5:=[profile?] <dev-haskell/alsa-core-0.6:=[profile?]
240 - >=dev-haskell/alsa-mixer-0.3:=[profile?] <dev-haskell/alsa-mixer-0.4:=[profile?] )
241 - dbus? ( >=dev-haskell/dbus-1:=[profile?]
242 - weather? ( dev-haskell/http-client-tls:=[profile?]
243 - dev-haskell/http-conduit:=[profile?]
244 - dev-haskell/http-types:=[profile?] )
245 - xpm? ( x11-libs/libXpm ) )
246 - !dbus? ( !uvmeter? ( weather? ( !xpm? ( dev-haskell/http-client-tls:=[profile?]
247 - dev-haskell/http-conduit:=[profile?]
248 - dev-haskell/http-types:=[profile?] ) ) ) )
249 - inotify? ( >=dev-haskell/hinotify-0.3:=[profile?] <dev-haskell/hinotify-0.5:=[profile?] )
250 - iwlib? ( >=dev-haskell/iwlib-0.1.0:=[profile?] <dev-haskell/iwlib-0.2:=[profile?]
251 - net-wireless/wireless-tools )
252 - !iwlib? ( wifi? ( >=dev-haskell/cereal-0.5.8.1:=[profile?]
253 - >=dev-haskell/netlink-1.1.1.0:=[profile?] ) )
254 - mpd? ( >=dev-haskell/libmpd-0.9.0.10:=[profile?] )
255 - mpris? ( >=dev-haskell/dbus-1:=[profile?]
256 - !dbus? ( !uvmeter? ( weather? ( dev-haskell/http-client-tls:=[profile?]
257 - dev-haskell/http-conduit:=[profile?]
258 - dev-haskell/http-types:=[profile?] ) ) )
259 - xpm? ( x11-libs/libXpm
260 - weather? ( dev-haskell/http-client-tls:=[profile?]
261 - dev-haskell/http-conduit:=[profile?]
262 - dev-haskell/http-types:=[profile?] ) )
263 - !xpm? ( uvmeter? ( weather? ( dev-haskell/http-client-tls:=[profile?] ) ) ) )
264 - !mpris? ( !dbus? ( weather? ( dev-haskell/http-client-tls:=[profile?] )
265 - xpm? ( x11-libs/libXpm
266 - weather? ( dev-haskell/http-conduit:=[profile?]
267 - dev-haskell/http-types:=[profile?] ) ) ) )
268 - timezone? ( >=dev-haskell/timezone-olson-0.1:=[profile?] <dev-haskell/timezone-olson-0.3:=[profile?]
269 - >=dev-haskell/timezone-series-0.1:=[profile?] <dev-haskell/timezone-series-0.2:=[profile?] )
270 - uvmeter? ( dev-haskell/http-conduit:=[profile?]
271 - dev-haskell/http-types:=[profile?] )
272 - xft? ( >=dev-haskell/x11-xft-0.2:=[profile?] <dev-haskell/x11-xft-0.4:=[profile?] )
273 -"
274 -DEPEND="${RDEPEND}
275 - >=dev-haskell/cabal-2.2.0.1
276 - test? ( >=dev-haskell/hspec-2 <dev-haskell/hspec-3
277 - dev-haskell/temporary )
278 -"
279 -
280 -src_configure() {
281 - haskell-cabal_src_configure \
282 - --flag=-all_extensions \
283 - $(cabal_flag alsa with_alsa) \
284 - $(cabal_flag timezone with_datezone) \
285 - $(cabal_flag dbus with_dbus) \
286 - $(cabal_flag inotify with_inotify) \
287 - $(cabal_flag iwlib with_iwlib) \
288 - $(cabal_flag mpd with_mpd) \
289 - $(cabal_flag mpris with_mpris) \
290 - $(cabal_flag wifi with_nl80211) \
291 - $(cabal_flag rtsopts with_rtsopts) \
292 - --flag=with_threaded \
293 - --flag=with_utf8 \
294 - $(cabal_flag uvmeter with_uvmeter) \
295 - $(cabal_flag weather with_weather) \
296 - $(cabal_flag xft with_xft) \
297 - $(cabal_flag xpm with_xpm)
298 -}
299 -
300 -src_install() {
301 - cabal_src_install
302 -
303 - dodoc examples/xmobar.config examples/xmobar.hs readme.md changelog.md
304 -}