blob: 552d06b82422675036b53816e14cb5af9d4bc024 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit flag-o-matic toolchain-funcs
MY_P="${P/_p/.update}"
DESCRIPTION="R6RS-compliant Scheme implementation for real-time applications"
HOMEPAGE="http://www.littlewingpinball.com/doc/en/ypsilon"
SRC_URI="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/${PN}/${MY_P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"
RDEPEND="app-arch/cpio"
DEPEND="${RDEPEND}"
S="${WORKDIR}/${MY_P}"
PATCHES=(
"${FILESDIR}"/${P}-asneeded.patch
"${FILESDIR}"/${P}-clang-cflags.patch
)
src_prepare() {
default
append-flags -pthread
# fix build with >=sys-devel/gcc-11, bug #787866
sed -i "/^CPPFLAGS/s/=/= -DNO_TLS/" Makefile
}
src_compile() {
emake \
PREFIX="${EPREFIX}/usr" \
AS="$(tc-getAS)" \
CXX="$(tc-getCXX)" \
CXXFLAGS="${CXXFLAGS}" \
LDFLAGS="${LDFLAGS}"
}
src_install() {
emake \
PREFIX="${EPREFIX}/usr" \
DESTDIR="${D}" \
install
if use examples; then
docinto examples
dodoc example/*
fi
}
|