blob: e246e6005e668276bdf4007da54dab50980c0b44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
}
|