# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-sound/erec/erec-2.2.0.1.ebuild,v 1.10 2008/01/18 02:06:45 mr_bones_ Exp $ DESCRIPTION="A shared audio recording server" HOMEPAGE="http://bisqwit.iki.fi/source/erec.html" SRC_URI="http://bisqwit.iki.fi/src/arch/${P}.tar.bz2" KEYWORDS="amd64 ~ppc sparc x86" LICENSE="GPL-2" SLOT="0" RDEPEND="virtual/libc" DEPEND="sys-apps/sed" IUSE="" src_unpack() { unpack ${A} cd "${S}" sed -i \ -e "s:BINDIR=/usr/local/bin:BINDIR=${D}usr/bin:" \ -e "s:^\\(ARGHLINK.*-L.*\\):#\\1:" \ -e "s:^#\\(ARGHLINK=.*a\\)$:\\1:" \ -e "s:\$(CXX):\$(CXX) \$(CXXFLAGS) -I\"${S}\"/argh:g" \ Makefile sed -i \ -e "s:CPPFLAGS=:CPPFLAGS=-I\"${S}\"/argh :" \ Makefile.sets echo "" > .depend echo "" > argh/.depend } src_compile() { emake -j1 || die } src_install() { dobin erec || die dodoc README dohtml README.html }