seatris-0.0.14.ebuild 918 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils toolchain-funcs games
  5. DESCRIPTION="A color ncurses tetris clone"
  6. HOMEPAGE="http://www.earth.li/projectpurple/progs/seatris.html"
  7. SRC_URI="http://www.earth.li/projectpurple/files/${P}.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 ~ppc ppc64 x86"
  11. RDEPEND="sys-libs/ncurses"
  12. DEPEND="${DEPEND}
  13. virtual/pkgconfig"
  14. src_prepare() {
  15. sed -i \
  16. -e "s:/var/lib/games:${GAMES_STATEDIR}:" \
  17. scoring.h seatris.6 || die
  18. epatch "${FILESDIR}"/${P}-as-needed.patch
  19. }
  20. src_compile() {
  21. emake LIBS="$( $(tc-getPKG_CONFIG) --libs ncurses )"
  22. }
  23. src_install () {
  24. dogamesbin seatris
  25. doman seatris.6
  26. dodoc ACKNOWLEDGEMENTS HISTORY README TODO example.seatrisrc
  27. dodir "${GAMES_STATEDIR}"
  28. touch "${D}${GAMES_STATEDIR}/seatris.score"
  29. fperms 660 "${GAMES_STATEDIR}/seatris.score"
  30. prepgamesdirs
  31. }