diff options
author | Zoltan Puskas <zoltan@sinustrom.info> | 2018-07-31 22:22:48 -0700 |
---|---|---|
committer | Virgil Dupras <vdupras@gentoo.org> | 2018-09-06 20:55:58 -0400 |
commit | 9ba46ea66636e99b46879d180922113a194aed20 (patch) | |
tree | 4e3063f24cddd7c97760c89df63d096a649cbd48 /sci-libs/oce | |
parent | app-doc/kicad-doc: Bump to 5.0.0, block on kicad-doc-bin, more l10n (diff) | |
download | gentoo-9ba46ea66636e99b46879d180922113a194aed20.tar.gz gentoo-9ba46ea66636e99b46879d180922113a194aed20.tar.bz2 gentoo-9ba46ea66636e99b46879d180922113a194aed20.zip |
sci-libs/oce: Add OCE-0.18.3 ebuild to tree to satisfy KiCAD-5.0.0 dependency
Bug: https://bugs.gentoo.org/661350
Diffstat (limited to 'sci-libs/oce')
-rw-r--r-- | sci-libs/oce/Manifest | 1 | ||||
-rw-r--r-- | sci-libs/oce/metadata.xml | 22 | ||||
-rw-r--r-- | sci-libs/oce/oce-0.18.3.ebuild | 76 |
3 files changed, 99 insertions, 0 deletions
diff --git a/sci-libs/oce/Manifest b/sci-libs/oce/Manifest new file mode 100644 index 000000000000..07ffde282d29 --- /dev/null +++ b/sci-libs/oce/Manifest @@ -0,0 +1 @@ +DIST OCE-0.18.3.tar.gz 24633768 BLAKE2B c1923fb6310ea30318251fedac371655a575bf4dfcc4c38e7c748d316416e08c33a3f27bd5db7f5b437265cf2f518651d69a6920f9f487dc7e0065a6406c653f SHA512 6fdeb6ca4ce25361379872ccc465799d4a43407974c4f626b32df695e582b9e553cce17af6a6a7ff46ebed9b813d910ad23eb308a5356dabb9b9bbd4f42a8636 diff --git a/sci-libs/oce/metadata.xml b/sci-libs/oce/metadata.xml new file mode 100644 index 000000000000..fe5bc3187c0e --- /dev/null +++ b/sci-libs/oce/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zoltan@sinustrom.info</email> + <name>Zoltan Puskas</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + oce is a C++ 3D modeling library. It can be used to develop CAD/CAM + softwares. oce stands for opencascade community edition. This project + aims at gathering patches/ changes/ improvements from the OCC community. + </longdescription> +<use> + <flag name="freeimage">Enable support for image i/o via media-libs/freeimage</flag> + <flag name="gl2ps">Use gl2ps PostScript printing library</flag> + <flag name="tbb">Enable parallel meshing</flag> + <flag name="vtk">Enable Virtualisation Toolkit</flag></use> +</pkgmetadata> diff --git a/sci-libs/oce/oce-0.18.3.ebuild b/sci-libs/oce/oce-0.18.3.ebuild new file mode 100644 index 000000000000..90829fcdfbbf --- /dev/null +++ b/sci-libs/oce/oce-0.18.3.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit cmake-utils eutils check-reqs multilib java-pkg-opt-2 + +DESCRIPTION="Development platform for CAD/CAE, 3D surface/solid modeling and data exchange" +HOMEPAGE="https://github.com/tpaviot/oce" +SRC_URI="https://github.com/tpaviot/oce/archive/OCE-$PV.tar.gz" + +LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )" +SLOT="${PV}" +KEYWORDS="~amd64" +IUSE="examples freeimage gl2ps +openmp tbb vtk" +REQUIRED_USE="?? ( openmp tbb )" + +MY_P="oce-OCE-${PV}" +S="${WORKDIR}/${MY_P}" +DEPEND=" + dev-lang/tcl:0= + dev-lang/tk:0= + dev-tcltk/itcl + dev-tcltk/itk + dev-tcltk/tix + media-libs/ftgl + media-libs/freetype + virtual/glu + virtual/opengl + x11-libs/libXmu + freeimage? ( media-libs/freeimage ) + gl2ps? ( x11-libs/gl2ps ) + tbb? ( dev-cpp/tbb ) + vtk? ( =sci-libs/vtk-8.1*[boost,imaging,qt5,python,rendering,views,xdmf2] )" +RDEPEND="${DEPEND}" + +CHECKREQS_MEMORY="256M" +CHECKREQS_DISK_BUILD="3584M" + +pkg_setup() { + check-reqs_pkg_setup +} + +src_prepare() { + cmake-utils_src_prepare +} + +src_configure() { + # From BUILD.Unix.md + local mycmakeargs=( + -DOCE_INSTALL_PREFIX="/usr" + -DOCE_ENABLE_DEB_FLAG=off + -DOCE_COPY_HEADERS_BUILD=yes + -DOCE_DRAW=yes + -DOCE_WITH_FREEIMAGE=$(usex freeimage) + -DOCE_WITH_GL2PS=$(usex gl2ps) + -DOCE_WITH_VTK=$(usex vtk) + ) + # Mutual exclusion of tbb and openmp flags is guaranteed by REQUIRED_USE. + use tbb && mycmakeargs+=( + -DOCE_MULTITHREAD_LIBRARY="TBB" + ) + use openmp && mycmakeargs+=( + -DOCE_MULTITHREAD_LIBRARY="OPENMP" + ) + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + # If user asked for samples let's copy them to the docs folder + if use examples ; then + dodoc -r samples + fi +} |