gauche-0.9.4-r1.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. MY_P="${P^g}"
  6. DESCRIPTION="A Unix system friendly Scheme Interpreter"
  7. HOMEPAGE="http://practical-scheme.net/gauche/"
  8. SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
  9. LICENSE="BSD"
  10. SLOT="0"
  11. KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
  12. IUSE="ipv6 libressl test"
  13. RDEPEND="sys-libs/gdbm"
  14. DEPEND="${RDEPEND}
  15. test? (
  16. !libressl? ( dev-libs/openssl:0 )
  17. libressl? ( dev-libs/libressl )
  18. )"
  19. S="${WORKDIR}/${MY_P}"
  20. PATCHES=(
  21. "${FILESDIR}"/${PN}-0.9-rpath.patch
  22. "${FILESDIR}"/${PN}-0.9-gauche.m4.patch
  23. "${FILESDIR}"/${PN}-0.9-ext-ldflags.patch
  24. "${FILESDIR}"/${PN}-0.9-xz-info.patch
  25. "${FILESDIR}"/${PN}-0.9-rfc.tls.patch
  26. )
  27. src_prepare() {
  28. mv gc/src/*.[Ss] gc || die
  29. sed -i "/^EXTRA_libgc_la_SOURCES/s|src/||g" gc/Makefile.am
  30. default
  31. eautoconf
  32. }
  33. src_configure() {
  34. econf \
  35. $(use_enable ipv6) \
  36. --with-slib="${EPREFIX}"/usr/share/slib
  37. }
  38. src_test() {
  39. emake -j1 -s check
  40. }
  41. src_install() {
  42. emake -j1 DESTDIR="${D}" install-pkg install-doc
  43. dodoc AUTHORS ChangeLog HACKING README
  44. }