1 |
commit: 6d597a32e22e77dc620678702aad9c14e44d2978 |
2 |
Author: Kajzer <kajzersoze72 <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri May 4 10:59:23 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 4 21:05:07 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d597a32 |
7 |
|
8 |
x11-misc/polybar: new package. |
9 |
|
10 |
Polybar is a fast and easy-to-use tool for creating status bars. |
11 |
|
12 |
Closes: https://github.com/gentoo/gentoo/pull/8244 |
13 |
Closes: https://bugs.gentoo.org/643286 |
14 |
|
15 |
x11-misc/polybar/Manifest | 3 ++ |
16 |
x11-misc/polybar/metadata.xml | 21 ++++++++++++ |
17 |
x11-misc/polybar/polybar-3.1.0.ebuild | 63 +++++++++++++++++++++++++++++++++++ |
18 |
x11-misc/polybar/polybar-9999.ebuild | 48 ++++++++++++++++++++++++++ |
19 |
4 files changed, 135 insertions(+) |
20 |
|
21 |
diff --git a/x11-misc/polybar/Manifest b/x11-misc/polybar/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..4648dddbc07 |
24 |
--- /dev/null |
25 |
+++ b/x11-misc/polybar/Manifest |
26 |
@@ -0,0 +1,3 @@ |
27 |
+DIST i3ipcpp-0.7.1.tar.gz 191417 BLAKE2B 62b76a0921c78f374309d26856c01d1467b8bd181ce922fd47daec406afda9d76eea9a1f473b4899e22f99e2ef36fc70f72db1bb17eb1f3e71a8431c2634b915 SHA512 ef9f591bb4436916ad038bcb0c15ea3415d1978ff264fb276108ddac89c98515c464fbf252429f6a76589cb78e1434adba2efefb5a844dadad0e261f3806fb72 |
28 |
+DIST polybar-3.1.0.tar.gz 418298 BLAKE2B 1c7394a17ff1ec5b0dec519b7aa58e63cfcec0f104d4302051f6e12753b7074c3d85072a3d78e7ce135c53d4ddd4a6f68ea61ffb7b2ad04997bbf0c836115046 SHA512 6d8759d9f750c2abfa79fe735615b0ed3d1827e3a88561317712c6f02cb32a0a77726f97cb419f3a040ae9085a34a23cb1aad0aacf3f14e56c542977b89036b2 |
29 |
+DIST xpp-1.4.0.tar.gz 84095 BLAKE2B 2af4221953abe7f40473c55cd50c608b54ebc85a62be65af987ed5e6c5eaf56fbd92531788becf39ba5ad52099ac78f36e9b2a2515b473f4d86ed5fda3fa5065 SHA512 d34cbbe2391db36db7dffac0415d26b7487536e97c4d7efd472ab0aeffa4c8e757ee030b05e2aa1cfa8a591ee591bb96a6db7eb9fa5850027f958e92f078739c |
30 |
|
31 |
diff --git a/x11-misc/polybar/metadata.xml b/x11-misc/polybar/metadata.xml |
32 |
new file mode 100644 |
33 |
index 00000000000..4132afb3b38 |
34 |
--- /dev/null |
35 |
+++ b/x11-misc/polybar/metadata.xml |
36 |
@@ -0,0 +1,21 @@ |
37 |
+<?xml version="1.0" encoding="UTF-8"?> |
38 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
39 |
+<pkgmetadata> |
40 |
+ <maintainer type="person"> |
41 |
+ <email>kajzersoze72@×××××.com</email> |
42 |
+ <name>Kajzer</name> |
43 |
+ </maintainer> |
44 |
+ <maintainer type="project"> |
45 |
+ <email>proxy-maint@g.o</email> |
46 |
+ <name>Proxy Maintainers</name> |
47 |
+ </maintainer> |
48 |
+ <use> |
49 |
+ <flag name="i3wm">Add support for i3 window manager</flag> |
50 |
+ <flag name="ipc">Add support for Inter-Process Messaging</flag> |
51 |
+ <flag name="mpd">Add support for Music Player Daemon</flag> |
52 |
+ <flag name="network">Enable network support</flag> |
53 |
+ </use> |
54 |
+ <upstream> |
55 |
+ <remote-id type="github">jaagr/polybar</remote-id> |
56 |
+ </upstream> |
57 |
+</pkgmetadata> |
58 |
|
59 |
diff --git a/x11-misc/polybar/polybar-3.1.0.ebuild b/x11-misc/polybar/polybar-3.1.0.ebuild |
60 |
new file mode 100644 |
61 |
index 00000000000..a04e956a0e9 |
62 |
--- /dev/null |
63 |
+++ b/x11-misc/polybar/polybar-3.1.0.ebuild |
64 |
@@ -0,0 +1,63 @@ |
65 |
+# Copyright 1999-2018 Gentoo Foundation |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+ |
68 |
+EAPI=6 |
69 |
+PYTHON_COMPAT=( python2_7 ) |
70 |
+ |
71 |
+inherit cmake-utils python-single-r1 |
72 |
+ |
73 |
+XPP_VERSION="1.4.0" |
74 |
+I3IPCPP_VERSION="0.7.1" |
75 |
+ |
76 |
+DESCRIPTION="A fast and easy-to-use tool for creating status bars" |
77 |
+HOMEPAGE="https://github.com/jaagr/polybar" |
78 |
+SRC_URI="https://github.com/jaagr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz |
79 |
+ https://github.com/jaagr/xpp/archive/${XPP_VERSION}.tar.gz -> xpp-${XPP_VERSION}.tar.gz |
80 |
+ https://github.com/jaagr/i3ipcpp/archive/v${I3IPCPP_VERSION}.tar.gz -> i3ipcpp-${I3IPCPP_VERSION}.tar.gz |
81 |
+" |
82 |
+ |
83 |
+LICENSE="MIT" |
84 |
+SLOT="0" |
85 |
+KEYWORDS="~amd64 ~x86" |
86 |
+ |
87 |
+IUSE="alsa curl i3wm ipc mpd network" |
88 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
89 |
+ |
90 |
+DEPEND=" |
91 |
+ ${PYTHON_DEPS} |
92 |
+ x11-base/xcb-proto |
93 |
+ x11-libs/libxcb |
94 |
+ x11-libs/xcb-util-wm |
95 |
+ x11-libs/xcb-util-image |
96 |
+ alsa? ( media-libs/alsa-lib ) |
97 |
+ curl? ( net-misc/curl ) |
98 |
+ i3wm? ( dev-libs/jsoncpp ) |
99 |
+ mpd? ( media-libs/libmpdclient ) |
100 |
+ network? ( net-wireless/wireless-tools ) |
101 |
+" |
102 |
+ |
103 |
+RDEPEND="${DEPEND}" |
104 |
+ |
105 |
+src_prepare() { |
106 |
+ default |
107 |
+ |
108 |
+ rmdir "${S}"/lib/xpp || die |
109 |
+ mv "${WORKDIR}"/xpp-$XPP_VERSION "${S}"/lib/xpp || die |
110 |
+ |
111 |
+ rmdir "${S}"/lib/i3ipcpp || die |
112 |
+ mv "${WORKDIR}"/i3ipcpp-$I3IPCPP_VERSION "${S}"/lib/i3ipcpp || die |
113 |
+ |
114 |
+ sed -i "s/.*cpp_error,.*/&\n\t 'eventstruct' : lambda x, y: None,/" lib/xpp/generators/cpp_client.py || die "sed failed" |
115 |
+} |
116 |
+ |
117 |
+src_configure() { |
118 |
+ local mycmakeargs=( |
119 |
+ -DENABLE_ALSA="$(usex alsa)" |
120 |
+ -DENABLE_CURL="$(usex curl)" |
121 |
+ -DENABLE_I3="$(usex i3wm)" |
122 |
+ -DBUILD_IPC_MSG="$(usex ipc)" |
123 |
+ -DENABLE_MPD="$(usex mpd)" |
124 |
+ -DENABLE_NETWORK="$(usex network)" |
125 |
+ ) |
126 |
+ cmake-utils_src_configure |
127 |
+} |
128 |
|
129 |
diff --git a/x11-misc/polybar/polybar-9999.ebuild b/x11-misc/polybar/polybar-9999.ebuild |
130 |
new file mode 100644 |
131 |
index 00000000000..b2188834007 |
132 |
--- /dev/null |
133 |
+++ b/x11-misc/polybar/polybar-9999.ebuild |
134 |
@@ -0,0 +1,48 @@ |
135 |
+# Copyright 1999-2018 Gentoo Foundation |
136 |
+# Distributed under the terms of the GNU General Public License v2 |
137 |
+ |
138 |
+EAPI=6 |
139 |
+PYTHON_COMPAT=( python2_7 ) |
140 |
+ |
141 |
+inherit cmake-utils git-r3 python-single-r1 |
142 |
+ |
143 |
+DESCRIPTION="A fast and easy-to-use tool for creating status bars" |
144 |
+HOMEPAGE="https://github.com/jaagr/polybar" |
145 |
+EGIT_REPO_URI="https://github.com/jaagr/${PN}.git" |
146 |
+EGIT_CLONE_TYPE="shallow" |
147 |
+ |
148 |
+LICENSE="MIT" |
149 |
+SLOT="0" |
150 |
+KEYWORDS="" |
151 |
+ |
152 |
+IUSE="alsa curl i3wm ipc mpd network pulseaudio" |
153 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
154 |
+ |
155 |
+DEPEND=" |
156 |
+ ${PYTHON_DEPS} |
157 |
+ x11-base/xcb-proto |
158 |
+ x11-libs/libxcb |
159 |
+ x11-libs/xcb-util-wm |
160 |
+ x11-libs/xcb-util-image |
161 |
+ alsa? ( media-libs/alsa-lib ) |
162 |
+ curl? ( net-misc/curl ) |
163 |
+ i3wm? ( dev-libs/jsoncpp ) |
164 |
+ mpd? ( media-libs/libmpdclient ) |
165 |
+ network? ( net-wireless/wireless-tools ) |
166 |
+ pulseaudio? ( media-sound/pulseaudio ) |
167 |
+" |
168 |
+ |
169 |
+RDEPEND="${DEPEND}" |
170 |
+ |
171 |
+src_configure() { |
172 |
+ local mycmakeargs=( |
173 |
+ -DENABLE_ALSA="$(usex alsa)" |
174 |
+ -DENABLE_CURL="$(usex curl)" |
175 |
+ -DENABLE_I3="$(usex i3wm)" |
176 |
+ -DBUILD_IPC_MSG="$(usex ipc)" |
177 |
+ -DENABLE_MPD="$(usex mpd)" |
178 |
+ -DENABLE_NETWORK="$(usex network)" |
179 |
+ -DENABLE_PULSEAUDIO="$(usex pulseaudio)" |
180 |
+ ) |
181 |
+ cmake-utils_src_configure |
182 |
+} |