From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/oce/
Date: Sat, 6 Jun 2020 13:17:14 +0000 (UTC) [thread overview]
Message-ID: <1591449421.df6ef388f73ffe6d1d89e4f64d1b689da5c675eb.asturm@gentoo> (raw)
commit: df6ef388f73ffe6d1d89e4f64d1b689da5c675eb
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 6 12:47:45 2020 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sat Jun 6 13:17:01 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df6ef388
sci-libs/oce: Use cmake.eclass, EAPI-7, unused eclass, unrestrict VTK
Package-Manager: Portage-2.3.100, Repoman-2.3.22
RepoMan-Options: --force
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
sci-libs/oce/oce-0.18.3-r2.ebuild | 78 +++++++++++++++++++++++++++++++++++++++
1 file changed, 78 insertions(+)
diff --git a/sci-libs/oce/oce-0.18.3-r2.ebuild b/sci-libs/oce/oce-0.18.3-r2.ebuild
new file mode 100644
index 00000000000..1ff4e66c4a6
--- /dev/null
+++ b/sci-libs/oce/oce-0.18.3-r2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake check-reqs 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 ~x86"
+IUSE="examples freeimage gl2ps +openmp tbb vtk"
+REQUIRED_USE="?? ( openmp tbb )"
+
+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*[boost,imaging,qt5,python,rendering,views,xdmf2] )"
+RDEPEND="${DEPEND}"
+
+CHECKREQS_MEMORY="256M"
+CHECKREQS_DISK_BUILD="3584M"
+
+PATCHES=( "${FILESDIR}"/"${P}-test-fix.patch" )
+
+S="${WORKDIR}/oce-OCE-${PV}"
+
+pkg_setup() {
+ check-reqs_pkg_setup
+}
+
+src_prepare() {
+ cmake_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_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ # If user asked for samples let's copy them to the docs folder
+ if use examples ; then
+ dodoc -r samples
+ fi
+}
next reply other threads:[~2020-06-06 13:17 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-06 13:17 Andreas Sturmlechner [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-10-29 22:23 [gentoo-commits] repo/gentoo:master commit in: sci-libs/oce/ Sam James
2021-06-10 3:38 Sam James
2021-04-03 15:44 Sam James
2021-02-22 18:57 Sam James
2020-06-06 13:17 Andreas Sturmlechner
2018-09-12 14:39 Thomas Deutschmann
2018-09-07 3:03 Virgil Dupras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1591449421.df6ef388f73ffe6d1d89e4f64d1b689da5c675eb.asturm@gentoo \
--to=asturm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox