# Copyright 1999-2006 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-r4.ebuild,v 1.5 2006/12/03 18:54:30 flameeyes 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="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd" RDEPEND="" DEPEND="app-arch/unzip app-admin/eselect-timidity" RESTRICT="binchecks strip" S=${WORKDIR} src_unpack() { 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 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() { eselect timidity update --global --if-unset }