wmbio-1.02.ebuild 796 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2010 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=2
  4. inherit eutils
  5. DESCRIPTION="A Window Maker applet that shows your biorhythm"
  6. SRC_URI="http://wmbio.sourceforge.net/${P}.tar.gz"
  7. HOMEPAGE="http://wmbio.sourceforge.net/"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ppc ppc64 sparc x86"
  11. IUSE=""
  12. RDEPEND="x11-libs/libX11
  13. x11-libs/libXext
  14. x11-libs/libXpm"
  15. DEPEND="${RDEPEND}
  16. x11-proto/xextproto"
  17. S=${WORKDIR}/${P}/src
  18. src_prepare() {
  19. # Honour Gentoo CFLAGS
  20. sed -i "s/-g -O2/\$(CFLAGS)/" Makefile
  21. # Honour Gentoo LDFLAGS
  22. sed -i "s/-o wmbio/\$(LDFLAGS) -o wmbio/" Makefile
  23. }
  24. src_compile() {
  25. emake || die "emake failed"
  26. }
  27. src_install () {
  28. dobin wmbio || die "dobin failed"
  29. dodoc ../{AUTHORS,Changelog,NEWS,README} || die
  30. }