Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xbattbar/
Date: Thu, 02 Jan 2020 10:19:58
Message-Id: 1577960391.b208ba235be6310abf4997e925ea467e8e478522.jer@gentoo
1 commit: b208ba235be6310abf4997e925ea467e8e478522
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 2 10:13:02 2020 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 2 10:19:51 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b208ba23
7
8 x11-misc/xbattbar: Version 1.4.9
9
10 Package-Manager: Portage-2.3.84, Repoman-2.3.20
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 x11-misc/xbattbar/Manifest | 1 +
14 x11-misc/xbattbar/xbattbar-1.4.9.ebuild | 50 +++++++++++++++++++++++++++++++++
15 2 files changed, 51 insertions(+)
16
17 diff --git a/x11-misc/xbattbar/Manifest b/x11-misc/xbattbar/Manifest
18 index bc459cb5132..4c1741883e7 100644
19 --- a/x11-misc/xbattbar/Manifest
20 +++ b/x11-misc/xbattbar/Manifest
21 @@ -1 +1,2 @@
22 DIST xbattbar_1.4.8.orig.tar.gz 16254 BLAKE2B 3e2215bcee10f140a078266e128ae17185e5900090b057e845f966098c69371ab5115d3cdc620a87e27e2dd223a83ab33e5fef55119cdbac68491c0e88e63585 SHA512 1ec535ba997da4aa08b225b61b22eb87d74fc15c522d30f5361e1f56db6fd774f4230a95afdb7f1170144c0939724a80118c7289ea50d027a76649fa20164191
23 +DIST xbattbar_1.4.9.orig.tar.gz 19105 BLAKE2B e33631f02266150fc494312c0a78cba145813e3f19ffa4a8fd46ce3adde3e50cb820617e5118a9bb6935fb7be26840e6a9525bf95e2f2fbf585e4e2542d35228 SHA512 e6d0efe0a97b2cb7d0c8a992b7a68a26155dfb625649a5fc8abc4bc37b2c286224185b57d6b2d3671f571690d278970976da5380c1d1bbcd9212e2001f9c40b8
24
25 diff --git a/x11-misc/xbattbar/xbattbar-1.4.9.ebuild b/x11-misc/xbattbar/xbattbar-1.4.9.ebuild
26 new file mode 100644
27 index 00000000000..e246e6005e6
28 --- /dev/null
29 +++ b/x11-misc/xbattbar/xbattbar-1.4.9.ebuild
30 @@ -0,0 +1,50 @@
31 +# Copyright 1999-2020 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +inherit flag-o-matic multilib toolchain-funcs
36 +
37 +DESCRIPTION="Advanced Power Management battery status display for X"
38 +HOMEPAGE="https://packages.qa.debian.org/x/xbattbar.html"
39 +SRC_URI="mirror://debian/pool/main/x/${PN}/${PN}_${PV}.orig.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~ppc ~x86"
44 +
45 +DEPEND="
46 + dev-lang/perl
47 + x11-libs/libX11
48 +"
49 +RDEPEND="
50 + ${DEPEND}
51 + !ppc? ( >=sys-power/acpi-1.5 )
52 +"
53 +PATCHES=(
54 + "${FILESDIR}"/${PN}-1.4.5.patch
55 + "${FILESDIR}"/${PN}-1.4.8-const.patch
56 +)
57 +
58 +src_prepare() {
59 + default
60 +
61 + sed -i \
62 + -e "s:usr/lib:usr/$(get_libdir):" \
63 + xbattbar.c || die
64 +
65 + tc-export PKG_CONFIG
66 +}
67 +
68 +src_compile() {
69 + use kernel_linux && append-flags -Dlinux
70 +
71 + emake \
72 + CC=$(tc-getCC) \
73 + LIBDIR="$(get_libdir)" \
74 + LDFLAGS="${LDFLAGS}"
75 +}
76 +
77 +src_install() {
78 + emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install
79 + dodoc README
80 +}