free42-1.5.13.ebuild 985 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit eutils toolchain-funcs
  5. DESCRIPTION="An HP-42S Calculator Simulator"
  6. HOMEPAGE="http://thomasokken.com/free42/"
  7. SRC_URI="mirror://gentoo/${P}.tgz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="amd64 x86"
  11. IUSE="alsa"
  12. DEPEND="dev-libs/atk
  13. x11-libs/cairo
  14. x11-libs/gdk-pixbuf
  15. x11-libs/gtk+:2
  16. x11-libs/pango
  17. alsa? ( media-libs/alsa-lib )"
  18. RDEPEND="${DEPEND}
  19. x11-libs/libX11
  20. x11-libs/libXmu"
  21. S="${WORKDIR}/${PN}"
  22. src_prepare() {
  23. default
  24. sed -i -e 's/print_gif_name\[FILENAMELEN\]/print_gif_name\[1000\]/' \
  25. "${S}/gtk/shell_main.cc" || die
  26. epatch "${FILESDIR}"/${P}-fix-makefile.patch
  27. epatch "${FILESDIR}"/${P}-fix-build-intel-lib.patch
  28. }
  29. src_compile() {
  30. local myconf
  31. use alsa && myconf="AUDIO_ALSA=yes"
  32. emake CC="$(tc-getCC)" CXX="$(tc-getCXX)" BCD_MATH=1 ${myconf} -C "${S}/gtk"
  33. }
  34. src_install() {
  35. dodoc CREDITS HISTORY README TODO
  36. dobin gtk/free42dec
  37. }