12345678910111213141516171819202122232425262728293031323334353637383940 |
- # Copyright 1999-2017 Gentoo Foundation
- # Distributed under the terms of the GNU General Public License v2
- EAPI=5
- inherit eutils flag-o-matic toolchain-funcs
- MY_P="${P/_p/.update}"
- DESCRIPTION="R6RS-compliant Scheme implementation for real-time applications"
- HOMEPAGE="https://code.google.com/p/ypsilon/"
- SRC_URI="https://ypsilon.googlecode.com/files/${MY_P}.tar.gz"
- LICENSE="BSD"
- SLOT="0"
- KEYWORDS="~amd64 ~x86"
- IUSE="examples threads"
- DEPEND="app-arch/cpio"
- RDEPEND="${DEPEND}"
- S="${WORKDIR}/${MY_P}"
- src_prepare() {
- epatch "${FILESDIR}"/${P}-asneeded.patch
- }
- src_compile() {
- use threads && append-flags "-pthread"
- emake PREFIX="/usr" CXX="$(tc-getCXX)" \
- CXXFLAGS="${CXXFLAGS}" LDFLAGS="$LDFLAGS"
- }
- src_install() {
- emake PREFIX="/usr" DESTDIR="${D}" install
- if use examples; then
- insinto /usr/share/doc/${PF}/examples
- doins example/*
- fi
- }
|