xbatt-1.2.1-r1.ebuild 813 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=2
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="Notebook battery indicator for X"
  6. HOMEPAGE="http://www.clave.gr.jp/~eto/xbatt/"
  7. SRC_URI="http://www.clave.gr.jp/~eto/xbatt/${P}.tar.gz"
  8. LICENSE="xbatt"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ppc x86"
  11. IUSE=""
  12. RDEPEND="x11-libs/libX11
  13. x11-libs/libXmu
  14. x11-libs/libXt
  15. x11-libs/libXaw
  16. x11-libs/libXext
  17. x11-libs/libxkbfile
  18. x11-libs/libXpm"
  19. DEPEND="${RDEPEND}
  20. x11-proto/xextproto
  21. x11-misc/imake"
  22. src_prepare(){
  23. epatch "${FILESDIR}"/${P}-implicits.patch
  24. }
  25. src_compile() {
  26. xmkmf || die
  27. emake xbatt CDEBUGFLAGS="${CFLAGS}" CC="$(tc-getCC)" \
  28. EXTRA_LDOPTIONS="${LDFLAGS}" || die
  29. }
  30. src_install() {
  31. emake DESTDIR="${D}" install || die
  32. dodoc README* || die
  33. }