cputnik-0.2.0.ebuild 758 B

12345678910111213141516171819202122232425262728293031323334353637
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils toolchain-funcs
  4. DESCRIPTION="cputnik is a simple cpu monitor dockapp"
  5. HOMEPAGE="http://dockapps.windowmaker.org/file.php/id/273"
  6. SRC_URI="http://dockapps.windowmaker.org/download.php/id/576/${P}.tar.gz"
  7. LICENSE="GPL-2"
  8. SLOT="0"
  9. KEYWORDS="~amd64 ~ppc x86"
  10. IUSE=""
  11. RDEPEND="x11-libs/libX11
  12. x11-libs/libXext
  13. x11-libs/libXpm"
  14. DEPEND="${RDEPEND}
  15. x11-proto/xextproto"
  16. S=${WORKDIR}/${P}/src
  17. src_unpack() {
  18. unpack ${A}
  19. cd "${S}"
  20. epatch "${FILESDIR}"/${P}-makefile.patch
  21. }
  22. src_compile() {
  23. emake CC="$(tc-getCC)" || die "Compilation failed"
  24. }
  25. src_install() {
  26. dobin cputnik || die "dobin failed."
  27. dodoc ../{AUTHORS,NEWS,README}
  28. }