diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2019-12-13 11:49:40 +0100 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2019-12-13 11:49:40 +0100 |
commit | 20692edb71797a11dbdb5f31a0afea1e08244157 (patch) | |
tree | efe344d99313bb9f09114b08f2e41776ebd502cd | |
parent | media-gfx/meshlab-9999: updated patch (diff) | |
download | fordfrog-20692edb71797a11dbdb5f31a0afea1e08244157.tar.gz fordfrog-20692edb71797a11dbdb5f31a0afea1e08244157.tar.bz2 fordfrog-20692edb71797a11dbdb5f31a0afea1e08244157.zip |
media-gfx/freecad: removed
use https://github.com/waebbl/waebbl-gentoo instead
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
-rw-r--r-- | media-gfx/freecad/Manifest | 3 | ||||
-rw-r--r-- | media-gfx/freecad/files/freecad.sharedmimeinfo | 8 | ||||
-rw-r--r-- | media-gfx/freecad/freecad-9999.ebuild | 272 | ||||
-rw-r--r-- | media-gfx/freecad/metadata.xml | 50 |
4 files changed, 0 insertions, 333 deletions
diff --git a/media-gfx/freecad/Manifest b/media-gfx/freecad/Manifest deleted file mode 100644 index c305d6bca..000000000 --- a/media-gfx/freecad/Manifest +++ /dev/null @@ -1,3 +0,0 @@ -AUX freecad.sharedmimeinfo 312 BLAKE2B 731f28f904bebac03c8a64778d5e36f9b26fa33c347fa0b67113752aea12568f5a19968e730a53da89a7c7d08db6f8d80f11ab30d011e6b4db973c8549f710bd SHA512 bb55cad8387032af0e06ce7f1b4cab4354a34a915b9f550de25e05bf24d4161d9ea152d5692d65df4b362622f76a11d78894deaf7fee60c7a3fc0bfec38fa10c -EBUILD freecad-9999.ebuild 7381 BLAKE2B a7e2462f382c68c81c84811af0ba3fe2eacea437cd2df26dcf00c1380a8f354861636cda0a032dcd4b187cb258674cca79069dedcd6cf9ed7a50a7e6a74736cb SHA512 55bde4673ab8227ae9394e361fa1c1541d5383ed34758b0862b72b709322025227bee83f48e514be5a124a39eaaad17450393077e707083b838dab01f62a2219 -MISC metadata.xml 3503 BLAKE2B 839015c3b661f9105b7c172759bd7c9d120ff5c5e0c1a5a5c1c8309d9460b33dc3cd79b6ffe56bb9a25c5d0e3787b4e0ee8d253896fece96726bed8f130dbde6 SHA512 a45523d4f059df0f9257517f24763bb94ec8fa0400967295e43ca8747e174ff3183166f279962d2e3f23054c5db9d7e43bfa610e06068ccc4eb4884edf922a9d diff --git a/media-gfx/freecad/files/freecad.sharedmimeinfo b/media-gfx/freecad/files/freecad.sharedmimeinfo deleted file mode 100644 index 6d5e93e7d..000000000 --- a/media-gfx/freecad/files/freecad.sharedmimeinfo +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'> - <mime-type type="application/x-extension-fcstd"> - <!-- <sub-class-of type="application/zip"/> --> - <comment>FreeCAD document files</comment> - <glob pattern="*.fcstd"/> - </mime-type> -</mime-info> diff --git a/media-gfx/freecad/freecad-9999.ebuild b/media-gfx/freecad/freecad-9999.ebuild deleted file mode 100644 index 77427c371..000000000 --- a/media-gfx/freecad/freecad-9999.ebuild +++ /dev/null @@ -1,272 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -# As of 2017-12-30 only python3_5 works (that is FreeCAD does not crash on startup) -PYTHON_COMPAT=( python3_6 ) - -inherit cmake-utils eutils xdg-utils gnome2-utils fortran-2 python-single-r1 - -DESCRIPTION="QT based Computer Aided Design application" -HOMEPAGE="http://www.freecadweb.org/" - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/FreeCAD/FreeCAD.git" -else - SRC_URI="https://github.com/FreeCAD/FreeCAD/archive/${PV}.tar.gz -> ${P}.tar.gz - doc? ( https://github.com/FreeCAD/FreeCAD/releases/download/0.18.1/FreeCAD.${MY_PV}.Quick.Reference.Guide.7z -> ${P}.Quick.Reference.Guide.7z )" - KEYWORDS="~amd64 ~x86" -fi - -LICENSE="GPL-2" -SLOT="0" - -# Takem from CMakeLists.txt -# TODO: -# vr: needs a rift package -IUSE_FREECAD_MODULES=" - +freecad_modules_addonmgr - +freecad_modules_arch - freecad_modules_assembly - freecad_modules_complete - +freecad_modules_draft - +freecad_modules_drawing - +freecad_modules_fem - freecad_modules_flat_mesh - +freecad_modules_idf - +freecad_modules_image - +freecad_modules_import - +freecad_modules_inspection - freecad_modules_jtreader - +freecad_modules_material - +freecad_modules_mesh - +freecad_modules_mesh_part - +freecad_modules_openscad - +freecad_modules_part - +freecad_modules_part_design - +freecad_modules_path - freecad_modules_plot - +freecad_modules_points - +freecad_modules_raytracing - +freecad_modules_reverseengineering - +freecad_modules_robot - freecad_modules_sandbox - freecad_modules_ship - +freecad_modules_show - +freecad_modules_sketcher - +freecad_modules_spreadsheet - +freecad_modules_start - +freecad_modules_surface - +freecad_modules_techdraw - freecad_modules_template - +freecad_modules_test - +freecad_modules_tux - +freecad_modules_web" -IUSE="doc eigen3 +freetype +qt5 swig ${IUSE_FREECAD_MODULES}" - -# TODO: -# DEPEND and RDEPEND: -# salomesmesh - science overlay -# zipio++ - not in portage yet -COMMON_DEPEND=" - ${PYTHON_DEPS} - dev-java/xerces - dev-libs/boost:=[python,${PYTHON_USEDEP}] - dev-libs/xerces-c[icu] - sci-libs/orocos_kdl - sci-libs/opencascade[vtk(+)] - sys-libs/zlib - virtual/glu - eigen3? ( dev-cpp/eigen:3 ) - freecad_modules_draft? ( dev-python/pyside:2[svg,${PYTHON_USEDEP}] ) - freecad_modules_fem? ( - sci-libs/hdf5 - sci-libs/med[fortran,${PYTHON_USEDEP}] - virtual/mpi[cxx] - ) - freecad_modules_plot? ( dev-python/matplotlib[${PYTHON_USEDEP}] ) - freetype? ( media-libs/freetype ) - qt5? ( - dev-libs/libspnav - dev-python/pyside:2[${PYTHON_USEDEP}] - dev-python/shiboken:2[${PYTHON_USEDEP}] - dev-qt/qtconcurrent:5 - dev-qt/qtcore:5 - dev-qt/qtnetwork:5 - dev-qt/qtopengl:5 - dev-qt/qtprintsupport:5 - dev-qt/qtsvg:5 - dev-qt/qtxml:5 - dev-qt/qtwebkit:5 - media-libs/coin - ) - !qt5? ( - dev-python/pyside:0[${PYTHON_USEDEP}] - dev-python/shiboken:0[${PYTHON_USEDEP}] - )" -RDEPEND="${COMMON_DEPEND} - dev-python/numpy[${PYTHON_USEDEP}] - dev-python/pivy[${PYTHON_USEDEP}]" -DEPEND="${COMMON_DEPEND} - qt5? ( dev-python/pyside-tools:2[${PYTHON_USEDEP}] ) - !qt5? ( dev-python/pyside-tools:0[${PYTHON_USEDEP}] ) - swig? ( dev-lang/swig:= )" - -REQUIRED_USE="${PYTHON_REQUIRED_USE}" - -DOCS=( README.md ChangeLog.txt ) - -enable_module() { - local module=${1} - local value=${2} - - if [ -z "${value}" ]; then - value=$(use freecad_modules_${module} && echo ON || echo OFF) - fi - - echo "-DBUILD_${module^^}=${value}" -} - -pkg_setup() { - fortran-2_pkg_setup - python-single-r1_pkg_setup - - [[ -z ${CASROOT} ]] && die "empty \$CASROOT, run eselect opencascade set or define otherwise" -} - -src_configure() { - local occ=$(basename ${CASROOT}) - local occ_type - local occ_include - local occ_lib - - occ=${occ%-*} - - case ${occ} in - oce) - occ_type="Community Edition" - occ_include=/usr/include/oce - occ_lib=/usr/$(get_libdir)/libTKernel.so - ;; - opencascade) - occ_type="Official Version" - occ_include="${CASROOT}"/include/opencascade - occ_lib="${CASROOT}"/lib/libTKernel.so - ;; - *) - die "Unsupported occ: ${occ}" - ;; - esac - - einfo "OCC: ${occ_type}" - einfo " OCC_INCLUDE_DIR=${occ_include}" - einfo " OCC_LIBRARY_DIR=${occ_lib}" - - # TODO - # FREECAD_USE_EXTERNAL_ZIPIOS="ON": needs zipois++ which is not in tree yet - # FREECAD_USE_EXTERNAL_SMESH="ON": needs salome-smash which is not in tree yet - #-DOCC_* defined with cMake/FindOpenCasCade.cmake - # VR module not included here as we do not support it - local mycmakeargs=( - -DFREECAD_USE_OCC_VARIANT="\"${occ_type}\"" - -DOCC_INCLUDE_DIR=${occ_include} - -DOCC_LIBRARY=${occ_lib} - -DCMAKE_INSTALL_DATADIR=/usr/share/${P} - -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} - -DCMAKE_INSTALL_INCLUDEDIR=/usr/include/${P} - -DCMAKE_INSTALL_PREFIX=/usr/$(get_libdir)/${PN} - -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/${PF} - -DFREECAD_USE_EXTERNAL_KDL="ON" - -DBUILD_QT5="$(usex qt5)" - -DBUILD_GUI="$(usex qt5)" - -DBUILD_FREETYPE="$(usex freetype)" - -DOPENMPI_INCLUDE_DIRS=/usr/include/ - $(use qt5 && echo "-DCOIN3D_DOC_TAGFILE=/usr/share/doc/Coin/html/Coin.tag.bz2") - $(use qt5 && echo "-DCOIN3D_DOC_PATH=/usr/share/doc/Coin/html/") - $(enable_module addonmgr) - $(enable_module arch) - $(enable_module assembly) - $(enable_module complete) - $(enable_module draft) - $(enable_module drawing) - $(enable_module fem) - $(enable_module flat_mesh) - $(enable_module idf) - $(enable_module image) - $(enable_module import) - $(enable_module inspection) - $(enable_module jtreader) - $(enable_module material) - $(enable_module mesh) - $(enable_module mesh_part) - $(enable_module openscad) - $(enable_module part) - $(enable_module part_design) - $(enable_module path) - $(enable_module plot) - $(enable_module points) - $(enable_module raytracing) - $(enable_module reverseengineering) - $(enable_module robot) - $(enable_module sandbox) - $(enable_module ship) - $(enable_module show) - $(enable_module sketcher) - $(enable_module spreadsheet) - $(enable_module start) - $(enable_module surface) - $(enable_module techdraw) - $(enable_module template) - $(enable_module test) - $(enable_module tux) - $(enable_module web) - ) - - cmake-utils_src_configure - einfo "${P} will be built against opencascade version ${CASROOT}" -} - -src_install() { - cmake-utils_src_install - - dosym ../$(get_libdir)/${PN}/bin/FreeCAD /usr/bin/FreeCAD - dosym ../$(get_libdir)/${PN}/bin/FreeCADCmd /usr/bin/FreeCADCmd - - make_desktop_entry FreeCAD "FreeCAD" "" "" "MimeType=application/x-extension-fcstd;" - - # install mimetype for FreeCAD files - insinto /usr/share/mime/packages - newins "${FILESDIR}"/${PN}.sharedmimeinfo "${PN}.xml" - insinto /usr/share/pixmaps - newins "${S}"/src/Gui/Icons/${PN}.xpm "${PN}.xpm" - - # install icons to correct place rather than /usr/share/freecad - pushd "${ED}"/usr/share/${P} || die - local size - for size in 16 32 48 64; do - newicon -s ${size} "${S}"/src/Gui/Icons/freecad-icon-${size}.png freecad.png - done - doicon -s scalable "${S}"/src/Gui/Icons/freecad.svg - newicon -s 64 -c mimetypes "${S}"/src/Gui/Icons/freecad-doc.png application-x-extension-fcstd.png - popd || die - - if use doc; then - cp -r "${WORKDIR}/FreeCAD 0_18 Quick Reference Guide" "${ED}/usr/share/doc/${PF}" || die - fi - - python_optimize "${ED}"/usr/{$(get_libdir)/${PN},share/${P}}/Mod/ -} - -pkg_postinst() { - gnome2_icon_cache_update - xdg_desktop_database_update - xdg_mimeinfo_database_update -} - -pkg_postrm() { - xdg_mimeinfo_database_update - xdg_desktop_database_update - gnome2_icon_cache_update -} diff --git a/media-gfx/freecad/metadata.xml b/media-gfx/freecad/metadata.xml deleted file mode 100644 index 0f78ca41b..000000000 --- a/media-gfx/freecad/metadata.xml +++ /dev/null @@ -1,50 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>fordfrog@gentoo.org</email> - <name>Miroslav Šulc</name> - </maintainer> - <use> - <flag name="eigen3">Enables support for eigen3</flag> - <flag name="freetype">Enables supportfor freetype needed by part of part module</flag> - <flag name="swig">Enables SWIG binding for pivy"</flag> - <flag name="freecad_modules_addonmgr">Build the FreeCAD addon manager module</flag> - <flag name="freecad_modules_arch">Build the FreeCAD Architecture module</flag> - <flag name="freecad_modules_assembly">Build the FreeCAD Assembly module</flag> - <flag name="freecad_modules_complete">Build the FreeCAD complete module</flag> - <flag name="freecad_modules_draft">Build the FreeCAD draft module</flag> - <flag name="freecad_modules_drawing">Build the FreeCAD drawing module</flag> - <flag name="freecad_modules_fem">Build the FreeCAD FEM module</flag> - <flag name="freecad_modules_flat_mesh">Build the FreeCAD flat mesh module</flag> - <flag name="freecad_modules_idf">Build the FreeCAD idf module</flag> - <flag name="freecad_modules_image">Build the FreeCAD image module</flag> - <flag name="freecad_modules_import">Build the FreeCAD import module</flag> - <flag name="freecad_modules_inspection">Build the FreeCAD inspection module</flag> - <flag name="freecad_modules_jtreader">Build the FreeCAD jt reader module</flag> - <flag name="freecad_modules_material">Build the FreeCAD material module</flag> - <flag name="freecad_modules_mesh">Build the FreeCAD mesh module</flag> - <flag name="freecad_modules_mesh_part">Build the FreeCAD mesh part module</flag> - <flag name="freecad_modules_openscad">Build the FreeCAD openscad module</flag> - <flag name="freecad_modules_part">Build the FreeCAD part module</flag> - <flag name="freecad_modules_part_design">Build the FreeCAD part design module</flag> - <flag name="freecad_modules_path">Build the FreeCAD path module</flag> - <flag name="freecad_modules_plot">Build the FreeCAD plot module</flag> - <flag name="freecad_modules_points">Build the FreeCAD points module</flag> - <flag name="freecad_modules_raytracing">Build the FreeCAD ray tracing module</flag> - <flag name="freecad_modules_reverseengineering">Build the FreeCAD reverse engineering module</flag> - <flag name="freecad_modules_robot">Build the FreeCAD robot module</flag> - <flag name="freecad_modules_sandbox">Build the FreeCAD Sandbox module which is only for testing purposes</flag> - <flag name="freecad_modules_ship">Build the FreeCAD ship module</flag> - <flag name="freecad_modules_show">Build the FreeCAD Show module (helper module for visibility automation)</flag> - <flag name="freecad_modules_sketcher">Build the FreeCAD sketcher module</flag> - <flag name="freecad_modules_spreadsheet">Build the FreeCAD spreadsheet module</flag> - <flag name="freecad_modules_start">Build the FreeCAD start module</flag> - <flag name="freecad_modules_surface">Build the FreeCAD surface module</flag> - <flag name="freecad_modules_techdraw">Build the FreeCAD Technical Drawing module</flag> - <flag name="freecad_modules_template">Build the FreeCAD template module which is only for testing purposes</flag> - <flag name="freecad_modules_test">Build the FreeCAD test module</flag> - <flag name="freecad_modules_tux">Build the FreeCAD Tux module</flag> - <flag name="freecad_modules_web">Build the FreeCAD web module</flag> - </use> -</pkgmetadata> |