blob: df4fd332ccc9d1dd7673e05d25466eb67edd238e (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Live Programming Environment(C Port)"
HOMEPAGE="
https://wiki.xxiivv.com/site/orca.html
https://github.com/hundredrabbits/Orca-c
"
if [[ ${PV} == 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/hundredrabbits/Orca-c.git"
else
GIT_COMMIT=
MY_PN="Orca-c"
SRC_URI="https://github.com/hundredrabbits/${MY_PN}/archive/${GIT_COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}"/"${MY_PN}-${GIT_COMMIT}"
KEYWORDS="~amd64 ~arm64"
fi
LICENSE="MIT"
SLOT="0"
IUSE="doc examples +mouse portmidi static hardened"
DEPEND="
static? (
sys-libs/ncurses[static-libs]
)
!static? (
sys-libs/ncurses
)
portmidi? (
media-libs/portmidi
)
"
RDEPEND="${DEPEND}"
DOCS=(
"README.md",
examples
)
src_compile() {
compile_options=(
$(usev static --static)
$(usev hardened --harden)
$(usex portmidi '--portmid' '--no-portmidi')
$(usex mouse '--mouse' '--no-mouse')
)
# Prevent "tool" from creating a pre-stripped binary:
sed --in-place --expression='s/-flto -s/-flto/g' ./tool || die
./tool build ${compile_options[@]} orca || die
}
src_install() {
exeinto /usr/bin
doexe build/orca
use doc && dodoc README.md
if use examples; then
docinto examples
dodoc -r examples
fi
}
|