# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit multilib MY_P="FreeCAD-${PVR}" HOMEPAGE="http://sourceforge.net/apps/mediawiki/free-cad/index.php?titl=MAIN_PAGE" SRC_URI="http://downloads.sourceforge.net/free-cad/${MY_P}-2.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" IUSE="" DEPEND="dev-lang/python sci-libs/opencascade x11-libs/qt-core:4 x11-libs/qt-gui:4 x11-libs/qt-svg:4 x11-libs/qt-webkit:4 media-libs/coin sci-libs/gts sys-libs/zlib dev-libs/boost dev-python/PyQt4 dev-libs/xerces-c media-libs/SoQt dev-lang/swig" RDEPEND="${DEPEND}" S="${WORKDIR}/${MY_P}" src_configure () { local myargs="--with-qt4-include=/usr/include/qt4 --with-qt4-bin=/usr/bin --with-qt4-lib=/usr/$(get_libdir)/qt4" econf ${myargs} } src_install () { emake -j3 DESTDIR="${D}" install || install failed }