gnudoku-0.93.ebuild 883 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils flag-o-matic games
  5. MY_PN="GNUDoku"
  6. MY_P=${MY_PN}-${PV}
  7. DESCRIPTION="A program for creating and solving Su Doku puzzles"
  8. HOMEPAGE="http://www.icculus.org/~jcspray/GNUDoku"
  9. SRC_URI="http://www.icculus.org/~jcspray/GNUDoku/${MY_P}.tar.gz"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="amd64 ~ppc x86"
  13. IUSE=""
  14. RESTRICT="test"
  15. RDEPEND=">=dev-cpp/gtkmm-2.6:2.4"
  16. DEPEND="${RDEPEND}
  17. virtual/pkgconfig"
  18. S=${WORKDIR}/${MY_P}
  19. src_prepare() {
  20. epatch "${FILESDIR}"/${P}-gcc43.patch
  21. append-cxxflags -std=c++11
  22. sed -i \
  23. -e "s:\$(CXX):\$(CXX) ${CXXFLAGS} ${LDFLAGS}:" \
  24. Makefile \
  25. || die "sed failed"
  26. }
  27. src_install() {
  28. dogamesbin GNUDoku
  29. newicon GNUDoku.png ${PN}.png
  30. make_desktop_entry ${MY_PN} ${MY_PN}
  31. dodoc ALGORITHM Changelog README TODO
  32. prepgamesdirs
  33. }