diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-03-06 15:24:20 +0000 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2011-03-06 15:24:20 +0000 |
commit | daf23e996a319630ee9049051bd56cf97434494e (patch) | |
tree | 7e0f2d3fb1895706cdc6ac396d187e45b31562d6 /media-gfx/freecad | |
parent | Version bump (diff) | |
download | gentoo-2-daf23e996a319630ee9049051bd56cf97434494e.tar.gz gentoo-2-daf23e996a319630ee9049051bd56cf97434494e.tar.bz2 gentoo-2-daf23e996a319630ee9049051bd56cf97434494e.zip |
New application, fixes bug 291161
(Portage version: 2.1.9.42/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/freecad')
-rw-r--r-- | media-gfx/freecad/ChangeLog | 13 | ||||
-rw-r--r-- | media-gfx/freecad/files/freecad-0.11.3729-asneeded.patch | 12 | ||||
-rw-r--r-- | media-gfx/freecad/freecad-0.11.3729.ebuild | 91 | ||||
-rw-r--r-- | media-gfx/freecad/metadata.xml | 6 |
4 files changed, 122 insertions, 0 deletions
diff --git a/media-gfx/freecad/ChangeLog b/media-gfx/freecad/ChangeLog new file mode 100644 index 000000000000..8f76f9477be3 --- /dev/null +++ b/media-gfx/freecad/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for media-gfx/freecad +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/ChangeLog,v 1.1 2011/03/06 15:24:20 dilfridge Exp $ + +*freecad-0.11.3729 (06 Mar 2011) + + 06 Mar 2011; Andreas K. Huettel <dilfridge@gentoo.org> + +freecad-0.11.3729.ebuild, +files/freecad-0.11.3729-asneeded.patch, + +metadata.xml: + New application, fixes bug 291161; imported from the sci overlay with + cleanups. Thanks to Roelof Wobben, Derk W. te Bokkel, cornicx, and all the + other contributors from the bug report and the overlay. + diff --git a/media-gfx/freecad/files/freecad-0.11.3729-asneeded.patch b/media-gfx/freecad/files/freecad-0.11.3729-asneeded.patch new file mode 100644 index 000000000000..fa6ba663ad81 --- /dev/null +++ b/media-gfx/freecad/files/freecad-0.11.3729-asneeded.patch @@ -0,0 +1,12 @@ +diff -ruN FreeCAD-0.10.3205.orig/acinclude.m4 FreeCAD-0.10.3205/acinclude.m4 +--- FreeCAD-0.10.3205.orig/acinclude.m4 2010-06-05 11:16:14.000000000 +0200 ++++ FreeCAD-0.10.3205/acinclude.m4 2010-11-07 22:35:02.000000000 +0100 +@@ -374,7 +374,7 @@ + fi + + # Make sure not to link against X11 libs so that configure succeeds whithout xserver started +-bnv_try_4="$CXX $fc_qt4_lib_core $LIBS -o myqt myqt.o moc_myqt.o" ++bnv_try_4="$CXX -o myqt myqt.o moc_myqt.o $LIBS $fc_qt4_lib_core" + AC_TRY_EVAL(bnv_try_4) + if test x"$ac_status" != x0; then + AC_MSG_ERROR([Failed to link with Qt, bye...]) diff --git a/media-gfx/freecad/freecad-0.11.3729.ebuild b/media-gfx/freecad/freecad-0.11.3729.ebuild new file mode 100644 index 000000000000..01d6f1b7f33b --- /dev/null +++ b/media-gfx/freecad/freecad-0.11.3729.ebuild @@ -0,0 +1,91 @@ +# 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.1 2011/03/06 15:24:20 dilfridge Exp $ + +EAPI=3 +PYTHON_DEPEND=2 + +inherit base eutils multilib autotools flag-o-matic python + +MY_P="freecad-${PV}" +MY_PD="FreeCAD-${PV}" + +DESCRIPTION="QT based Computer Aided Design application" +HOMEPAGE="http://sourceforge.net/apps/mediawiki/free-cad/" +SRC_URI="mirror://sourceforge/free-cad/${MY_P}.tar.gz" + +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 + media-libs/coin + media-libs/SoQt + >=sci-libs/opencascade-6.3-r3 + sci-libs/gts + sys-devel/gcc[fortran] + sys-libs/zlib + 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 +" +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() { + python_set_active_version 2 +} + +src_prepare() { + base_src_prepare + 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_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 +} diff --git a/media-gfx/freecad/metadata.xml b/media-gfx/freecad/metadata.xml new file mode 100644 index 000000000000..b166de434e3a --- /dev/null +++ b/media-gfx/freecad/metadata.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci</herd> +<maintainer><email>dilfridge@gentoo.org</email></maintainer> +</pkgmetadata> |