Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/oce/
Date: Fri, 07 Sep 2018 03:03:15
Message-Id: 1536281758.9ba46ea66636e99b46879d180922113a194aed20.vdupras@gentoo
1 commit: 9ba46ea66636e99b46879d180922113a194aed20
2 Author: Zoltan Puskas <zoltan <AT> sinustrom <DOT> info>
3 AuthorDate: Wed Aug 1 05:22:48 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 7 00:55:58 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ba46ea6
7
8 sci-libs/oce: Add OCE-0.18.3 ebuild to tree to satisfy KiCAD-5.0.0 dependency
9
10 Bug: https://bugs.gentoo.org/661350
11
12 sci-libs/oce/Manifest | 1 +
13 sci-libs/oce/metadata.xml | 22 ++++++++++++
14 sci-libs/oce/oce-0.18.3.ebuild | 76 ++++++++++++++++++++++++++++++++++++++++++
15 3 files changed, 99 insertions(+)
16
17 diff --git a/sci-libs/oce/Manifest b/sci-libs/oce/Manifest
18 new file mode 100644
19 index 00000000000..07ffde282d2
20 --- /dev/null
21 +++ b/sci-libs/oce/Manifest
22 @@ -0,0 +1 @@
23 +DIST OCE-0.18.3.tar.gz 24633768 BLAKE2B c1923fb6310ea30318251fedac371655a575bf4dfcc4c38e7c748d316416e08c33a3f27bd5db7f5b437265cf2f518651d69a6920f9f487dc7e0065a6406c653f SHA512 6fdeb6ca4ce25361379872ccc465799d4a43407974c4f626b32df695e582b9e553cce17af6a6a7ff46ebed9b813d910ad23eb308a5356dabb9b9bbd4f42a8636
24
25 diff --git a/sci-libs/oce/metadata.xml b/sci-libs/oce/metadata.xml
26 new file mode 100644
27 index 00000000000..fe5bc3187c0
28 --- /dev/null
29 +++ b/sci-libs/oce/metadata.xml
30 @@ -0,0 +1,22 @@
31 +<?xml version="1.0" encoding="UTF-8"?>
32 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
33 +<pkgmetadata>
34 + <maintainer type="person">
35 + <email>zoltan@×××××××××.info</email>
36 + <name>Zoltan Puskas</name>
37 + </maintainer>
38 + <maintainer type="project">
39 + <email>proxy-maint@g.o</email>
40 + <name>Proxy Maintainers</name>
41 + </maintainer>
42 + <longdescription lang="en">
43 + oce is a C++ 3D modeling library. It can be used to develop CAD/CAM
44 + softwares. oce stands for opencascade community edition. This project
45 + aims at gathering patches/ changes/ improvements from the OCC community.
46 + </longdescription>
47 +<use>
48 + <flag name="freeimage">Enable support for image i/o via media-libs/freeimage</flag>
49 + <flag name="gl2ps">Use gl2ps PostScript printing library</flag>
50 + <flag name="tbb">Enable parallel meshing</flag>
51 + <flag name="vtk">Enable Virtualisation Toolkit</flag></use>
52 +</pkgmetadata>
53
54 diff --git a/sci-libs/oce/oce-0.18.3.ebuild b/sci-libs/oce/oce-0.18.3.ebuild
55 new file mode 100644
56 index 00000000000..90829fcdfbb
57 --- /dev/null
58 +++ b/sci-libs/oce/oce-0.18.3.ebuild
59 @@ -0,0 +1,76 @@
60 +# Copyright 1999-2018 Gentoo Foundation
61 +# Distributed under the terms of the GNU General Public License v2
62 +
63 +EAPI=6
64 +
65 +inherit cmake-utils eutils check-reqs multilib java-pkg-opt-2
66 +
67 +DESCRIPTION="Development platform for CAD/CAE, 3D surface/solid modeling and data exchange"
68 +HOMEPAGE="https://github.com/tpaviot/oce"
69 +SRC_URI="https://github.com/tpaviot/oce/archive/OCE-$PV.tar.gz"
70 +
71 +LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )"
72 +SLOT="${PV}"
73 +KEYWORDS="~amd64"
74 +IUSE="examples freeimage gl2ps +openmp tbb vtk"
75 +REQUIRED_USE="?? ( openmp tbb )"
76 +
77 +MY_P="oce-OCE-${PV}"
78 +S="${WORKDIR}/${MY_P}"
79 +DEPEND="
80 + dev-lang/tcl:0=
81 + dev-lang/tk:0=
82 + dev-tcltk/itcl
83 + dev-tcltk/itk
84 + dev-tcltk/tix
85 + media-libs/ftgl
86 + media-libs/freetype
87 + virtual/glu
88 + virtual/opengl
89 + x11-libs/libXmu
90 + freeimage? ( media-libs/freeimage )
91 + gl2ps? ( x11-libs/gl2ps )
92 + tbb? ( dev-cpp/tbb )
93 + vtk? ( =sci-libs/vtk-8.1*[boost,imaging,qt5,python,rendering,views,xdmf2] )"
94 +RDEPEND="${DEPEND}"
95 +
96 +CHECKREQS_MEMORY="256M"
97 +CHECKREQS_DISK_BUILD="3584M"
98 +
99 +pkg_setup() {
100 + check-reqs_pkg_setup
101 +}
102 +
103 +src_prepare() {
104 + cmake-utils_src_prepare
105 +}
106 +
107 +src_configure() {
108 + # From BUILD.Unix.md
109 + local mycmakeargs=(
110 + -DOCE_INSTALL_PREFIX="/usr"
111 + -DOCE_ENABLE_DEB_FLAG=off
112 + -DOCE_COPY_HEADERS_BUILD=yes
113 + -DOCE_DRAW=yes
114 + -DOCE_WITH_FREEIMAGE=$(usex freeimage)
115 + -DOCE_WITH_GL2PS=$(usex gl2ps)
116 + -DOCE_WITH_VTK=$(usex vtk)
117 + )
118 + # Mutual exclusion of tbb and openmp flags is guaranteed by REQUIRED_USE.
119 + use tbb && mycmakeargs+=(
120 + -DOCE_MULTITHREAD_LIBRARY="TBB"
121 + )
122 + use openmp && mycmakeargs+=(
123 + -DOCE_MULTITHREAD_LIBRARY="OPENMP"
124 + )
125 + cmake-utils_src_configure
126 +}
127 +
128 +src_install() {
129 + cmake-utils_src_install
130 +
131 + # If user asked for samples let's copy them to the docs folder
132 + if use examples ; then
133 + dodoc -r samples
134 + fi
135 +}