# Copyright 1999-2005 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit kde need-kde 3.5 DESCRIPTION="Hotswap allows you to register and unregister hotswappable IDE device" LICENSE="GPL-2" HOMEPAGE="http://timstadelmann.de/hotswap.html" SRC_URI="http://timstadelmann.de/${P}.tar.gz" RESTRICT="nomirror" IUSE="kde motif" SLOT="0" KEYWORDS="~x86 ~amd64" src_compile () { local myconf="" use kde || myconf=" $myconf --disable-kde-frontend" use motif || myconf=" $myconf --disable-motif-frontend" econf ${myconf} || die "econf failed" emake bindir=${S} || die "emake failed" sed -i -e 's|$(bindir)/hotswap|$(DESTDIR)/$(bindir)/hotswap|' "src/Makefile" }