Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/
Date: Tue, 27 Sep 2022 13:57:18
Message-Id: 1664287015.fd15b37705f0e3e4251ed993743dc8f587ed772c.andrewammerlaan@gentoo
1 commit: fd15b37705f0e3e4251ed993743dc8f587ed772c
2 Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net>
3 AuthorDate: Sun Sep 25 08:02:26 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Tue Sep 27 13:56:55 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd15b377
7
8 sci-libs/opencascade: drop 7.6.2-r1
9
10 Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net>
11 Closes: https://github.com/gentoo/gentoo/pull/27442
12 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
13
14 sci-libs/opencascade/Manifest | 1 -
15 sci-libs/opencascade/opencascade-7.6.2-r1.ebuild | 172 -----------------------
16 2 files changed, 173 deletions(-)
17
18 diff --git a/sci-libs/opencascade/Manifest b/sci-libs/opencascade/Manifest
19 index 2ce18530639e..c3e51ef720d8 100644
20 --- a/sci-libs/opencascade/Manifest
21 +++ b/sci-libs/opencascade/Manifest
22 @@ -1,4 +1,3 @@
23 DIST opencascade-7.5.2.tar.gz 47812603 BLAKE2B 86995ea60e24329f91a2cbede26112a70794fb091b34d33614bef412b05b8cc9f1e770aecf78272b54a241c2524422c86f8ff722b3f27b54bf10fa5eda626288 SHA512 f951a941043a56f381cfd25e4d78bb9ae08e5cc29a894e6c0c35daf30aeabf1e44ee09af65bb6b7d62d9325be67741ddcf52266b7186b4c336c70ed8bcfa1676
24 DIST opencascade-7.5.3.tar.gz 47817862 BLAKE2B be438a08997c18c3cb2c08c520fff2f439cc8a406cc3f471be3b24f874ac3bd892c4afe6fa37f742ffb5da21b5a29f9c8f737e3160dcbda35a217286218eb5e1 SHA512 2d7cf284a1b3ce8d05151085b41579cc2f4e29489b7920769cd04f86a6d76e49f533b570226d3cf041c75582894ed8a6aff889312c7c507fffae47d3e57c5c47
25 -DIST opencascade-7.6.2.tar.gz 48207505 BLAKE2B 62d0015fdd6321036c4be02214730da46339d7032eec84969164497d1138bc8125c025f1af55beb3587e456845dbfa04596375085d694c0d2b5bc787ee18abeb SHA512 fa3874f0a7783c03fec863f28b87430ad794d1397147aa2c51604599bdd1510b08c8d98de799fef724100db5de5696eeeb170149a38228774864c692861f8ccc
26 DIST opencascade-7.6.3.tar.gz 48216090 BLAKE2B ff0b63250e77b0240bd99bba38cd0e6b0a8c88bf39e495f5d51d7913f097e2cad83a5ad121e9d56de11c74008249c99a41f4615269a085b7cf97c3d7f0477d6d SHA512 c708f76edb707ba18bdfe7442ed8fa500894ee6c1cd8d0313eb906b3aa7dfa40a575f04dbccd70e84395d670f2b93fb8529f3d59726449234e627b9f35b9dded
27
28 diff --git a/sci-libs/opencascade/opencascade-7.6.2-r1.ebuild b/sci-libs/opencascade/opencascade-7.6.2-r1.ebuild
29 deleted file mode 100644
30 index 30553c491ea0..000000000000
31 --- a/sci-libs/opencascade/opencascade-7.6.2-r1.ebuild
32 +++ /dev/null
33 @@ -1,172 +0,0 @@
34 -# Copyright 1999-2022 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -EAPI=8
38 -
39 -inherit cmake
40 -
41 -MY_PV="$(ver_rs 1- '_')"
42 -MY_SLOT="$(ver_cut 1-2)"
43 -
44 -DESCRIPTION="Development platform for CAD/CAE, 3D surface/solid modeling and data exchange"
45 -HOMEPAGE="https://www.opencascade.com"
46 -SRC_URI="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V${MY_PV};sf=tgz -> ${P}.tar.gz"
47 -S="${WORKDIR}/occt-V${MY_PV}"
48 -
49 -LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )"
50 -SLOT="0/${MY_SLOT}"
51 -KEYWORDS="amd64 ~arm64 ~riscv ~x86"
52 -IUSE="doc eigen examples ffmpeg freeimage gles2 json optimize tbb vtk"
53 -
54 -REQUIRED_USE="?? ( optimize tbb )"
55 -
56 -# There's no easy way to test. Testing needs a rather big environment
57 -# properly set up.
58 -RESTRICT="test"
59 -
60 -# ffmpeg: https://dev.opencascade.org/content/build-error-when-compiling-against-ffmpeg-5
61 -RDEPEND="
62 - !app-eselect/eselect-opencascade
63 - dev-lang/tcl:=
64 - dev-lang/tk:=
65 - dev-tcltk/itcl
66 - dev-tcltk/itk
67 - dev-tcltk/tix
68 - media-libs/fontconfig
69 - media-libs/freetype:2
70 - media-libs/ftgl
71 - virtual/glu
72 - virtual/opengl
73 - x11-libs/libXmu
74 - examples? (
75 - dev-qt/qtcore:5
76 - dev-qt/qtgui:5
77 - dev-qt/qtquickcontrols2:5
78 - dev-qt/qtwidgets:5
79 - dev-qt/qtxml:5
80 - )
81 - ffmpeg? ( <media-video/ffmpeg-5:= )
82 - freeimage? ( media-libs/freeimage )
83 - tbb? ( dev-cpp/tbb:= )
84 - vtk? ( sci-libs/vtk:=[rendering] )
85 -"
86 -DEPEND="
87 - ${RDEPEND}
88 - eigen? ( dev-cpp/eigen )
89 - json? ( dev-libs/rapidjson )
90 - vtk? ( dev-libs/utfcpp )
91 -"
92 -BDEPEND="
93 - doc? ( app-doc/doxygen[dot] )
94 - examples? ( dev-qt/linguist-tools:5 )
95 -"
96 -
97 -PATCHES=(
98 - "${FILESDIR}"/${PN}-7.5.1-0004-fix-installation-of-cmake-config-files.patch
99 - "${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch
100 - "${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch
101 - "${FILESDIR}"/${P}-avoid-pre-stripping-binaries.patch
102 - "${FILESDIR}"/${PN}-7.5.3-tbb-2021.patch
103 -)
104 -
105 -src_prepare() {
106 - cmake_src_prepare
107 -
108 - sed -e 's|/lib\$|/'$(get_libdir)'\$|' \
109 - -i adm/templates/OpenCASCADEConfig.cmake.in || die
110 -
111 - # There is an OCCT_UPDATE_TARGET_FILE cmake macro that fails due to some
112 - # assumptions it makes about installation paths. Rather than fixing it, just
113 - # get rid of the mechanism altogether - its purpose is to allow a
114 - # side-by-side installation of release and debug libraries.
115 - sed -e 's|\\${OCCT_INSTALL_BIN_LETTER}||' \
116 - -i adm/cmake/occt_toolkit.cmake || die
117 -}
118 -
119 -src_configure() {
120 - local mycmakeargs=(
121 - -DBUILD_DOC_Overview=$(usex doc)
122 - -DBUILD_Inspector=$(usex examples)
123 - -DBUILD_RELEASE_DISABLE_EXCEPTIONS=OFF # bug #847916
124 -
125 - -DINSTALL_DIR_BIN="$(get_libdir)/${PN}/bin"
126 - -DINSTALL_DIR_CMAKE="$(get_libdir)/cmake/${PN}"
127 - -DINSTALL_DIR_DATA="share/${PN}/data"
128 - -DINSTALL_DIR_DOC="share/doc/${PF}"
129 - -DINSTALL_DIR_INCLUDE="include/${PN}"
130 - -DINSTALL_DIR_LIB="$(get_libdir)/${PN}"
131 - -DINSTALL_DIR_RESOURCE="share/${PN}/resources"
132 - -DINSTALL_DIR_SAMPLES="share/${PN}/samples"
133 - -DINSTALL_DIR_SCRIPT="$(get_libdir)/${PN}/bin"
134 - -DINSTALL_DIR_WITH_VERSION=OFF
135 - -DINSTALL_SAMPLES=$(usex examples)
136 - -DINSTALL_TEST_CASES=NO
137 -
138 - -DUSE_D3D=NO
139 - # no package yet in tree
140 - -DUSE_DRACO=OFF
141 - -DUSE_EIGEN=$(usex eigen)
142 - -DUSE_FFMPEG=$(usex ffmpeg)
143 - -DUSE_FREEIMAGE=$(usex freeimage)
144 - -DUSE_FREETYPE=ON
145 - -DUSE_GLES2=$(usex gles2)
146 - # no package in tree
147 - -DUSE_OPENVR=OFF
148 - -DUSE_RAPIDJSON=$(usex json)
149 - -DUSE_TBB=$(usex tbb)
150 - -DUSE_VTK=$(usex vtk)
151 - -DUSE_XLIB=ON
152 - )
153 -
154 - use doc && mycmakeargs+=( -DINSTALL_DOC_Overview=ON )
155 -
156 - if use examples; then
157 - mycmakeargs+=(
158 - -D3RDPARTY_QT_DIR="${ESYSROOT}"/usr
159 - -DBUILD_SAMPLES_QT=ON
160 - )
161 - fi
162 -
163 - if use vtk; then
164 - if has_version ">=sci-libs/vtk-9.1.0"; then
165 - mycmakeargs+=(
166 - -D3RDPARTY_VTK_DIR="${ESYSROOT}"/usr
167 - -D3RDPARTY_VTK_INCLUDE_DIR="${ESYSROOT}"/usr/include/vtk-9.1
168 - -D3RDPARTY_VTK_LIBRARY_DIR="${ESYSROOT}"/usr/$(get_libdir)
169 - )
170 - elif has_version ">=sci-libs/vtk-9.0.0"; then
171 - mycmakeargs+=(
172 - -D3RDPARTY_VTK_DIR="${ESYSROOT}"/usr
173 - -D3RDPARTY_VTK_INCLUDE_DIR="${ESYSROOT}"/usr/include/vtk-9.0
174 - -D3RDPARTY_VTK_LIBRARY_DIR="${ESYSROOT}"/usr/$(get_libdir)
175 - )
176 - fi
177 - fi
178 -
179 - cmake_src_configure
180 -
181 - sed -e "s|lib/|$(get_libdir)/|" \
182 - -e "s|VAR_CASROOT|${EPREFIX}/usr|" \
183 - < "${FILESDIR}"/${PN}.env.in > "${T}"/99${PN} || die
184 -
185 - # use TBB for memory allocation optimizations
186 - if use tbb; then
187 - sed -e 's|^#MMGT_OPT=0$|MMGT_OPT=2|' -i "${T}"/99${PN} || die
188 - fi
189 -
190 - # use internal optimized memory manager and don't clear memory with this
191 - # memory manager.
192 - if use optimize ; then
193 - sed -e 's|^#MMGT_OPT=0$|MMGT_OPT=1|' \
194 - -e 's|^#MMGT_CLEAR=1$|MMGT_CLEAR=0|' \
195 - -i "${T}"/99${PN} || die
196 - fi
197 -}
198 -
199 -src_install() {
200 - cmake_src_install
201 -
202 - doenvd "${T}/99${PN}"
203 -
204 - docompress -x /usr/share/doc/${PF}/overview/html
205 -}