blob: 74ccd80f589fd6b079287d9d7cca5ecd2f0a256a (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils readme.gentoo-r1
DESCRIPTION="An environment and a programming language for real time audio synthesis."
HOMEPAGE="https://supercollider.github.io/"
SRC_URI="https://github.com/supercollider/supercollider/releases/download/Version-${PV}/SuperCollider-${PV}-Source-linux.tar.bz2"
LICENSE="GPL-2 gpl3? ( GPL-3 )"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="avahi cpu_flags_x86_sse cpu_flags_x86_sse2 debug emacs +fftw gedit +gpl3 jack +portaudio qt5 server +sndfile static-libs vim wiimote"
REQUIRED_USE="^^ ( jack portaudio )"
RESTRICT="mirror"
RDEPEND="
media-libs/alsa-lib
sys-libs/readline:0=
x11-libs/libX11
x11-libs/libXt
avahi? ( net-dns/avahi )
fftw? ( sci-libs/fftw:3.0= )
jack? ( virtual/jack )
portaudio? ( media-libs/portaudio )
qt5? (
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtprintsupport:5
dev-qt/qtwebkit:5
dev-qt/qtwidgets:5
)
sndfile? ( media-libs/libsndfile )
wiimote? ( app-misc/cwiid )
"
DEPEND="${RDEPEND}
dev-libs/icu
virtual/pkgconfig
emacs? ( virtual/emacs )
gedit? ( app-editors/gedit )
qt5? (
dev-qt/linguist-tools:5
dev-qt/qtdeclarative:5
dev-qt/qtconcurrent:5
)
vim? ( app-editors/vim )
"
S="${WORKDIR}/SuperCollider-Source"
PATCHES=(
"${FILESDIR}"/${P}-no-opengl.patch
"${FILESDIR}"/${P}-no-qtsensors.patch
"${FILESDIR}"/${P}-no-qtpositioning.patch
)
src_configure() {
local mycmakeargs=(
-DAUDIOAPI=$(usex jack jack portaudio)
-DINSTALL_HELP=ON
-DNATIVE=ON
-DSYSTEM_BOOST=OFF
-DSYSTEM_YAMLCPP=OFF
-DNO_AVAHI=$(usex !avahi)
-DFFT_GREEN=$(usex !fftw)
-DNO_GPL3=$(usex !gpl3)
-DNO_LIBSNDFILE=$(usex !sndfile)
-DSC_QT=$(usex qt5)
-DSCLANG_SERVER=$(usex server)
-DSUPERNOVA=$(usex server)
-DLIBSCSYNTH=$(usex !static-libs)
-DSSE=$(usex cpu_flags_x86_sse)
-DSSE2=$(usex cpu_flags_x86_sse2)
-DSC_IDE=$(usex qt5)
-DSC_ED=$(usex gedit)
-DSC_VIM=$(usex vim)
-DSC_EL=$(usex emacs)
-DSC_WII=$(usex wiimote)
)
use debug && mycmakeargs+=(
-DSC_MEMORY_DEBUGGING=ON
-DSN_MEMORY_DEBUGGING=ON
-DGC_SANITYCHECK=ON
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
use vim && newdoc editors/scvim/README.md README.vim
use emacs && newdoc editors/scel/README.md README.emacs
use gedit && newdoc editors/sced/README.md README.gedit
}
pkg_postinst() {
einfo
einfo "Notice: SuperCollider is not very intuitive to get up and running."
einfo "The best course of action to make sure that the installation was"
einfo "successful and get you started with using SuperCollider is to take"
einfo "a look through ${EROOT%/}/usr/share/doc/${PF}/README.md.bz2"
einfo
}
|