You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
1016 B
51 lines
1016 B
3 years ago
|
# Copyright 1999-2021 Gentoo Authors
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
7 years ago
|
|
||
3 years ago
|
EAPI=7
|
||
13 years ago
|
|
||
3 years ago
|
inherit flag-o-matic toolchain-funcs
|
||
13 years ago
|
|
||
|
MY_P="${P/_p/.update}"
|
||
|
DESCRIPTION="R6RS-compliant Scheme implementation for real-time applications"
|
||
9 years ago
|
HOMEPAGE="https://code.google.com/p/ypsilon/"
|
||
|
SRC_URI="https://ypsilon.googlecode.com/files/${MY_P}.tar.gz"
|
||
3 years ago
|
S="${WORKDIR}/${MY_P}"
|
||
13 years ago
|
|
||
|
LICENSE="BSD"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE="examples threads"
|
||
|
|
||
8 years ago
|
DEPEND="app-arch/cpio"
|
||
13 years ago
|
RDEPEND="${DEPEND}"
|
||
|
|
||
3 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-asneeded.patch
|
||
|
"${FILESDIR}"/${P}-clang-cflags.patch
|
||
|
)
|
||
13 years ago
|
|
||
|
src_compile() {
|
||
|
use threads && append-flags "-pthread"
|
||
|
|
||
3 years ago
|
# Fix build failure with GCC 11
|
||
|
# bug #787866
|
||
|
append-cppflags -DNO_TLS
|
||
|
|
||
|
emake \
|
||
|
PREFIX="${EPREFIX}/usr" \
|
||
|
AS="$(tc-getAS)" \
|
||
|
CXX="$(tc-getCXX)" \
|
||
|
CPPFLAGS="${CPPFLAGS}" \
|
||
|
CXXFLAGS="${CXXFLAGS}" \
|
||
|
LDFLAGS="${LDFLAGS}"
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
3 years ago
|
emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install
|
||
|
|
||
13 years ago
|
if use examples; then
|
||
3 years ago
|
docinto examples
|
||
|
dodoc example/*
|
||
13 years ago
|
fi
|
||
|
}
|