wmjsql-0.5.ebuild 872 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=2
  4. inherit eutils
  5. MY_P="${PN}"
  6. DESCRIPTION="MySQL monitor dockapp"
  7. HOMEPAGE="http://dockapps.windowmaker.org/file.php/id/42"
  8. SRC_URI="http://dockapps.windowmaker.org/download.php/id/73/${P}.tar.gz"
  9. RDEPEND="
  10. x11-libs/libX11
  11. x11-libs/libXext
  12. x11-libs/libXpm"
  13. DEPEND="${RDEPEND}
  14. x11-proto/xproto
  15. x11-proto/xextproto
  16. >=virtual/mysql-4.0"
  17. SLOT="0"
  18. LICENSE="GPL-2"
  19. KEYWORDS="ppc sparc x86"
  20. IUSE=""
  21. S="${WORKDIR}/${MY_P}"
  22. src_prepare() {
  23. sed -i "s/make/\$(MAKE)/g" src/Makefile || die
  24. }
  25. src_compile() {
  26. cd "${S}"/src
  27. emake clean || die
  28. emake CFLAGS="${CFLAGS}" SYSTEM="${LDFLAGS}" || die
  29. }
  30. src_install() {
  31. cd "${S}"/src
  32. dobin wmjsql || die
  33. newdoc conf sample.wmjsql
  34. cd "${S}"
  35. dodoc CREDITS README TODO
  36. domenu "${FILESDIR}"/${PN}.desktop
  37. }