Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 109 lines (89 sloc) 3.452 kB
0ad9461 @nightmorph update supercollider to 3.5. still need to do editor plugin installs.
authored
1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI="4"
6
7 inherit cmake-utils elisp-common
8
9 DESCRIPTION="An environment and a programming language for real time audio synthesis and algorithmic composition"
10 HOMEPAGE="http://supercollider.sourceforge.net"
11 MY_PN="SuperCollider"
12 MY_P="${MY_PN}-${PV}"
13 SRC_URI="mirror://sourceforge/${PN}/Source/${PV}/${MY_P}-Source-linux.tar.bz2"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64"
18 IUSE="curl debug emacs gedit2 gedit3 portaudio +qt sse sse4 vim wii +zeroconf"
19
20 RDEPEND="${DEPEND}"
21 DEPEND="dev-libs/icu
22 dev-util/pkgconfig
23 media-libs/alsa-lib
24 media-libs/libsndfile
25 media-sound/jack-audio-connection-kit
26 sci-libs/fftw:3.0
27 sys-libs/readline
28 x11-libs/libXt
29 curl? ( net-misc/curl )
30 emacs? ( virtual/emacs )
31 gedit2? ( <app-editors/gedit-3 )
32 gedit3? ( >app-editors/gedit-2 )
33 portaudio? ( media-libs/portaudio )
34 qt? ( x11-libs/qt-webkit )
35 vim? ( || ( app-editors/vim[ruby] )
36 ( app-editors/gvim[ruby] ) )
37 wii? ( app-misc/cwiid )
38 zeroconf? ( net-dns/avahi )"
39
40 ## note that SC_ED builds the plugin for gedit3; SC_ED=2 enables the gedit2
41 ## plugin (currently 2.x is stable on gentoo, as of august 2012
42
43 ## things not really optional, thus removed from IUSE:
44 ## alsa, readline, X
45 ## upstream also really insists on avahi, libsndfile, qt activated
46
47 S="${WORKDIR}/${MY_PN}-Source"
48
49 src_configure() {
50 tc-export CC CXX
51 mkdir -p "${D}"
52
53 local mycmakeargs="
54 $(cmake-utils_use curl CURL)
55 $(cmake-utils_use debug SC_MEMORY_DEBUGGING)
56 $(cmake-utils_use emacs SC_EL)
57 $(use gedit2 && echo -DSC_ED=2)
58 $(cmake-utils_use gedit3 SC_ED)
59 $(cmake-utils_use sse SSE)
60 $(cmake-utils_use sse4 SSE41)
61 $(cmake-utils_use qt SC_QT)
62 $(cmake-utils_use vim SC_VIM)
63 $(cmake-utils_use wii SC_WII)"
64
65 cmake-utils_src_configure
66 }
67
68 src_install() {
69 # When installing into /usr/local (which is the default), gedit won't find
70 # the plugin since it only looks in /usr. To fix this, simply symlink
71 # the plugin-files to ~/.local/share/gedit/plugins/:
72 #
73 # $ mkdir -p ~/.local/share/gedit/plugins
74 # $ cd ~/.local/share/gedit/plugins
75 # $ ln -sf /usr/local/lib/gedit/plugins/supercollider.plugin .
76 # $ ln -sf /usr/local/lib/gedit/plugins/supercollider.py .
77
78 # Main install
79 cmake-utils_src_install || die "install failed"
80
81 # Upstream Documentation
82 dodoc README_LINUX.txt README.txt
83
84 mv editors/scel/README editors/scel/README-scel
85 dodoc editors/scel/README-scel
86 mv editors/sced/README editors/sced/README-sced
87 dodoc editors/sced/README-sced
88 mv editors/scvim/README editors/scvim/README-scvim
89 dodoc editors/scvim/README-scvim
90
91 # Gentoo documentation
92 sed -e "s:@DOCBASE@:/usr/share/doc/${PF}:" < "${FILESDIR}/README-gentoo.txt" | gzip > "${D}/usr/share/doc/${PF}/README-gentoo.txt.gz"
93
94 use emacs && elisp-site-file-install "${FILESDIR}/70scel-gentoo.el"
95
96 ## TODO: install sced, scel, scvim
97 # these might need to be split out into their own ebuilds, since
98 # users don't actually need to compile all of supercollider. needs
99 # a separate source tree sub-checkout, though. could then put in an
100 # IUSE with RDEP on each editor plugin.
101 }
102
103 pkg_postinst() {
104 elog "Notice: SuperCollider is not very intuitive to get up and running."
105 elog "The best course of action to make sure that the installation was"
106 elog "successful and get you started with using SuperCollider is to take"
107 elog "a look through /usr/share/doc/${PF}/README-gentoo.txt.gz"
108 }
Something went wrong with that request. Please try again.