diff options
author | Jeroen Roovers <jer@gentoo.org> | 2020-01-02 11:13:02 +0100 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2020-01-02 11:19:51 +0100 |
commit | b208ba235be6310abf4997e925ea467e8e478522 (patch) | |
tree | c55ab96d76da4b17b97e79b25e74acdf0af8b3b8 /x11-misc/xbattbar | |
parent | sys-apps/acl: stable 2.2.53 for hppa, bug #700008 (diff) | |
download | gentoo-b208ba235be6310abf4997e925ea467e8e478522.tar.gz gentoo-b208ba235be6310abf4997e925ea467e8e478522.tar.bz2 gentoo-b208ba235be6310abf4997e925ea467e8e478522.zip |
x11-misc/xbattbar: Version 1.4.9
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'x11-misc/xbattbar')
-rw-r--r-- | x11-misc/xbattbar/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/xbattbar/xbattbar-1.4.9.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/x11-misc/xbattbar/Manifest b/x11-misc/xbattbar/Manifest index bc459cb5132e..4c1741883e79 100644 --- a/x11-misc/xbattbar/Manifest +++ b/x11-misc/xbattbar/Manifest @@ -1 +1,2 @@ DIST xbattbar_1.4.8.orig.tar.gz 16254 BLAKE2B 3e2215bcee10f140a078266e128ae17185e5900090b057e845f966098c69371ab5115d3cdc620a87e27e2dd223a83ab33e5fef55119cdbac68491c0e88e63585 SHA512 1ec535ba997da4aa08b225b61b22eb87d74fc15c522d30f5361e1f56db6fd774f4230a95afdb7f1170144c0939724a80118c7289ea50d027a76649fa20164191 +DIST xbattbar_1.4.9.orig.tar.gz 19105 BLAKE2B e33631f02266150fc494312c0a78cba145813e3f19ffa4a8fd46ce3adde3e50cb820617e5118a9bb6935fb7be26840e6a9525bf95e2f2fbf585e4e2542d35228 SHA512 e6d0efe0a97b2cb7d0c8a992b7a68a26155dfb625649a5fc8abc4bc37b2c286224185b57d6b2d3671f571690d278970976da5380c1d1bbcd9212e2001f9c40b8 diff --git a/x11-misc/xbattbar/xbattbar-1.4.9.ebuild b/x11-misc/xbattbar/xbattbar-1.4.9.ebuild new file mode 100644 index 000000000000..e246e6005e66 --- /dev/null +++ b/x11-misc/xbattbar/xbattbar-1.4.9.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit flag-o-matic multilib toolchain-funcs + +DESCRIPTION="Advanced Power Management battery status display for X" +HOMEPAGE="https://packages.qa.debian.org/x/xbattbar.html" +SRC_URI="mirror://debian/pool/main/x/${PN}/${PN}_${PV}.orig.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND=" + dev-lang/perl + x11-libs/libX11 +" +RDEPEND=" + ${DEPEND} + !ppc? ( >=sys-power/acpi-1.5 ) +" +PATCHES=( + "${FILESDIR}"/${PN}-1.4.5.patch + "${FILESDIR}"/${PN}-1.4.8-const.patch +) + +src_prepare() { + default + + sed -i \ + -e "s:usr/lib:usr/$(get_libdir):" \ + xbattbar.c || die + + tc-export PKG_CONFIG +} + +src_compile() { + use kernel_linux && append-flags -Dlinux + + emake \ + CC=$(tc-getCC) \ + LIBDIR="$(get_libdir)" \ + LDFLAGS="${LDFLAGS}" +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install + dodoc README +} |