diff options
author | Michael Weber <xmw@gentoo.org> | 2014-07-29 20:36:54 +0000 |
---|---|---|
committer | Michael Weber <xmw@gentoo.org> | 2014-07-29 20:36:54 +0000 |
commit | 48f3170c20ace4af0d703afe0766e9ce43d87849 (patch) | |
tree | 7e960b5c1e7832def4e428227de0b66ff0a409f5 /media-gfx/freecad | |
parent | x86 stable wrt bug #517502 (diff) | |
download | historical-48f3170c20ace4af0d703afe0766e9ce43d87849.tar.gz historical-48f3170c20ace4af0d703afe0766e9ce43d87849.tar.bz2 historical-48f3170c20ace4af0d703afe0766e9ce43d87849.zip |
Add live ebuild (bug 501138) and version bump (bug 517790) w/o keywords for testing reasons.
Package-Manager: portage-2.2.10/cvs/Linux x86_64
Manifest-Sign-Key: 0x62EEF090
Diffstat (limited to 'media-gfx/freecad')
-rw-r--r-- | media-gfx/freecad/ChangeLog | 11 | ||||
-rw-r--r-- | media-gfx/freecad/Manifest | 14 | ||||
-rw-r--r-- | media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch | 21 | ||||
-rw-r--r-- | media-gfx/freecad/freecad-0.14.3702.ebuild | 136 | ||||
-rw-r--r-- | media-gfx/freecad/freecad-9999.ebuild | 136 |
5 files changed, 312 insertions, 6 deletions
diff --git a/media-gfx/freecad/ChangeLog b/media-gfx/freecad/ChangeLog index 39c11fc2bcdd..117829866bda 100644 --- a/media-gfx/freecad/ChangeLog +++ b/media-gfx/freecad/ChangeLog @@ -1,6 +1,15 @@ # 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.20 2014/07/28 15:40:47 xmw Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-gfx/freecad/ChangeLog,v 1.21 2014/07/29 20:36:46 xmw Exp $ + +*freecad-9999 (29 Jul 2014) +*freecad-0.14.3702 (29 Jul 2014) + + 29 Jul 2014; Michael Weber <xmw@gentoo.org> + +files/freecad-0.14.3702-install-paths.patch, +freecad-0.14.3702.ebuild, + +freecad-9999.ebuild: + Add live ebuild (bug 501138) and version bump (bug 517790) w/o keywords for + testing reasons. 28 Jul 2014; Michael Weber <xmw@gentoo.org> freecad-0.13.1830-r1.ebuild: Add dev-qt/designer:4 dependency (thanks Rafael Lorandi, bug 513148). diff --git a/media-gfx/freecad/Manifest b/media-gfx/freecad/Manifest index 77b02cb2a571..a99c29ce6a22 100644 --- a/media-gfx/freecad/Manifest +++ b/media-gfx/freecad/Manifest @@ -21,18 +21,22 @@ AUX freecad-0.13.1830-no-machdist.patch 485 SHA256 342a8e337b9506851afab664644ef AUX freecad-0.13.1830-occ-6.7.patch 2354 SHA256 3c5ce4fdb5af8c39309ccb50ee4f8244c388907b90d92b9cad873992cf3d8bad SHA512 b3cbcdfec41a1504801b64aeffb9f3b95a0ced141fab0e8a72aba038209b956ab6204ee63d815a8d4361ef98e10d5c86cb01538f9489eabe5fe4615ed24bfcb3 WHIRLPOOL 2836fc785dd3a08572bb318cb254360b07e6246b32f72434e159ca3f130886677c07cc283812ac86040362efbed3e0996e5d627d5b0a5d02d7c950197584a902 AUX freecad-0.13.1830-remove-qt3-support.patch 1165 SHA256 dab93f53d16aa2b22a4c97203efb3dbe87562c7afeb6d3a3bef3f26492344f59 SHA512 479d2b5f1e5e8a1d0ffac6eb0ae3ef913530a700cabbee160471c131b1a898063be9feebb38e8870691da9d81e66924784e157a524339103713a2691ce3e6ae5 WHIRLPOOL 28c78c61de550964d6e12033bcf53876eeff2e474af67f6274f6eb0734ede7d00adb4bcd7e0a16556a1a90660c1a15d9ebf1e1b245da5bb377ccb7824d26224b AUX freecad-0.13.1830-startpage-links.patch 5549 SHA256 14913231fd7f0314bc4c4c7be0c3b9ee689aea98ded2269a40b8e855c15da225 SHA512 1365d2099121a4aa186f6efbb9ff2345d8cec698226ea04ca81ee5b4da6759fb9944382eccafadc622969910c410f3afc07e8387287ad765518c49130fc75f9e WHIRLPOOL f26f73b76ce1734b5cc973f726a723dd23f0e6968b7a246b3ae3fbadcaf6e08d087c45aa99e472597bb5b9e8a297b36dcfc8e0ff6e33a56408b467216bdacffe +AUX freecad-0.14.3702-install-paths.patch 1143 SHA256 3a16c5568f88e5a92a0b4d3c567a4851a9411b402ee6008443db371afd3f9270 SHA512 12181e4b48e4fb6284b574cb9872af713323d8f229a6c1746424968b0d22300bd6ada6437854a730dd4c5310eb36ebb06a35375ab012d36e9d3af4fb4271d884 WHIRLPOOL e4b7a3e3522929102c8658b0fabdeb571b2c9fec720f11923a5b327d6ef7b85a0dc20e958dce1d1caa1b49e228136cc7f7816d026750cdedbdd9ef8d63e500dd DIST freecad-0.12.5284.tar.gz 48399004 SHA256 45486c6cc3ae212fd3eba994c603fd97962c7f505bf2a807d1533f9ee6d6026d SHA512 f1fee73ae7b43e7b3a136847f0dbb0b3f3e8f62ad3a9063f759efd8b9ed5a0dfff54961870465f37c0563161c4c5e2821f1f3379ead72dbdeddae36702e2ec0a WHIRLPOOL 7a46119d86a5d43ae8eaec6b5532e4739d54b0443769381630e644aa16c3f4185b63b513e4350c7562beacd86d56a7edbb3b506d10cb54190cbeaab48a504d5f DIST freecad-0.13.1830.tar.gz 70168706 SHA256 550ed16225e4cd67a463ae9b826f3a64edf7d2819cc8d235b15a89e10be72f13 SHA512 3e8d4eed8cace38da9615965f79a2b0da21d31a6df793ceaf3f732e0abd5666e9715ec9eb162e6ff998718e8d609a7dff2d0993b28f493200b734318a2322160 WHIRLPOOL 6d41565423edf8a0c67901a8559600ff1088f645c3ecb4aad8d7597490522f80d6475af3e7f5a623fc30b4d1571187bf6e6a132e6c480825798b957bea90bb83 +DIST freecad-0.14.3702.tar.gz 66927339 SHA256 ee24cf3542bfb1a887a12d2df52458bcc0e3e82679370c449b9d8b5b473b9dc9 SHA512 6333bc8256728084b492687c5c6a5b3356212cbcab4bf0beb95fcdb0f9ac7c49df8eee0275e83feadc7b2460cf2396e88b0b309cbc1e1c9d46375bcadb334c13 WHIRLPOOL eb7d22f255536d4fde5a182e5b59c63eb38a6d70ecf0b6a7abdf1d76c00c51492c517053d09eb56d5657d8cc3a49bad56e67e8965ce03d27982d36dcd1944982 EBUILD freecad-0.12.5284-r4.ebuild 3713 SHA256 37dc7913965f3a0b686b70c1f66b47f248a188b3294ac5b892b8f13d98d91c71 SHA512 91efeaedc89df00c3d1495720915a46c63eb856ff343871a5dbe179d5e96e5d6f1326e4b101fb12d2386f93cbafa456ccc7157bd849822c7b8aead53c9ccc3b7 WHIRLPOOL 7722d4698937a98f75516352790bbd9efade325325152a0f74712d414fa8d38f6f5dba6670a12538185a81aa9b5fbc793fb7efa44531cec204aa597b9952bc0d EBUILD freecad-0.13.1830-r1.ebuild 4582 SHA256 0298cc59c562cd6f037a89b5804733360c5f9f73722d94d5ff507ad4d31938aa SHA512 c4922ddf1f4302d48278362338a575cd1bb6483537253d4b2c6a6959a2786951a06445df5ef744feb07ff8c180ab8730587c148a8c134f4f5200d480ad36a66f WHIRLPOOL 2533d440111f982271c163e95b2605e08762a08b21e3de646425d154fb29c0db21d1f3c20161ba98fdde9d3c3ba183d6ebd00c24e114e1eee21f0b338da60d8b -MISC ChangeLog 4621 SHA256 fecb11fdbe11b2562748b2611aac8b709ef2b1e9928202069e1a07cd0d9fccfa SHA512 bf9d30f6b4cad1c25c9b5c7b4db9d2206ad99a920d52e980e6347d29205b5f49f2c166c0afd057109c780a2b910d1d903ae219bfc6c355a4dfb347d32182cf1e WHIRLPOOL 4b2702ea24202e250b02daef1eb3bac0b6c0c429f8a2db41bb677bd97575d3ab53b9dc5a64035cb6c5006fc08d77a467a5a0759584b8059e8021d9ebac7a1dba +EBUILD freecad-0.14.3702.ebuild 3948 SHA256 85120f1cd1720f5df88fb01fb3513ea4524ec1d4db54a4a06aee334eff938f65 SHA512 95f02da858331542b5432b134329896031181d663827669f95820f3f892307fb330fb4951d9c1fff9cbc0dd6b76f93fba42e1c5eb86883cdfe368e0967b7e050 WHIRLPOOL 1e308fc10d07e7f533c093db482800f6a3a4db31ec41685b8562d6f8eab024796a784e60385d91d04177aedc83c6657d60a4727cba5e4cb3d2ea0efd1a70e997 +EBUILD freecad-9999.ebuild 3963 SHA256 4a644ed5cd4bf0f88fad5004ee6ef7c12d2355fd2266f279d8d306ee51e37f3b SHA512 2183e32a4255c41cd6b1dedffc61ff9e3eed9bc8a142262c2490a5a22323bac4c5dc3b444330f8c09b21230ea714b14d2ca8d2f51c46275817d518c408ad4a62 WHIRLPOOL 4e0d870b3671459d84be76b3302f43bebd114645373fe2042dc419dcee3456400c4b11aa3dad7bf42f41c822dadf7a1754821da7b9477f9d0bf41911efc3754a +MISC ChangeLog 4926 SHA256 605478a3bbd769002a3068190031c842d79f167ba45daff970d910cb89bd1de0 SHA512 7dece5d4972cfc05ab6b7f5338108aec4828047f153516279909570ff36143142119908fb78b3176b16ba0a965c9edd5b08b8edab25c66d70285c869aa20d5d9 WHIRLPOOL c7a6441542d2d77b5c52fa502cd0eaeaa4b19ad1dc0eee5f06d0b98d13d15d3345eef02469a4b69dc30333891ce2ae1cb75be8e7bdfc85e952e774ca4a586998 MISC metadata.xml 224 SHA256 f810c6de744adceee241992d3f713142db3e7025986f6cc5898cfe3c9cb2f4a7 SHA512 4f78d959809ec0db2f9be2a7747d572fa8ee03d177044dd46574881a6ee83736510b76062c12daecae609282d197ba466e8a3e3a654b1383e04c659acd41bef5 WHIRLPOOL 0300a228d371c918b051bc24859dfe4e5d0d2a71b80f697f202749c5aca69efcee4be6e69454c9abfa4ced28e19a9d1f71d6d7eaf54290b8d03b5c04fd209868 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 -iL4EAREIAGYFAlPWbwZfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl +iL4EAREIAGYFAlPYBeVfFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl bnBncC5maWZ0aGhvcnNlbWFuLm5ldDY3QjA4MzdGODg1NUMxMjIzNUQ0MDgxNzky -N0FERDBDNjJFRUYwOTAACgkQknrdDGLu8JAJ/wD/adUhu8K+/a3956N3yhpEEIyW -JA9pwh4oUxXqWLjIcpsA/06G0zzB4eHZ1CHskWdTAqBgopNQr4QMK1U64qkA8jVI -=dNpk +N0FERDBDNjJFRUYwOTAACgkQknrdDGLu8JDbvQEAkzRvOGvdY4z8SjAAc/UraG3L +CuzAg91c2jY1OVgW7q8BAJHu5x2qOOJHrbwYhSXtdxdEPWWJX359pQgIbHs98qxb +=I9hg -----END PGP SIGNATURE----- diff --git a/media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch b/media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch new file mode 100644 index 000000000000..d042695e88c6 --- /dev/null +++ b/media-gfx/freecad/files/freecad-0.14.3702-install-paths.patch @@ -0,0 +1,21 @@ +--- freecad-0.14.3702/CMakeLists.txt ++++ freecad-0.14.3702/CMakeLists.txt +@@ -69,9 +69,15 @@ + SET(CMAKE_INSTALL_PREFIX "/usr/lib${LIB_SUFFIX}/freecad" CACHE PATH "Installation root directory") + endif(WIN32) + +-SET(CMAKE_INSTALL_DATADIR data CACHE PATH "Output directory for data and resource files") +-SET(CMAKE_INSTALL_INCLUDEDIR include CACHE PATH "Output directory for header files") +-SET(CMAKE_INSTALL_DOCDIR doc CACHE PATH "Output directory for documentation and license files") ++if(NOT CMAKE_INSTALL_DATADIR) ++ SET(CMAKE_INSTALL_DATADIR data CACHE PATH "Output directory for data and resource files") ++endif(NOT CMAKE_INSTALL_DATADIR) ++if(NOT CMAKE_INSTALL_INCLUDEDIR) ++ SET(CMAKE_INSTALL_INCLUDEDIR include CACHE PATH "Output directory for header files") ++endif(NOT CMAKE_INSTALL_INCLUDEDIR) ++if(NOT CMAKE_INSTALL_DOCDIR) ++ SET(CMAKE_INSTALL_DOCDIR doc CACHE PATH "Output directory for documentation and license files") ++endif(NOT CMAKE_INSTALL_DOCDIR) + # Don't set it without manual adaption of LibDir variable in src/App/FreeCADInit.py + SET(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Output directory for libraries") + diff --git a/media-gfx/freecad/freecad-0.14.3702.ebuild b/media-gfx/freecad/freecad-0.14.3702.ebuild new file mode 100644 index 000000000000..7188c83d095a --- /dev/null +++ b/media-gfx/freecad/freecad-0.14.3702.ebuild @@ -0,0 +1,136 @@ +# 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.ebuild,v 1.1 2014/07/29 20:36:46 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="" +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 + + 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 new file mode 100644 index 000000000000..ce6aaab3681a --- /dev/null +++ b/media-gfx/freecad/freecad-9999.ebuild @@ -0,0 +1,136 @@ +# 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 $ + +EAPI=5 + +PYTHON_COMPAT=( python2_{6,7} ) + +inherit cmake-utils eutils git-2 fortran-2 multilib python-single-r1 + +DESCRIPTION="QT based Computer Aided Design application" +HOMEPAGE="http://www.freecadweb.org/" +EGIT_REPO_URI="git://git.code.sf.net/p/free-cad/code" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +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}"/${PN}-0.14.3702-install-paths.patch + + 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/ +} |