diff options
author | 2014-05-12 17:42:28 +0000 | |
---|---|---|
committer | 2014-05-12 17:42:28 +0000 | |
commit | 1713fa942fa2ed7c11ffcca11d20b7045037f7b6 (patch) | |
tree | 4dee783db099301352ef8da2bc92e58f9a7a7575 /x11-misc/xbattbar/xbattbar-1.4.5.ebuild | |
parent | Mask multilib avahi for review/testing. (diff) | |
download | historical-1713fa942fa2ed7c11ffcca11d20b7045037f7b6.tar.gz historical-1713fa942fa2ed7c11ffcca11d20b7045037f7b6.tar.bz2 historical-1713fa942fa2ed7c11ffcca11d20b7045037f7b6.zip |
Version bump.
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0xA792A613
Diffstat (limited to 'x11-misc/xbattbar/xbattbar-1.4.5.ebuild')
-rw-r--r-- | x11-misc/xbattbar/xbattbar-1.4.5.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/x11-misc/xbattbar/xbattbar-1.4.5.ebuild b/x11-misc/xbattbar/xbattbar-1.4.5.ebuild new file mode 100644 index 000000000000..f93fce1f1f79 --- /dev/null +++ b/x11-misc/xbattbar/xbattbar-1.4.5.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/xbattbar/xbattbar-1.4.5.ebuild,v 1.1 2014/05/12 17:42:27 jer Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_{6,7} ) +inherit eutils flag-o-matic multilib python-single-r1 toolchain-funcs + +DESCRIPTION="Advanced Power Management battery status display for X" +HOMEPAGE="http://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} + ${PYTHON_DEPS} + !ppc? ( >=sys-power/acpi-1.5 ) +" # ppc has APM + +src_prepare() { + epatch "${FILESDIR}"/${PN}-1.4.5.patch + + 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}" + python_fix_shebang ${PN}-check-sys +} + +src_install() { + emake DESTDIR="${D}" LIBDIR="$(get_libdir)" install + dodoc README +} |