# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ LICENSE="GPL-2" KEYWORDS="~x86" DESCRIPTION="A real-time sound effects processor, including wah-wah, distortion, reverb, and others." SRC_URI="mirror://sourceforge/gnuitar/${P}.tar.bz2" HOMEPAGE="http://ns2.ziet.zhitomir.ua/~fonin/" SLOT="0" IUSE="" DEPEND="=x11-libs/gtk+-1.2*" src_unpack() { unpack ${A} cd ${S} # this patch fixes a compile error epatch ${FILESDIR}/strncat-fix-0.3.1.diff } src_install() { # run the main installation script einstall || die # "GNUitar executable file should be setuid root to process sound # with real-time priority; otherwise you'll hear glitches and delays # while switching between windows. It switches to real user id as so # on as it set real-time priority to effect-processing thread, and # before any GTK initializations are being performed, so it # shouldn't break security on your system." fperms 4111 /usr/bin/gnuitar # gnuitar doesn't install an icon for itself except in MS ICO format # so we install one dodir /usr/share/pixmaps/gnuitar insinto /usr/share/pixmaps/gnuitar doins ${FILESDIR}/main-icon.png # gnuitar doesn't install a GNOME/KDE menu item, so we do that insinto /usr/share/applications doins ${FILESDIR}/gnuitar.desktop # packages are supposed to install docs to /usr/share/doc/xx-x.x.x/ # so we rename the directory gnuitar installs to. mv ${D}/usr/share/doc/gnuitar/ ${D}/usr/share/doc/${PF}/ }