gnushogi-1.4.1-r1.ebuild 1013 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils
  5. DESCRIPTION="Japanese version of chess (commandline + X-Version)"
  6. HOMEPAGE="https://www.gnu.org/software/gnushogi/"
  7. SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86"
  11. IUSE="X"
  12. RDEPEND="sys-libs/ncurses:0
  13. X? ( x11-libs/libXaw )"
  14. DEPEND="${RDEPEND}
  15. >=sys-devel/bison-1.34
  16. >=sys-devel/flex-2.5"
  17. src_prepare() {
  18. default
  19. sed -i \
  20. -e '/^bbk:/s/$/ gnushogi_compile pat2inc sizetest/' \
  21. Makefile.in || die
  22. sed -i \
  23. -e "/^LIBDIR/s:=.*:=\"$(get_libdir)\":" \
  24. gnushogi/Makefile.in || die
  25. }
  26. src_configure() {
  27. econf \
  28. $(use_with X x) \
  29. $(use_enable X xshogi)
  30. }
  31. src_install() {
  32. dobin gnushogi/gnushogi
  33. doman doc/gnushogi.6
  34. doinfo doc/gnushogi.info
  35. if use X ; then
  36. dobin xshogi/xshogi
  37. doman doc/xshogi.6
  38. make_desktop_entry xshogi XShogi
  39. fi
  40. dolib gnushogi/gnushogi.bbk
  41. dodoc README NEWS CONTRIB doc/gnushogi/*.html
  42. }