Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/yabar/
Date: Thu, 01 Aug 2019 13:01:56
Message-Id: 1564664490.18b417e3c03a3d823c8e54cd63cd675885769910.juippis@gentoo
1 commit: 18b417e3c03a3d823c8e54cd63cd675885769910
2 Author: Jake Lilly <lillyjsm <AT> gmail <DOT> com>
3 AuthorDate: Fri Jul 19 03:46:08 2019 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 1 13:01:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18b417e3
7
8 x11-misc/yabar: new package
9
10 A modern and lightweight status bar for X window managers
11
12 Bug: https://bugs.gentoo.org/658102
13 Signed-off-by: Jake Lilly <lillyjsm <AT> gmail.com>
14 Package-Manager: Portage-2.3.66, Repoman-2.3.11
15 Closes: https://github.com/gentoo/gentoo/pull/12471
16 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
17
18 x11-misc/yabar/Manifest | 1 +
19 x11-misc/yabar/metadata.xml | 21 ++++++++++
20 x11-misc/yabar/yabar-0.4.0_p20190316.ebuild | 61 +++++++++++++++++++++++++++++
21 3 files changed, 83 insertions(+)
22
23 diff --git a/x11-misc/yabar/Manifest b/x11-misc/yabar/Manifest
24 new file mode 100644
25 index 00000000000..64629c004de
26 --- /dev/null
27 +++ b/x11-misc/yabar/Manifest
28 @@ -0,0 +1 @@
29 +DIST yabar-0.4.0_p20190316.tar.gz 892725 BLAKE2B eb14b06327533034756885c68ab03b1ff049c987d1dac6d083c553646cd178210429d9457c1067db3211fcb39e9814a260aed201dea4e6410544b9247c5dee93 SHA512 f93250605c5b56d64c7ec6a7e7faa6120cdc06191ddafb13822875fd98b1b7a1822d9b93b62c49c302b1d4bffb14a200feed937efb0b11711de7159ce83eb7c5
30
31 diff --git a/x11-misc/yabar/metadata.xml b/x11-misc/yabar/metadata.xml
32 new file mode 100644
33 index 00000000000..e6d7b0c5568
34 --- /dev/null
35 +++ b/x11-misc/yabar/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>lillyjsm@×××××.com</email>
42 + <name>Jake Lilly</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="playerctl">
50 + Uses <pkg>media-sound/playerctl</pkg> to retrieve the name of the currently
51 + played song
52 + </flag>
53 + </use>
54 + <upstream>
55 + <remote-id type="github">geommer/yabar</remote-id>
56 + </upstream>
57 +</pkgmetadata>
58
59 diff --git a/x11-misc/yabar/yabar-0.4.0_p20190316.ebuild b/x11-misc/yabar/yabar-0.4.0_p20190316.ebuild
60 new file mode 100644
61 index 00000000000..b9fe1902987
62 --- /dev/null
63 +++ b/x11-misc/yabar/yabar-0.4.0_p20190316.ebuild
64 @@ -0,0 +1,61 @@
65 +# Copyright 2019 Gentoo Authors
66 +# Distributed under the terms of the GNU General Public License v2
67 +
68 +EAPI=7
69 +
70 +COMMIT="a0d3fdfed992149b741eb8fcf53f02b5d1a6142e"
71 +DESCRIPTION="A modern and lightweight status bar for X window managers"
72 +HOMEPAGE="https://github.com/geommer/yabar"
73 +SRC_URI="https://github.com/geommer/yabar/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
74 +
75 +LICENSE="MIT"
76 +SLOT="0"
77 +KEYWORDS="~amd64"
78 +IUSE="playerctl"
79 +
80 +DEPEND="
81 + app-text/asciidoc
82 + dev-libs/libconfig:=
83 + media-libs/alsa-lib
84 + net-wireless/wireless-tools
85 + x11-libs/cairo[xcb]
86 + x11-libs/gdk-pixbuf:2
87 + x11-libs/libxkbcommon[X]
88 + x11-libs/pango
89 + x11-libs/xcb-util-wm
90 + playerctl? ( media-sound/playerctl )
91 +"
92 +RDEPEND="${DEPEND}"
93 +
94 +S="${WORKDIR}/${PN}-${COMMIT}"
95 +
96 +src_prepare() {
97 + default
98 + # Respect CFLAGS and LDFLAGS
99 + # Declare VERSION without relying on git
100 + # Replace playerctl dependency option with basename
101 + sed -i -e "s:-flto -O2::g" -e "s:-Wall::" \
102 + -e "s:\$(shell git describe):0.4.0-179-ga0d3fdf:" \
103 + -e "s:^DEPS += playerctl-1.0:DEPS += playerctl:" \
104 + Makefile || die "Failed to update Makefile"
105 +}
106 +
107 +src_compile() {
108 + if use playerctl; then
109 + emake PLAYERCTL=1
110 + else
111 + emake
112 + fi
113 +}
114 +
115 +src_install() {
116 + default
117 + docinto examples
118 + dodoc examples/example.config
119 + docompress -x "/usr/share/doc/${PF}/examples"
120 +}
121 +
122 +pkg_postinst() {
123 + elog "An example yabar configuration file can be found in"
124 + elog "the following path: /usr/share/doc/${PF}/examples"
125 +}