Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xmobar/
Date: Sun, 31 Jul 2022 01:30:28
Message-Id: 1659230978.32cfc09a0bb09a6780867efc7461bbc706d6b307.sam@gentoo
1 commit: 32cfc09a0bb09a6780867efc7461bbc706d6b307
2 Author: Jack Todaro <solpeth <AT> posteo <DOT> org>
3 AuthorDate: Sat Jul 30 22:07:42 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 31 01:29:38 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32cfc09a
7
8 x11-misc/xmobar: add 0.44.1
9
10 Closes: https://bugs.gentoo.org/847283
11 Signed-off-by: Jack Todaro <solpeth <AT> posteo.org>
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 x11-misc/xmobar/Manifest | 1 +
15 x11-misc/xmobar/metadata.xml | 31 ++++--------
16 x11-misc/xmobar/xmobar-0.44.1.ebuild | 97 ++++++++++++++++++++++++++++++++++++
17 3 files changed, 109 insertions(+), 20 deletions(-)
18
19 diff --git a/x11-misc/xmobar/Manifest b/x11-misc/xmobar/Manifest
20 index 3a0dfd778cd5..840013c22735 100644
21 --- a/x11-misc/xmobar/Manifest
22 +++ b/x11-misc/xmobar/Manifest
23 @@ -1 +1,2 @@
24 DIST xmobar-0.37.tar.gz 139585 BLAKE2B b7f115dc18f1ec6f2dc767c0cf6f4f94a9e3691cd5823302cc033542a10430bd3f29f906c4b1d8705cfae7e999695ac85d03d0c3ecfe4f7efaeac627a5e61d3f SHA512 a2904f3658ea32654ba343cd2c815928900e29e819dbc5ddff931601f42bae244365d2636ffce8b52c4dc57f88f3abebeffc62924fd3b39e197698d7b0da7d5d
25 +DIST xmobar-0.44.1.tar.gz 156756 BLAKE2B bee81627744146989b402ae04d36edb5e4a69686b546457afebad81cda96ece4ce0ace8a2855bd5136610be3fc396c2f62121ea062fffb1ad837145cf3238fdb SHA512 e04f3f9f40ffa4095df2b523916686d93d28b4cbb880f7732cf63d6f1915e721043764b9d723ed8b3c4938c3df749d0e5a9ddb9a9e64a2a015f8f0d6b3f46c97
26
27 diff --git a/x11-misc/xmobar/metadata.xml b/x11-misc/xmobar/metadata.xml
28 index 86ecf67faf16..85386171573c 100644
29 --- a/x11-misc/xmobar/metadata.xml
30 +++ b/x11-misc/xmobar/metadata.xml
31 @@ -6,25 +6,16 @@
32 <name>Gentoo Haskell</name>
33 </maintainer>
34 <use>
35 - <flag name="alsa">Use alsa-mixer to get the volume from soundcards</flag>
36 - <flag name="dbus">Publish a service on the session bus for controlling xmobar</flag>
37 - <flag name="inotify">inotify support (modern Linux only). Required for the Mail and MBox plugins</flag>
38 - <flag name="mpd">Support mpd plugin</flag>
39 - <flag name="timezone">Enables localized date support</flag>
40 - <flag name="mpris">Enables MPRIS v1, v2 support</flag>
41 - <flag name="rtsopts">Reduce process wakekups frequency to decrease CPU usage</flag>
42 - <flag name="uvmeter">Plugin to show UV data for Australia</flag>
43 - <flag name="weather">Enable weather plugin</flag>
44 - <flag name="wifi">Wireless info support via nl80211. Required for the Wireless plugin on systems running Linux</flag>
45 - <flag name="iwlib">Wireless info support via Wext ioctls (deprecated)</flag>
46 - <flag name="xft">Use Xft to render text. UTF-8 support included</flag>
47 - <flag name="xpm">Enable usage of xpm for icons</flag>
48 + <flag name="alsa">Use alsa-mixer to get the volume from soundcards.</flag>
49 + <flag name="dbus">Publish a service on the session bus for controlling xmobar.</flag>
50 + <flag name="mpd">MPD support. Needs libmpd installed.</flag>
51 + <flag name="mpris">MPRIS v1, v2 support.</flag>
52 + <flag name="rtsopts">Use -with-rtsopts=-V0 to reduce wakeups.</flag>
53 + <flag name="timezone">Enables localized date support.</flag>
54 + <flag name="uvmeter">UVMeter only useful to australians.</flag>
55 + <flag name="weather">Enable weather plugin.</flag>
56 + <flag name="wifi">Wireless info support via nl80211. Required for the Wireless plugin on systems running Linux, the kernel.</flag>
57 + <flag name="xft">Use Xft to render text. UTF-8 support included.</flag>
58 + <flag name="xpm">Enable usage of xpm for icons.</flag>
59 </use>
60 - <longdescription>
61 - Xmobar is a minimalistic text based status bar.
62 -
63 - Inspired by the Ion3 status bar, it supports similar
64 - features, like dynamic color management, output templates,
65 - and extensibility through plugins.
66 - </longdescription>
67 </pkgmetadata>
68
69 diff --git a/x11-misc/xmobar/xmobar-0.44.1.ebuild b/x11-misc/xmobar/xmobar-0.44.1.ebuild
70 new file mode 100644
71 index 000000000000..3a1e2ecbeb3f
72 --- /dev/null
73 +++ b/x11-misc/xmobar/xmobar-0.44.1.ebuild
74 @@ -0,0 +1,97 @@
75 +# Copyright 1999-2022 Gentoo Authors
76 +# Distributed under the terms of the GNU General Public License v2
77 +
78 +EAPI=8
79 +
80 +# ebuild generated by hackport 0.7.1.1.9999
81 +#hackport: flags: -all_extensions,+with_threaded,+with_utf8,-with_iwlib,with_nl80211:wifi,+with_inotify
82 +
83 +CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite"
84 +inherit haskell-cabal
85 +
86 +DESCRIPTION="A Minimalistic Text Based Status Bar"
87 +HOMEPAGE="https://codeberg.org/xmobar/xmobar"
88 +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz"
89 +
90 +LICENSE="BSD"
91 +SLOT="0/${PV}"
92 +KEYWORDS="~amd64 ~x86"
93 +IUSE="alsa dbus mpd mpris +rtsopts timezone uvmeter +weather wifi xft xpm"
94 +
95 +RDEPEND=">=dev-haskell/aeson-1.4.7.1:=[profile?]
96 + dev-haskell/async:=[profile?]
97 + >=dev-haskell/extensible-exceptions-0.1:=[profile?] <dev-haskell/extensible-exceptions-0.2:=[profile?]
98 + dev-haskell/old-locale:=[profile?]
99 + >=dev-haskell/parsec-numbers-0.1.0:=[profile?]
100 + dev-haskell/regex-compat:=[profile?]
101 + >=dev-haskell/stm-2.3:=[profile?] <dev-haskell/stm-2.6:=[profile?]
102 + >=dev-haskell/utf8-string-0.3:=[profile?] <dev-haskell/utf8-string-1.1:=[profile?]
103 + >=dev-haskell/x11-1.6.1:=[profile?]
104 + >=dev-lang/ghc-8.4.3:=
105 + x11-libs/libXrandr
106 + x11-libs/libXrender
107 + alsa? ( >=dev-haskell/alsa-core-0.5:=[profile?] <dev-haskell/alsa-core-0.6:=[profile?]
108 + >=dev-haskell/alsa-mixer-0.3:=[profile?] <dev-haskell/alsa-mixer-0.4:=[profile?] )
109 + dbus? ( >=dev-haskell/dbus-1:=[profile?]
110 + weather? ( dev-haskell/http-client-tls:=[profile?]
111 + dev-haskell/http-conduit:=[profile?]
112 + dev-haskell/http-types:=[profile?] )
113 + xpm? ( x11-libs/libXpm ) )
114 + !dbus? ( !uvmeter? ( weather? ( !xpm? ( dev-haskell/http-client-tls:=[profile?]
115 + dev-haskell/http-conduit:=[profile?]
116 + dev-haskell/http-types:=[profile?] ) ) ) )
117 + >=dev-haskell/hinotify-0.3:=[profile?] <dev-haskell/hinotify-0.5:=[profile?]
118 + mpd? ( >=dev-haskell/libmpd-0.9.2.0:=[profile?] )
119 + mpris? ( >=dev-haskell/dbus-1:=[profile?]
120 + !dbus? ( !uvmeter? ( weather? ( dev-haskell/http-client-tls:=[profile?]
121 + dev-haskell/http-conduit:=[profile?]
122 + dev-haskell/http-types:=[profile?] ) ) )
123 + xpm? ( x11-libs/libXpm
124 + weather? ( dev-haskell/http-client-tls:=[profile?]
125 + dev-haskell/http-conduit:=[profile?]
126 + dev-haskell/http-types:=[profile?] ) )
127 + !xpm? ( uvmeter? ( weather? ( dev-haskell/http-client-tls:=[profile?] ) ) ) )
128 + !mpris? ( !dbus? ( weather? ( dev-haskell/http-client-tls:=[profile?] )
129 + xpm? ( x11-libs/libXpm
130 + weather? ( dev-haskell/http-conduit:=[profile?]
131 + dev-haskell/http-types:=[profile?] ) ) ) )
132 + timezone? ( >=dev-haskell/timezone-olson-0.2:=[profile?] <dev-haskell/timezone-olson-0.3:=[profile?]
133 + >=dev-haskell/timezone-series-0.1:=[profile?] <dev-haskell/timezone-series-0.2:=[profile?] )
134 + uvmeter? ( dev-haskell/http-conduit:=[profile?]
135 + dev-haskell/http-types:=[profile?] )
136 + wifi? ( >=dev-haskell/cereal-0.5.8.1:=[profile?]
137 + >=dev-haskell/netlink-1.1.1.0:=[profile?] )
138 + xft? ( >=dev-haskell/x11-xft-0.2:=[profile?] <dev-haskell/x11-xft-0.4:=[profile?] )
139 +"
140 +DEPEND="${RDEPEND}
141 + >=dev-haskell/cabal-2.2.0.1
142 + test? ( >=dev-haskell/hspec-2 <dev-haskell/hspec-3
143 + dev-haskell/temporary )
144 +"
145 +
146 +src_configure() {
147 + haskell-cabal_src_configure \
148 + --flag=-all_extensions \
149 + --flag=-with_iwlib \
150 + --flag=with_inotify \
151 + $(cabal_flag alsa with_alsa) \
152 + $(cabal_flag timezone with_datezone) \
153 + $(cabal_flag dbus with_dbus) \
154 + $(cabal_flag mpd with_mpd) \
155 + $(cabal_flag mpris with_mpris) \
156 + $(cabal_flag wifi with_nl80211) \
157 + $(cabal_flag rtsopts with_rtsopts) \
158 + --flag=with_threaded \
159 + --flag=with_utf8 \
160 + $(cabal_flag uvmeter with_uvmeter) \
161 + $(cabal_flag weather with_weather) \
162 + $(cabal_flag xft with_xft) \
163 + $(cabal_flag xpm with_xpm)
164 +}
165 +
166 +src_install() {
167 + cabal_src_install
168 +
169 +# dodoc readme.md
170 + dodoc examples/xmobar.config examples/xmobar.hs changelog.md
171 +}