diff options
author | Michael Weber <xmw@gentoo.org> | 2014-08-15 13:53:23 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2014-08-15 13:53:23 +0000 |
commit | 188b121d0d4c63e5aa8826040cace77bbd6f7c65 (patch) | |
tree | 4baccb93f87a36f20ad5422533582a643c944be3 /media-gfx/freecad | |
parent | Mask FEATURES=test on dev-ruby/haml since it pulls in rails, and so nodejs wh... (diff) | |
download | gentoo-2-188b121d0d4c63e5aa8826040cace77bbd6f7c65.tar.gz gentoo-2-188b121d0d4c63e5aa8826040cace77bbd6f7c65.tar.bz2 gentoo-2-188b121d0d4c63e5aa8826040cace77bbd6f7c65.zip |
Revbump to fix module search path, big thanks to Casey Bralla and Marek for working this out with upstream (bug 518996).
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Diffstat (limited to 'media-gfx/freecad')
-rw-r--r-- | media-gfx/freecad/ChangeLog | 9 | ||||
-rw-r--r-- | media-gfx/freecad/freecad-0.14.3702-r1.ebuild | 140 | ||||
-rw-r--r-- | media-gfx/freecad/freecad-9999.ebuild | 6 |
3 files changed, 153 insertions, 2 deletions
diff --git a/media-gfx/freecad/ChangeLog b/media-gfx/freecad/ChangeLog index 117829866bda..dfd5d0a1dd0c 100644 --- a/media-gfx/freecad/ChangeLog +++ b/media-gfx/freecad/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-gfx/freecad # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/ChangeLog,v 1.21 2014/07/29 20:36:46 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/ChangeLog,v 1.22 2014/08/15 13:53:23 xmw Exp $ + +*freecad-0.14.3702-r1 (15 Aug 2014) + + 15 Aug 2014; Michael Weber <xmw@gentoo.org> +freecad-0.14.3702-r1.ebuild, + freecad-9999.ebuild: + Revbump to fix module search path, big thanks to Casey Bralla and Marek for + working this out with upstream (bug 518996). *freecad-9999 (29 Jul 2014) *freecad-0.14.3702 (29 Jul 2014) diff --git a/media-gfx/freecad/freecad-0.14.3702-r1.ebuild b/media-gfx/freecad/freecad-0.14.3702-r1.ebuild new file mode 100644 index 000000000000..c8748d7c9851 --- /dev/null +++ b/media-gfx/freecad/freecad-0.14.3702-r1.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/freecad-0.14.3702-r1.ebuild,v 1.1 2014/08/15 13:53:23 xmw Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_{6,7} ) + +inherit cmake-utils eutils fortran-2 multilib python-single-r1 + +DESCRIPTION="QT based Computer Aided Design application" +HOMEPAGE="http://www.freecadweb.org/" +SRC_URI="mirror://sourceforge/free-cad/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEPEND="dev-cpp/eigen:3 + dev-games/ode + dev-libs/boost + dev-libs/libf2c + dev-libs/libspnav[X] + dev-libs/xerces-c[icu] + dev-python/matplotlib + dev-python/shiboken + dev-qt/designer:4 + dev-qt/qtgui:4 + dev-qt/qtopengl:4 + dev-qt/qtsvg:4 + dev-qt/qtwebkit:4 + media-libs/SoQt + media-libs/coin[doc] + net-libs/ptlib + sci-libs/gts + sci-libs/opencascade + sys-libs/zlib + virtual/glu + ${PYTHON_DEPS}" +RDEPEND="${COMMON_DEPEND} + dev-qt/assistant:4 + dev-python/pycollada + dev-python/pivy + dev-python/PyQt4[svg] + dev-python/pyopencl + dev-python/numpy" +DEPEND="${COMMON_DEPEND} + >=dev-lang/swig-2.0.4-r1:0" + +# http://bugs.gentoo.org/show_bug.cgi?id=352435 +# http://www.gentoo.org/foundation/en/minutes/2011/20110220_trustees.meeting_log.txt +RESTRICT="bindist mirror" + +# TODO: +# DEPEND and RDEPEND: +# salome-smesh - science overlay +# zipio++ - not in portage yet + +pkg_setup() { + fortran-2_pkg_setup + python-single-r1_pkg_setup +} + +src_prepare() { + einfo remove bundled libs + rm -rf src/3rdParty/{boost,Pivy*} + + epatch "${FILESDIR}"/${P}-install-paths.patch + + #bug 518996 + sed -e "/LibDir = /s:'lib':'"$(get_libdir)"':g" \ + -i src/App/FreeCADInit.py || die + + einfo "Patching cMake/FindCoin3DDoc.cmake ..." + local my_coin_version=$(best_version media-libs/coin) + local my_coin_path="${EROOT}"usr/share/doc/${my_coin_version##*/}/html + sed -e "s:/usr/share/doc/libcoin60-doc/html:${my_coin_path}:" \ + -i cMake/FindCoin3DDoc.cmake || die +} + +src_configure() { + local my_occ_env=${EROOT}etc/env.d/50opencascade + if [ -e "${EROOT}etc//env.d/51opencascade" ] ; then + my_occ_env=${EROOT}etc/env.d/51opencascade + fi + export CASROOT=$(sed -ne '/^CASROOT=/{s:.*=:: ; p}' $my_occ_env) + + local mycmakeargs=( + -DOCC_INCLUDE_DIR="${CASROOT}"/inc + -DOCC_INCLUDE_PATH="${CASROOT}"/inc + -DOCC_LIBRARY="${CASROOT}"/lib/libTKernel.so + -DOCC_LIBRARY_DIR="${CASROOT}"/lib + -DOCC_LIB_PATH="${CASROOT}"/lib + -DCOIN3D_INCLUDE_DIR="${EROOT}"usr/include/coin + -DCOIN3D_LIBRARY="${EROOT}"usr/$(get_libdir)/libCoin.so + -DSOQT_LIBRARY="${EROOT}"usr/$(get_libdir)/libSoQt.so + -DSOQT_INCLUDE_PATH="${EROOT}"usr/include/coin + -DCMAKE_INSTALL_PREFIX="${EROOT}"usr/$(get_libdir)/${P} + -DCMAKE_INSTALL_DATADIR="${EROOT}"usr/share/${P}/ + -DCMAKE_INSTALL_DOCDIR="${EROOT}"usr/share/doc/${P}/ + -DCMAKE_INSTALL_INCLUDEDIR="${EROOT}"usr/include/${P}/ + -DFREECAD_USE_EXTERNAL_PIVY="ON" + -DFREECAD_BUILD_FEM="OFF" + ) + + # TODO to remove embedded dependencies: + # + # -DFREECAD_USE_EXTERNAL_ZIPIOS="ON" -- this option needs zipios++ but it's not yet in portage so the embedded zipios++ + # (under src/zipios++) will be used + # salomesmesh is in 3rdparty but upstream's find_package function is not complete yet to compile against external version + # (external salomesmesh is available in "science" overlay) + + cmake-utils_src_configure + ewarn "${P} will be built against opencascade version ${CASROOT}" +} + +src_install() { + cmake-utils_src_install + + prune_libtool_files + + make_wrapper FreeCAD \ + "${EROOT}"usr/$(get_libdir)/${P}/bin/FreeCAD \ + "" "${EROOT}"usr/$(get_libdir)/${P}/lib + make_wrapper FreeCADCmd \ + "${EROOT}"usr/$(get_libdir)/${P}/bin/FreeCADCmd \ + "" "${EROOT}"usr/$(get_libdir)/${P}/lib + + newicon src/Main/icon.ico ${PN}.ico + make_desktop_entry FreeCAD + + dodoc README.Linux ChangeLog.txt + + # disable compression of QT assistant help files + >> "${ED}"usr/share/doc/${P}/freecad.qhc.ecompress.skip + >> "${ED}"usr/share/doc/${P}/freecad.qch.ecompress.skip + + python_optimize "${ED}"usr/{$(get_libdir),share}/${P}/Mod/ +} diff --git a/media-gfx/freecad/freecad-9999.ebuild b/media-gfx/freecad/freecad-9999.ebuild index ce6aaab3681a..9ea6afa50a25 100644 --- a/media-gfx/freecad/freecad-9999.ebuild +++ b/media-gfx/freecad/freecad-9999.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/freecad-9999.ebuild,v 1.1 2014/07/29 20:36:46 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/freecad-9999.ebuild,v 1.2 2014/08/15 13:53:23 xmw Exp $ EAPI=5 @@ -68,6 +68,10 @@ src_prepare() { #epatch "${FILESDIR}"/${PN}-0.14.3702-install-paths.patch + #bug 518996 + sed -e "/LibDir = /s:'lib':'"$(get_libdir)"':g" \ + -i src/App/FreeCADInit.py || die + einfo "Patching cMake/FindCoin3DDoc.cmake ..." local my_coin_version=$(best_version media-libs/coin) local my_coin_path="${EROOT}"usr/share/doc/${my_coin_version##*/}/html |