ypsilon-0.9.6_p3.ebuild 863 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. inherit eutils flag-o-matic toolchain-funcs
  5. MY_P="${P/_p/.update}"
  6. DESCRIPTION="R6RS-compliant Scheme implementation for real-time applications"
  7. HOMEPAGE="https://code.google.com/p/ypsilon/"
  8. SRC_URI="https://ypsilon.googlecode.com/files/${MY_P}.tar.gz"
  9. LICENSE="BSD"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86"
  12. IUSE="examples threads"
  13. DEPEND="app-arch/cpio"
  14. RDEPEND="${DEPEND}"
  15. S="${WORKDIR}/${MY_P}"
  16. src_prepare() {
  17. epatch "${FILESDIR}"/${P}-asneeded.patch
  18. }
  19. src_compile() {
  20. use threads && append-flags "-pthread"
  21. emake PREFIX="/usr" CXX="$(tc-getCXX)" \
  22. CXXFLAGS="${CXXFLAGS}" LDFLAGS="$LDFLAGS"
  23. }
  24. src_install() {
  25. emake PREFIX="/usr" DESTDIR="${D}" install
  26. if use examples; then
  27. insinto /usr/share/doc/${PF}/examples
  28. doins example/*
  29. fi
  30. }