blob: 030a50475a06a292efd1eceda32aab12bbabb2fe (
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
|
# 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-r3.ebuild,v 1.1 2004/09/26 22:10:10 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++-2.13.0-r2"
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() {
insinto /usr/share/timidity/shompatches
doins *.cfg
# Install patches from subdirectories
for d in `find . -type f -name \*.pat | sed 's,/[^/]*$,,' | sort -u`; do
insinto /usr/share/timidity/shompatches/${d}
doins ${d}/*.pat
done
}
pkg_postinst() {
einfo "You must run 'timidity-update -g -s shompatches' to set this"
einfo "patchset as the default system patchset."
}
|