diff options
author | Andreas Willich <sabotageandi@gmail.com> | 2011-12-25 22:26:43 +0100 |
---|---|---|
committer | Andreas Willich <sabotageandi@gmail.com> | 2011-12-25 22:26:43 +0100 |
commit | 1307696c71475c34f9a5397de48569a7979d6b3f (patch) | |
tree | 2fd4b6f2e73d8a6b380f7ea8268dc5f8d5060b58 /media-gfx | |
parent | Add vala efl bindings (diff) | |
download | sabotageandi-master.tar.gz sabotageandi-master.tar.bz2 sabotageandi-master.zip |
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/freecad/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/freecad/freecad-9999.ebuild | 98 |
2 files changed, 99 insertions, 0 deletions
diff --git a/media-gfx/freecad/Manifest b/media-gfx/freecad/Manifest new file mode 100644 index 0000000..bb6ba94 --- /dev/null +++ b/media-gfx/freecad/Manifest @@ -0,0 +1 @@ +EBUILD freecad-9999.ebuild 2413 RMD160 3b4fbb245dff8b5ca5b406aea96ce1dadd3b007e SHA1 6f18e719c1d9459c472b6b176fdc257da04aad15 SHA256 59d501b28f103c187c33282de0ecf3c6fe18ddb84b7cf509763a9e3cf0eac2c6 diff --git a/media-gfx/freecad/freecad-9999.ebuild b/media-gfx/freecad/freecad-9999.ebuild new file mode 100644 index 0000000..2b3dbbb --- /dev/null +++ b/media-gfx/freecad/freecad-9999.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/freecad-0.11.3729.ebuild,v 1.6 2011/11/13 20:13:27 dilfridge Exp $ + +EAPI=3 + +PYTHON_DEPEND=2 + +inherit base eutils fortran-2 multilib autotools flag-o-matic python git-2 + +MY_P="freecad-${PV}" +MY_PD="FreeCAD-${PV}" + +DESCRIPTION="QT based Computer Aided Design application" +HOMEPAGE="http://sourceforge.net/apps/mediawiki/free-cad/" +EGIT_REPO_URI="git://free-cad.git.sourceforge.net/gitroot/free-cad/free-cad" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=" + dev-cpp/eigen + dev-games/ode + dev-libs/boost + dev-libs/xerces-c + dev-python/pivy + dev-python/PyQt4[svg] + media-libs/coin + media-libs/SoQt + ~sci-libs/opencascade-6.3 + sci-libs/gts + sys-libs/zlib + virtual/fortran + x11-libs/qt-gui:4 + x11-libs/qt-opengl:4 + x11-libs/qt-svg:4 + x11-libs/qt-webkit:4 + x11-libs/qt-xmlpatterns:4 + x11-libs/qt-qt3support:4" +DEPEND="${RDEPEND} + dev-lang/swig" + +#PATCHES=( "${FILESDIR}/${P}-asneeded.patch" ) + +RESTRICT="bindist mirror" +# http://bugs.gentoo.org/show_bug.cgi?id=352435 +# http://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt + +S="${WORKDIR}/${MY_PD}" + +pkg_setup() { + fortran-2_pkg_setup + python_set_active_version 2 +} + +src_prepare() { + base_src_prepare + ./autogen.sh + eautoreconf +} + +src_configure() { + append-cflags "-DBOOST_FILESYSTEM_VERSION=2" + append-cppflags "-DBOOST_FILESYSTEM_VERSION=2" + append-cxxflags "-DBOOST_FILESYSTEM_VERSION=2" + econf \ + --with-qt4-include="${EPREFIX}"/usr/include/qt4 \ + --with-qt4-bin="${EPREFIX}"//usr/bin \ + --with-qt4-lib="${EPREFIX}"//usr/$(get_libdir)/qt4 \ + --with-occ-include=${CASROOT}/inc \ + --with-occ-lib=${CASROOT}/lib +} + +src_compile() { + # the build system is generating extremely odd errors on parallel build + # seem like moc is trying to process non-existing files, resulting in + # double namespace declarations Bla::Bla::Method in the moc_ files + MAKEOPTS="-j1" base_src_compile +} + +#src_unpack() { +# git_src_unpack +#} + +src_install() { + emake DESTDIR="${D}" install || die "install failed" + + find "${D}" -name "*.la" -exec rm {} + + + dodoc README.Linux ChangeLog.txt || die + + dodir /usr/share/apps/freecad || die + mv "${D}/usr/share/freecad.xpm" "${D}/usr/share/apps/freecad/" || die + + make_desktop_entry FreeCAD FreeCAD /usr/share/apps/freecad/freecad.xpm +} |