ace-1.4-r1.ebuild 977 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit autotools eutils
  5. DESCRIPTION="DJ Delorie's Ace of Penguins solitaire games"
  6. HOMEPAGE="http://www.delorie.com/store/ace/"
  7. SRC_URI="http://www.delorie.com/store/ace/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~sparc ~x86"
  11. IUSE=""
  12. RDEPEND="
  13. media-libs/libpng:0
  14. x11-libs/libX11"
  15. DEPEND="${RDEPEND}
  16. x11-proto/xproto"
  17. PATCHES=(
  18. "${FILESDIR}"/${P}-no-xpm.patch
  19. "${FILESDIR}"/${P}-libpng15.patch
  20. "${FILESDIR}"/${P}-gold.patch
  21. "${FILESDIR}"/${P}-CC.patch
  22. "${FILESDIR}"/${P}-clang.patch
  23. )
  24. src_prepare() {
  25. default
  26. mv configure.{in,ac} || die
  27. eautoreconf
  28. }
  29. src_configure() {
  30. econf \
  31. --disable-static \
  32. --program-prefix=ace-
  33. }
  34. src_install() {
  35. default
  36. dodoc docs/*
  37. newicon docs/as.gif ${PN}.gif
  38. cd "${D}/usr/bin" || die
  39. local p
  40. for p in *
  41. do
  42. make_desktop_entry $p "Ace ${p/ace-/}" /usr/share/pixmaps/${PN}.gif
  43. done
  44. }