diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-01-15 15:51:32 +0000 |
commit | 21435953e16cda318a82334ddbadb3b5c36d9ea7 (patch) | |
tree | e1810a4b135afce04b34862ef0fab2bfaeb8aeca /x11-misc/xbattbar/xbattbar-1.4.9.ebuild | |
parent | 7bc9c63c9da678a7e6fceb095d56c634afd22c56 (diff) |
gentoo resync : 15.01.2020
Diffstat (limited to 'x11-misc/xbattbar/xbattbar-1.4.9.ebuild')
-rw-r--r-- | x11-misc/xbattbar/xbattbar-1.4.9.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
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 +} |