blob: fcb5b523016ae499d37a1ca656293f5dab60ed59 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/timidity-shompatches/timidity-shompatches-19960409.ebuild,v 1.3 2004/09/03 20:26:28 eradicator Exp $
IUSE=""
DESCRIPTION="Matsumoto Shoji's patch collection for TiMidity(SC-55 style 10MB)"
HOMEPAGE="http://www.i.h.kyoto-u.ac.jp/~shom/timidity/shominst/shominst-0409.txt"
SRC_URI="http://www.i.h.kyoto-u.ac.jp/~shom/timidity/shominst/shominst-0409.zip"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 sparc amd64 ~ppc"
RDEPEND="media-sound/timidity++"
DEPEND="app-arch/unzip
sys-apps/sed"
S=${WORKDIR}/shompats
src_unpack() {
mkdir ${S}
cd ${S}
unpack ${A}
sed -i -e "s:dir /nethome/sak95/shom/lib/timidity/:dir /usr/share/timidity/shompatches/:" timidity.cfg
sed -i -e "s:^source :source shompatches/:" timidity.cfg
sed -i -e "s:^source :source shompatches/:" sfx.cfg
}
src_install() {
local instdir=/usr/share/timidity
dodir ${instdir}
# Install base timidity configuration
insinto /etc
doins timidity.cfg
dosym /etc/timidity.cfg ${instdir}/timidity.cfg
# Install base shompatches
insinto ${instdir}/shompatches
doins *.cfg
# Install patches from subdirectories
for d in `find . -type f -name \*.pat | sed 's,/[^/]*$,,' | sort -u`; do
insinto ${instdir}/shompatches/${d}
doins ${d}/*.pat
done
}
|