1 |
commit: 2ee58aa265a605551da1c51710f286e675090663 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 15 08:04:03 2020 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 15 08:04:32 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ee58aa2 |
7 |
|
8 |
x11-misc/xmonad-log-applet: remove masled package |
9 |
|
10 |
Closes: https://bugs.gentoo.org/729492 |
11 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
12 |
|
13 |
profiles/package.mask | 6 --- |
14 |
x11-misc/xmonad-log-applet/Manifest | 1 - |
15 |
x11-misc/xmonad-log-applet/files/xmonad.hs | 60 ---------------------- |
16 |
x11-misc/xmonad-log-applet/metadata.xml | 16 ------ |
17 |
.../xmonad-log-applet-2.0.0-r301.ebuild | 47 ----------------- |
18 |
5 files changed, 130 deletions(-) |
19 |
|
20 |
diff --git a/profiles/package.mask b/profiles/package.mask |
21 |
index 465be38f686..d79e5a7e714 100644 |
22 |
--- a/profiles/package.mask |
23 |
+++ b/profiles/package.mask |
24 |
@@ -743,12 +743,6 @@ dev-go/goptlib |
25 |
# Removal in 30 days |
26 |
dev-perl/gnome2-perl |
27 |
|
28 |
-# Sergei Trofimovich <slyfox@g.o> (2020-07-05) |
29 |
-# No upstream activity in past few years. |
30 |
-# Needs porting to gtk3/fxce4panel-4.15: bug #729492. |
31 |
-# Removal in 30 days. |
32 |
-x11-misc/xmonad-log-applet |
33 |
- |
34 |
# Michał Górny <mgorny@g.o> (2020-07-04) |
35 |
# Unmaintained. Requires scipy-python2. Current version is from 2015, |
36 |
# latest upstream release from 2017. The only revdep is masked |
37 |
|
38 |
diff --git a/x11-misc/xmonad-log-applet/Manifest b/x11-misc/xmonad-log-applet/Manifest |
39 |
deleted file mode 100644 |
40 |
index 44bdd2c505d..00000000000 |
41 |
--- a/x11-misc/xmonad-log-applet/Manifest |
42 |
+++ /dev/null |
43 |
@@ -1 +0,0 @@ |
44 |
-DIST xmonad-log-applet-2.0.0.tar.gz 82881 BLAKE2B a059158558cc2fcb150e90cbd055cf50367dbed464c46891b6c63d49d2b5e2974ea3fc859afe8f1115af78fae60e639bde0aec37af8be693720eca80905712b8 SHA512 1885ac97569d909ab1c6af99d9b271d0f782de905dfe035df27524f428d09cefa20a468103477132656dea8945faf886270fd70a49e5a08be538e04f3f05baca |
45 |
|
46 |
diff --git a/x11-misc/xmonad-log-applet/files/xmonad.hs b/x11-misc/xmonad-log-applet/files/xmonad.hs |
47 |
deleted file mode 100644 |
48 |
index 54b0025a97c..00000000000 |
49 |
--- a/x11-misc/xmonad-log-applet/files/xmonad.hs |
50 |
+++ /dev/null |
51 |
@@ -1,60 +0,0 @@ |
52 |
-import XMonad |
53 |
-import XMonad.Config.Gnome |
54 |
-import XMonad.Hooks.DynamicLog |
55 |
- |
56 |
-import Control.OldException |
57 |
- |
58 |
-import DBus |
59 |
-import DBus.Connection |
60 |
-import DBus.Message |
61 |
- |
62 |
-main :: IO () |
63 |
-main = withConnection Session $ \dbus -> do |
64 |
- getWellKnownName dbus |
65 |
- xmonad $ gnomeConfig |
66 |
- { logHook = dynamicLogWithPP (prettyPrinter dbus) |
67 |
- } |
68 |
- |
69 |
-prettyPrinter :: Connection -> PP |
70 |
-prettyPrinter dbus = defaultPP |
71 |
- { ppOutput = dbusOutput dbus |
72 |
- , ppTitle = pangoSanitize |
73 |
- , ppCurrent = pangoColor "green" . wrap "[" "]" . pangoSanitize |
74 |
- , ppVisible = pangoColor "yellow" . wrap "(" ")" . pangoSanitize |
75 |
- , ppHidden = const "" |
76 |
- , ppUrgent = pangoColor "red" |
77 |
- , ppLayout = const "" |
78 |
- , ppSep = " " |
79 |
- } |
80 |
- |
81 |
-getWellKnownName :: Connection -> IO () |
82 |
-getWellKnownName dbus = tryGetName `catchDyn` (\(DBus.Error _ _) -> getWellKnownName dbus) |
83 |
- where |
84 |
- tryGetName = do |
85 |
- namereq <- newMethodCall serviceDBus pathDBus interfaceDBus "RequestName" |
86 |
- addArgs namereq [String "org.xmonad.Log", Word32 5] |
87 |
- sendWithReplyAndBlock dbus namereq 0 |
88 |
- return () |
89 |
- |
90 |
-dbusOutput :: Connection -> String -> IO () |
91 |
-dbusOutput dbus str = do |
92 |
- msg <- newSignal "/org/xmonad/Log" "org.xmonad.Log" "Update" |
93 |
- addArgs msg [String ("<b>" ++ str ++ "</b>")] |
94 |
- -- If the send fails, ignore it. |
95 |
- send dbus msg 0 `catchDyn` (\(DBus.Error _ _) -> return 0) |
96 |
- return () |
97 |
- |
98 |
-pangoColor :: String -> String -> String |
99 |
-pangoColor fg = wrap left right |
100 |
- where |
101 |
- left = "<span foreground=\"" ++ fg ++ "\">" |
102 |
- right = "</span>" |
103 |
- |
104 |
-pangoSanitize :: String -> String |
105 |
-pangoSanitize = foldr sanitize "" |
106 |
- where |
107 |
- sanitize '>' xs = ">" ++ xs |
108 |
- sanitize '<' xs = "<" ++ xs |
109 |
- sanitize '\"' xs = """ ++ xs |
110 |
- sanitize '&' xs = "&" ++ xs |
111 |
- sanitize x xs = x:xs |
112 |
|
113 |
diff --git a/x11-misc/xmonad-log-applet/metadata.xml b/x11-misc/xmonad-log-applet/metadata.xml |
114 |
deleted file mode 100644 |
115 |
index e8a65559079..00000000000 |
116 |
--- a/x11-misc/xmonad-log-applet/metadata.xml |
117 |
+++ /dev/null |
118 |
@@ -1,16 +0,0 @@ |
119 |
-<?xml version="1.0" encoding="UTF-8"?> |
120 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
121 |
-<pkgmetadata> |
122 |
- <maintainer type="project"> |
123 |
- <email>haskell@g.o</email> |
124 |
- </maintainer> |
125 |
- <maintainer type="person"> |
126 |
- <email>flo@×××××××××.eu</email> |
127 |
- </maintainer> |
128 |
- <longdescription> |
129 |
- xmonad-log-applet is for Xmonad users who find the GNOME, MATE, or Xfce panel useful. The applet will show the active workspaces, the title of the selected window or whatever information you send it from your xmonad.hs. |
130 |
- </longdescription> |
131 |
- <upstream> |
132 |
- <remote-id type="github">alexkay/xmonad-log-applet</remote-id> |
133 |
- </upstream> |
134 |
-</pkgmetadata> |
135 |
|
136 |
diff --git a/x11-misc/xmonad-log-applet/xmonad-log-applet-2.0.0-r301.ebuild b/x11-misc/xmonad-log-applet/xmonad-log-applet-2.0.0-r301.ebuild |
137 |
deleted file mode 100644 |
138 |
index 9038beb0ce0..00000000000 |
139 |
--- a/x11-misc/xmonad-log-applet/xmonad-log-applet-2.0.0-r301.ebuild |
140 |
+++ /dev/null |
141 |
@@ -1,47 +0,0 @@ |
142 |
-# Copyright 1999-2018 Gentoo Foundation |
143 |
-# Distributed under the terms of the GNU General Public License v2 |
144 |
- |
145 |
-EAPI=6 |
146 |
-inherit autotools gnome2 |
147 |
- |
148 |
-DESCRIPTION="Gnome and XFCE applet for displaying XMonad log" |
149 |
-HOMEPAGE="https://github.com/alexkay/xmonad-log-applet" |
150 |
-SRC_URI="https://github.com/downloads/alexkay/${PN}/${P}.tar.gz" |
151 |
-LICENSE="BSD" |
152 |
- |
153 |
-SLOT="0" |
154 |
-KEYWORDS="~amd64 ~x86" |
155 |
-IUSE="" |
156 |
- |
157 |
-RESTRICT="mirror" |
158 |
- |
159 |
-RDEPEND=" |
160 |
- sys-apps/dbus |
161 |
- xfce-base/xfce4-panel |
162 |
- dev-libs/dbus-glib |
163 |
- dev-libs/glib:2 |
164 |
- dev-haskell/dbus |
165 |
- x11-libs/gtk+:3 |
166 |
-" |
167 |
-DEPEND="${RDEPEND}" |
168 |
- |
169 |
-src_prepare() { |
170 |
- eautoreconf |
171 |
- gnome2_src_prepare |
172 |
-} |
173 |
- |
174 |
-src_configure() { |
175 |
- gnome2_src_configure --sysconfdir=/etc --with-panel=xfce4 |
176 |
-} |
177 |
- |
178 |
-src_install() { |
179 |
- gnome2_src_install |
180 |
- dodoc AUTHORS.md README.md |
181 |
- dodoc "${FILESDIR}"/xmonad.hs |
182 |
-} |
183 |
- |
184 |
-pkg_postinst() { |
185 |
- gnome2_pkg_postinst |
186 |
- elog "Remember to update your xmonad.hs accordingly" |
187 |
- elog "a sample xmonad.hs is provided in /usr/share/doc/${PF}" |
188 |
-} |