--- electric-6.07.ebuild 2004-01-12 00:11:20.000000000 +1030 +++ electric-6.08.ebuild 2004-03-15 10:43:42.000000000 +1030 @@ -2,7 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/app-sci/electric/electric-6.07.ebuild,v 1.5 2004/01/11 13:40:32 lanius Exp $ -IUSE="motif" +inherit base + +IUSE="motif qt" DESCRIPTION="Electric is a sophisticated electrical CAD system that can handle many forms of circuit design" HOMEPAGE="http://www.gnu.org/software/electric/electric.html" @@ -13,17 +15,24 @@ KEYWORDS="x86" DEPEND="virtual/glibc - motif? ( x11-libs/openmotif )" + -qt? ( x11-libs/openmotif ) \ + qt? ( >= x11-libs/qt-3.1 )" RDEPEND="" +src_unpack() { + PATCHES="${FILESDIR}/${PV}-fix-sandbox.patch" + use qt && PATCHES="$PATCHES ${FILESDIR}/${PV}-qt.patch" + base_src_unpack +} + src_compile() { econf || die "./configure failed" emake || die } src_install() { - einstall + einstall DESTDIR=${D} install dodoc ChangeLog COPYING README }