Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 187470
Collapse All | Expand All

(-)supercollider-20040903-r1.ebuild (-7 / +14 lines)
Lines 1-8 Link Here
1
# Copyright 1999-2007 Gentoo Foundation
1
# Copyright 1999-2007 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/media-sound/supercollider/supercollider-20040903-r1.ebuild,v 1.3 2007/08/02 06:01:54 opfer Exp $
3
# $Header: $
4
4
5
inherit eutils flag-o-matic
5
inherit elisp-common eutils flag-o-matic
6
6
7
DESCRIPTION="A real time audio synthesis programming language"
7
DESCRIPTION="A real time audio synthesis programming language"
8
HOMEPAGE="http://www.audiosynth.com"
8
HOMEPAGE="http://www.audiosynth.com"
Lines 10-25 Link Here
10
10
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
SLOT="0"
12
SLOT="0"
13
KEYWORDS="~ppc x86"
13
KEYWORDS="~ppc ~x86"
14
IUSE="emacs"
14
IUSE="emacs"
15
15
16
RDEPEND="media-sound/jack-audio-connection-kit
16
RDEPEND="media-sound/jack-audio-connection-kit
17
	 media-libs/alsa-lib
17
	 media-libs/alsa-lib
18
	 media-libs/libsndfile"
18
	 media-libs/libsndfile"
19
DEPEND="${RDEPEND}
19
DEPEND="${RDEPEND}
20
	sys-apps/sed"
20
	sys-apps/sed
21
	emacs? ( virtual/emacs )"
21
22
22
S="${WORKDIR}"/SuperCollider3
23
S="${WORKDIR}"/SuperCollider3
24
SITEFILE=50${PN}-gentoo.el
23
25
24
src_unpack() {
26
src_unpack() {
25
	unpack ${A}
27
	unpack ${A}
Lines 46-52 Link Here
46
src_compile() {
48
src_compile() {
47
	local myconf
49
	local myconf
48
	if use emacs; then
50
	if use emacs; then
49
		myconf="${myconf} --enable-scel"
51
		myconf="${myconf} --enable-scel --with-lispdir="${SITELISP}/${PN}""
50
	else
52
	else
51
		myconf="${myconf} --disable-scel"
53
		myconf="${myconf} --disable-scel"
52
	fi
54
	fi
Lines 80-86 Link Here
80
82
81
	# Our documentation
83
	# Our documentation
82
	sed -e "s:@DOCBASE@:/usr/share/doc/${PF}:" \
84
	sed -e "s:@DOCBASE@:/usr/share/doc/${PF}:" \
83
		< ${FILESDIR}/README-gentoo.txt | gzip \
85
		< "${FILESDIR}"/README-gentoo.txt | gzip \
84
		> "${D}"/usr/share/doc/${PF}/README-gentoo.txt.gz
86
		> "${D}"/usr/share/doc/${PF}/README-gentoo.txt.gz
85
87
86
	# RTFs (don't gzip)
88
	# RTFs (don't gzip)
Lines 97-103 Link Here
97
	# Emacs installation
99
	# Emacs installation
98
	if use emacs; then
100
	if use emacs; then
99
		cd "${S}"/linux/scel
101
		cd "${S}"/linux/scel
100
		einstall || die "einstall on scel failed"
102
		einstall lispdir="${D}/${SITELISP}/${PN}" || die "einstall on scel failed"
103
		elisp-site-file-install "${FILESDIR}/${SITEFILE}"
101
	fi
104
	fi
102
105
103
}
106
}
Lines 109-112 Link Here
109
	elog "successful and get you started with using SuperCollider is to take"
112
	elog "successful and get you started with using SuperCollider is to take"
110
	elog "a look through /usr/share/doc/${PF}/README-gentoo.txt.gz"
113
	elog "a look through /usr/share/doc/${PF}/README-gentoo.txt.gz"
111
	elog
114
	elog
115
	use emacs && elisp-site-regen
116
}
117
pkg_postrm() {
118
	use emacs && elisp-site-regen
112
}
119
}

Return to bug 187470