Skip to content
This repository
Browse code

update supercollider to 3.5. still need to do editor plugin installs.

  • Loading branch information...
commit 0ad9461dd42c2fa76b96e77b276dcf7b4b65e9bc 1 parent 402364a
nightmorph authored August 07, 2012
4  media-sound/supercollider/Manifest
... ...
@@ -1,5 +1,7 @@
1 1
 AUX 70scel-gentoo.el 106 RMD160 e2de09b5378a1b0fe2dbd3cd61a3787c01e6e4da SHA1 8efd6732b118bff711cec662e238d93af745b32c SHA256 c3224e397bb8e9a0a57d709b9d2f99b9afce77e1df485e3ace8342d4c9cc3765
2  
-AUX README-gentoo.txt 3246 RMD160 aabc84efe4d78e18d7a25ad65000f6d240835ce4 SHA1 2e2ce03562f30c08e645a81695bdb97379a023b4 SHA256 6f4ee95ecfe6cb2a19084e6c20c4fef71612d98bb698c7b11745d353e87d8edd
  2
+AUX README-gentoo.txt 3355 RMD160 7cdc38d040e1383884defbdd92a588b94ba17e28 SHA1 89595e4023c879bd9a4a99cdfef695eeb9ad8694 SHA256 7580d19a540b35cdd5ad24494d6f62a1387f0eafa4eb1c4e4d56c42b5feb6f4a
3 3
 DIST SuperCollider-3.4.4-Source-linux.tar.gz 5096793 RMD160 ba039e2e3e06da7b35c0a3ec924f7120b4d184c8 SHA1 a044a02a30fe8a9090f8e0d5fa539037b800f2ec SHA256 0de9feb867d8362837a55f869a52ba4de8d0aa2c0cb955967bb18727e65052f5
  4
+DIST SuperCollider-3.5.3-Source-linux.tar.bz2 8861774 RMD160 4462190bce79c585755c6e603f30ba86801fcecc SHA1 78cab59446417a42c2d1eb8977ecbfb006d9521e SHA256 65bdc35e82393eba7f99c890cf986f40c96cd8e374bbf017303a2bd04973966b
4 5
 EBUILD supercollider-3.4.4.ebuild 3345 RMD160 a2f13e7d2b3bfef7d791c43f1e214cbd547bc8dc SHA1 4fb1dce26b8b57a648d77c26130797676ff83381 SHA256 ba517056126bb673076efb23be5cae56586b35ec90c6b3032540cb79426e025b
  6
+EBUILD supercollider-3.5.3.ebuild 3452 RMD160 c9c814574b8719ce7ec17c3f16e7e956899ca42e SHA1 6bdfe729f241d2ddb44cd4c64cffd6058b42d7bd SHA256 4168cbe55e579d7086aa938d14a4a9d54b4e9961ad71ca0029e9af57db39468c
5 7
 MISC metadata.xml 711 RMD160 3b02108749d8899b2209ce13ae30f5fda62330c5 SHA1 bb78d0dc108c5186d90f45a0f3514e8da698d0a3 SHA256 ce8d9d08a1015a8a48b2197c3cd4610b544081a85c30c65b51912e1775a1d836
3  media-sound/supercollider/files/README-gentoo.txt
@@ -51,6 +51,9 @@ sounds/ and synthdefs/.  (Technically, you could alternatively start
51 51
 sclang with the "-d" option to select a different directory
52 52
 containing those two subdirs.)
53 53
 
  54
+Make sure that you've created ~/.local/share/SuperCollider/ before attempting to
  55
+run SC for the first time.
  56
+
54 57
 Other Documentation in This Directory
55 58
 -------------------------------------
56 59
 Included in the SuperCollider source tree are quite a few .rtf files
108  media-sound/supercollider/supercollider-3.5.3.ebuild
... ...
@@ -0,0 +1,108 @@
  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
+}

0 notes on commit 0ad9461

Please sign in to comment.
Something went wrong with that request. Please try again.