summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2004-10-04 03:43:59 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2004-10-04 03:43:59 +0000
commit1c77f8afaebc9d5dfe7decc98a15f0b4814fa6d2 (patch)
treef66d2dc67457d0a484153b706a9efde452311ff2 /media-sound/supercollider
parentswitched custom ARCH setting code to use set_arch_to_* from eutils (diff)
downloadgentoo-2-1c77f8afaebc9d5dfe7decc98a15f0b4814fa6d2.tar.gz
gentoo-2-1c77f8afaebc9d5dfe7decc98a15f0b4814fa6d2.tar.bz2
gentoo-2-1c77f8afaebc9d5dfe7decc98a15f0b4814fa6d2.zip
Initial version submitten in bug #46704 thanks to CJ Kucera <gentoo@apocalyptech.com>.
Diffstat (limited to 'media-sound/supercollider')
-rw-r--r--media-sound/supercollider/ChangeLog11
-rw-r--r--media-sound/supercollider/Manifest3
-rw-r--r--media-sound/supercollider/files/README-gentoo.txt85
-rw-r--r--media-sound/supercollider/files/digest-supercollider-200409031
-rw-r--r--media-sound/supercollider/metadata.xml5
-rw-r--r--media-sound/supercollider/supercollider-20040903.ebuild107
6 files changed, 212 insertions, 0 deletions
diff --git a/media-sound/supercollider/ChangeLog b/media-sound/supercollider/ChangeLog
new file mode 100644
index 000000000000..90d9427a5473
--- /dev/null
+++ b/media-sound/supercollider/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-sound/supercollider
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/supercollider/ChangeLog,v 1.1 2004/10/04 03:43:59 eradicator Exp $
+
+*supercollider-20040903 (02 Oct 2004)
+
+ 02 Oct 2004; Jeremy Huddleston <eradicator@gentoo.org> +metadata.xml,
+ +files/README-gentoo.txt, +supercollider-20040903.ebuild:
+ Initial version submitten in bug #46704 thanks to CJ Kucera
+ <gentoo@apocalyptech.com>.
+
diff --git a/media-sound/supercollider/Manifest b/media-sound/supercollider/Manifest
new file mode 100644
index 000000000000..f4a42fd364bf
--- /dev/null
+++ b/media-sound/supercollider/Manifest
@@ -0,0 +1,3 @@
+MD5 ee9d69930bc8f3a38a976e54a3846b36 supercollider-20040903.ebuild 2897
+MD5 e0d010a09ea7addae1972ed480078139 files/README-gentoo.txt 3246
+MD5 deeb275f5394571af029926b052791a1 files/digest-supercollider-20040903 72
diff --git a/media-sound/supercollider/files/README-gentoo.txt b/media-sound/supercollider/files/README-gentoo.txt
new file mode 100644
index 000000000000..37d2d9d7d088
--- /dev/null
+++ b/media-sound/supercollider/files/README-gentoo.txt
@@ -0,0 +1,85 @@
+Testing SuperCollider Installation
+----------------------------------
+
+To make sure that the SuperCollider install is working properly:
+
+ 1) Ensure that Jack is running ("jackd -d alsa")
+ 2) Ensure that you're going to run these commands from a directory
+ which contains the subdirectories sounds/ and synthdefs/
+ (these directories can be initially empty)
+ 3) execute the following command:
+ sclang @DOCBASE@/examples/onetwoonetwo.sc -
+
+If all goes well, you'll get some scrolling output, and then you'll
+hear a looping synth line. If the sclang command just sits there after
+complaining about some error, hit Ctrl-C to get out of the loop and
+start reading through the various online docs or filing some bugs
+to see if you can find what the problem is.
+
+Emacs Support
+-------------
+
+The online documentation seems to be largely of the opinion that emacs
+is the preferred interface for working with SuperCollider. Since emacs
+support is optional, you must have emacs in your USE flags if you want
+to have emacs support compiled in. To start up emacs in SCLang mode,
+first add the following line to ~/.emacs:
+
+ (require 'sclang)
+
+And then run emacs as "emacs -sclang"
+
+Configuration Files
+-------------------
+
+The main configuration file which loads the various libraries that
+SuperCollider will use is located at /etc/supercollider/sclang.cfg
+Values from this file can be overridden in ~/.sclang.cfg, or in
+.sclang.cfg in the directory sclang is being run from.
+
+Another configuration file which controls how SuperCollider
+connects to Jack, among other miscellaneous functions, can be created
+as ~/.sclang.sc - Creating this file shouldn't be necessary, but an
+example is provided in @DOCBASE@/examples
+
+Running in General
+------------------
+
+Once again, it bears repeating that Jack *must* be running, and the
+program *must* be started from inside a directory which contains
+sounds/ and synthdefs/. (Technically, you could alternatively start
+sclang with the "-d" option to select a different directory
+containing those two subdirs.)
+
+Other Documentation in This Directory
+-------------------------------------
+Included in the SuperCollider source tree are quite a few .rtf files
+which seem to serve as documentation. I'm not sure exactly how useful
+these files are, because they may pertain more to the GUI aspects of
+the older Mac versions of SuperCollider, but they're included in
+the install tree anyway.
+
+More Information
+----------------
+
+The Official SuperCollider Homepage
+http://www.audiosynth.com/
+This page may not actually provide too much help, because it's still
+geared for the Mac versions of SuperCollider, not the Linux versions.
+Still, it's the official page.
+
+SuperCollider Wiki
+http://swiki.hfbk-hamburg.de:8888/MusicTechnology/6
+This is a very informative Wiki devoted to running and developing
+SuperCollider. Pages of particular interest here:
+
+ * http://swiki.hfbk-hamburg.de:8888/MusicTechnology/478
+ General SuperCollider-on-Linux information
+
+ * http://swiki.hfbk-hamburg.de:8888/MusicTechnology/579
+ SuperCollider and Emacs
+
+SuperCollider Mailing List
+http://www.create.ucsb.edu/mailman/listinfo/sc-users
+Probably the best place to go for problems that aren't specifically
+Gentoo-related
diff --git a/media-sound/supercollider/files/digest-supercollider-20040903 b/media-sound/supercollider/files/digest-supercollider-20040903
new file mode 100644
index 000000000000..dae71c669f95
--- /dev/null
+++ b/media-sound/supercollider/files/digest-supercollider-20040903
@@ -0,0 +1 @@
+MD5 f148a95bbe4207d0768c91330ffa2493 supercollider-20040903.tgz 2381742
diff --git a/media-sound/supercollider/metadata.xml b/media-sound/supercollider/metadata.xml
new file mode 100644
index 000000000000..e1774e3d9ad7
--- /dev/null
+++ b/media-sound/supercollider/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sound</herd>
+</pkgmetadata>
diff --git a/media-sound/supercollider/supercollider-20040903.ebuild b/media-sound/supercollider/supercollider-20040903.ebuild
new file mode 100644
index 000000000000..31ebf12f57c3
--- /dev/null
+++ b/media-sound/supercollider/supercollider-20040903.ebuild
@@ -0,0 +1,107 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/supercollider/supercollider-20040903.ebuild,v 1.1 2004/10/04 03:43:59 eradicator Exp $
+
+IUSE="emacs"
+
+inherit eutils
+
+S="${WORKDIR}/SuperCollider3"
+
+DESCRIPTION="A real time audio synthesis programming language"
+HOMEPAGE="http://www.audiosynth.com/"
+SRC_URI="mirror://gentoo/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="media-sound/jack-audio-connection-kit
+ media-libs/alsa-lib
+ media-libs/libsndfile"
+
+DEPEND="${RDEPEND}
+ sys-apps/sed
+ sys-devel/automake"
+
+src_unpack() {
+ unpack ${A}
+
+ # Change default config file location from /etc to /etc/supercollider
+ sed -ie "s:/etc/sclang.cfg:/etc/supercollider/sclang.cfg:" ${S}/source/lang/LangSource/SC_LanguageClient.cpp
+ sed -ie "s:/etc/sclang.cfg:/etc/supercollider/sclang.cfg:" ${S}/linux/examples/sclang.cfg.in
+
+ # Change the ridiculous default scsynth location on sample ~/.scsynth.sc file
+ sed -ie "s:/usr/local/music/bin/scsynth:/usr/bin/scsynth:" ${S}/linux/examples/sclang.sc
+
+ # Uncommenting a line per linux/examples/sclang.cfg.in
+ if ! use emacs; then
+ sed -ie "s:#-@SC_LIB_DIR@/Common/GUI/Document.sc:-@SC_LIB_DIR@/Common/GUI/Document.sc:" ${S}/linux/examples/sclang.cfg.in
+ fi
+}
+
+src_compile() {
+ local myconf
+ if use emacs; then
+ myconf="${myconf} --enable-scel"
+ else
+ myconf="${myconf} --disable-scel"
+ fi
+
+ # Do the main compilation
+ ./linux/bootstrap
+ econf ${myconf} || die
+ emake || die "emake failed"
+ cd ${S}/linux/examples
+ make sclang.cfg
+
+ # Also compile Emacs extensions if need be
+ if use emacs; then
+ cd ${S}/linux/scel
+ emake || die "emake on skel failed"
+ fi
+}
+
+src_install() {
+ # Main install
+ einstall || die "einstall failed"
+
+ # Install our config file
+ insinto /etc/supercollider
+ doins linux/examples/sclang.cfg
+
+ # Documentation
+ mv linux/README linux/README-linux
+ mv linux/scel/README linux/scel/README-scel
+ dodoc COPYING linux/README-linux linux/scel/README-scel
+
+ # Our documentation
+ sed -e "s:@DOCBASE@:/usr/share/doc/${PF}:" < ${FILESDIR}/README-gentoo.txt | gzip > ${D}/usr/share/doc/${PF}/README-gentoo.txt.gz
+
+ # RTFs (don't gzip)
+ insinto /usr/share/doc/${PF}
+ doins doc/*.rtf changes.rtf
+
+ # Example files (don't gzip)
+ insinto /usr/share/doc/${PF}/examples
+ doins linux/examples/onetwoonetwo.sc linux/examples/sclang.sc
+
+ # Help files included with project (again, don't gzip)
+ cp -R ${S}/build/Help ${D}/usr/share/doc/${PF}
+
+ # Emacs installation
+ if use emacs; then
+ cd ${S}/linux/scel
+ einstall || die "einstall on scel failed"
+ fi
+
+}
+
+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 /usr/share/doc/${PF}/README-gentoo.txt.gz"
+ einfo
+}