blob: 1471af94770a36d4dbce117522077962724af8bd (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit versionator eutils fdo-mime gnome2-utils
MY_PV="$(delete_all_version_separators ${PV})"
MY_P="${PN/-bin}-${MY_PV}-pc-linux"
DESCRIPTION="Scala is a powerful software tool for experimentation with musical tunings."
HOMEPAGE="http://www.xs4all.nl/~huygensf/scala/"
SRC_URI="http://www.xs4all.nl/~huygensf/software/${MY_P}.tar.bz2"
LICENSE="as-is"
SLOT="0"
KEYWORDS="-* ~x86"
IUSE="midi"
RDEPEND="=virtual/gnat-4.1*
>=dev-ada/gtkada-2.8.0
midi? ( media-sound/playmidi )"
DEPEND=""
RESTRICT="mirror strip test"
S="${WORKDIR}/${MY_P}"
src_unpack() {
unpack ${A}
cd "${S}"
rm -f libgtkada-2.8.so.0 || die "cannot delete bundled gtkada"
}
src_compile() {
einfo "Nothing to compile, installing..."
}
src_install() {
for i in html xpm ; do
insinto /opt/${PN}/${i}
doins ${i}/* || die "doins failed"
done
insinto /opt/${PN}
doins *.{clv,gif,htm,html,kbm,par,scl,seq} scala.{ini,ico} scalarc || die "doins failed"
exeinto /opt/${PN}/cmd
doexe cmd/* || die "doexe failed"
exeinto /opt/${PN}
doexe *.cmd || die "doexe failed"
doexe scala || die "failed to install main binary"
dosym /opt/${PN}/scala /opt/bin/scala
doicon "${FILESDIR}"/${PN}.png
make_desktop_entry scala Scala ${PN} "AudioVideo;Audio;GNOME;GTK;Midi;Music" /opt/${PN}
local docs="cmdlist.txt commands.txt dummies.txt first.txt readme.txt"
dodoc ${docs}
echo "SCALA_HOME=\"/opt/scala-bin\"" > "${T}"/99${PN}
doenvd "${T}"/99${PN}
}
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
elog "A collection of over 3600 scales can be downloaded from"
elog "http://www.xs4all.nl/~huygensf/doc/scales.zip"
elog "Unpack them to /opt/${PN}/scl directory using unzip -a scales.zip command."
elog
elog "NOTE: The -a option is important! The files cannot be opened if"
elog "NOTE: they are unzipped on Linux without this option!"
}
pkg_postrm() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
if [[ -d ${ROOT}/opt/${PN}/scl ]] ; then
elog "Seems that you have installed custom scales to ${ROOT}/opt/${PN}/scl"
elog "You will have to delete this directory manually."
fi
}
|