blob: e4a637279aae06e4f9ad3142f332dca5e43250b0 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/cm/cm-2.4.0.ebuild,v 1.7 2004/03/19 23:27:21 eradicator Exp $
DESCRIPTION="Common Music: An object oriented music composition environment in LISP/scheme"
HOMEPAGE="http://www-ccrma.stanford.edu/software/cm/doc/cm.html"
SRC_URI="ftp://ftp-ccrma.stanford.edu/pub/Lisp/cm/sources/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
DEPEND=">=dev-util/guile-1.6.4"
src_install() {
dodir /usr/share/${PN}
# the installer part needs the bin dir created
dodir /usr/share/${PN}/bin
touch ${D}/usr/share/${PN}/bin/.keep
dodir /usr/share/${PN}/src
insinto /usr/share/${PN}/src
doins ${S}/src/*
insinto /usr/share/${PN}/src/plotter
doins ${S}/src/plotter/*
dodir /usr/share/${PN}/etc
insinto /usr/share/${PN}/etc
doins ${S}/etc/*
dodir /usr/share/${PN}/contrib
insinto /usr/share/${PN}/contrib
doins ${S}/etc/contrib/*
dodir /usr/share/${PN}/examples
insinto /usr/share/${PN}/examples
doins ${S}/etc/examples/*
dohtml -r doc/*
dodoc ${S}/readme.text ${S}/doc/changelog.text
}
pkg_postinst() {
# when the package is first run it generates the cm script
# that will load the necessary source files into guile when run
guile -c "(load \"/usr/share/cm/src/cm.scm\")"
ln /usr/share/cm/bin/cm /usr/bin/cm
chmod +x /usr/bin/cm
}
# This will break upgrades... find a better way
#pkg_prerm() {
# if [ -e /usr/bin/cm ]; then
# rm /usr/bin/cm
# fi
# if [ -e /usr/share/cm/bin ]; then
# rm -rf /usr/share/cm/bin
# fi
#}
|