1 |
commit: 91fcc8e56f971057697496a5b1db114442862558 |
2 |
Author: Bernd Waibel <waebbl-gentoo <AT> posteo <DOT> net> |
3 |
AuthorDate: Fri Nov 5 16:38:52 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Nov 6 06:03:07 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91fcc8e5 |
7 |
|
8 |
sci-libs/opencascade: drop 7.5.3-r2 |
9 |
|
10 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
11 |
Signed-off-by: Bernd Waibel <waebbl-gentoo <AT> posteo.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/22832 |
13 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
14 |
|
15 |
sci-libs/opencascade/opencascade-7.5.3-r2.ebuild | 171 ----------------------- |
16 |
1 file changed, 171 deletions(-) |
17 |
|
18 |
diff --git a/sci-libs/opencascade/opencascade-7.5.3-r2.ebuild b/sci-libs/opencascade/opencascade-7.5.3-r2.ebuild |
19 |
deleted file mode 100644 |
20 |
index 14258f13db4..00000000000 |
21 |
--- a/sci-libs/opencascade/opencascade-7.5.3-r2.ebuild |
22 |
+++ /dev/null |
23 |
@@ -1,171 +0,0 @@ |
24 |
-# Copyright 1999-2021 Gentoo Authors |
25 |
-# Distributed under the terms of the GNU General Public License v2 |
26 |
- |
27 |
-EAPI=8 |
28 |
- |
29 |
-inherit cmake flag-o-matic |
30 |
- |
31 |
-MY_PV="$(ver_rs 1- '_')" |
32 |
-PV_MAJ="$(ver_cut 1-2)" |
33 |
- |
34 |
-DESCRIPTION="Development platform for CAD/CAE, 3D surface/solid modeling and data exchange" |
35 |
-HOMEPAGE="https://www.opencascade.com" |
36 |
-SRC_URI="https://git.dev.opencascade.org/gitweb/?p=occt.git;a=snapshot;h=refs/tags/V${MY_PV};sf=tgz -> ${P}.tar.gz" |
37 |
-S="${WORKDIR}/occt-V${MY_PV}" |
38 |
- |
39 |
-LICENSE="|| ( Open-CASCADE-LGPL-2.1-Exception-1.0 LGPL-2.1 )" |
40 |
-SLOT="${PV_MAJ}" |
41 |
-KEYWORDS="~amd64 ~arm64 ~x86" |
42 |
-IUSE="debug doc examples ffmpeg freeimage gles2 json optimize tbb vtk" |
43 |
- |
44 |
-REQUIRED_USE="?? ( optimize tbb )" |
45 |
- |
46 |
-# There's no easy way to test. Testing needs a rather big environment |
47 |
-# properly set up. |
48 |
-RESTRICT="test" |
49 |
- |
50 |
-RDEPEND=" |
51 |
- app-eselect/eselect-opencascade |
52 |
- dev-lang/tcl:= |
53 |
- dev-lang/tk:= |
54 |
- dev-tcltk/itcl |
55 |
- dev-tcltk/itk |
56 |
- dev-tcltk/tix |
57 |
- media-libs/fontconfig |
58 |
- media-libs/freetype:2 |
59 |
- media-libs/ftgl |
60 |
- virtual/glu |
61 |
- virtual/opengl |
62 |
- x11-libs/libXmu |
63 |
- examples? ( |
64 |
- dev-qt/qtcore:5 |
65 |
- dev-qt/qtgui:5 |
66 |
- dev-qt/qtquickcontrols2:5 |
67 |
- dev-qt/qtwidgets:5 |
68 |
- dev-qt/qtxml:5 |
69 |
- ) |
70 |
- ffmpeg? ( media-video/ffmpeg:= ) |
71 |
- freeimage? ( media-libs/freeimage ) |
72 |
- tbb? ( dev-cpp/tbb:= ) |
73 |
- vtk? ( sci-libs/vtk:=[rendering] ) |
74 |
-" |
75 |
-DEPEND=" |
76 |
- ${RDEPEND} |
77 |
- dev-cpp/eigen |
78 |
- dev-libs/rapidjson |
79 |
-" |
80 |
-BDEPEND=" |
81 |
- app-eselect/eselect-opencascade |
82 |
- doc? ( app-doc/doxygen ) |
83 |
- examples? ( dev-qt/linguist-tools:5 ) |
84 |
-" |
85 |
- |
86 |
-PATCHES=( |
87 |
- "${FILESDIR}"/${PN}-7.5.1-0001-allow-default-search-path-for-Qt5.patch |
88 |
- "${FILESDIR}"/${PN}-7.5.1-0002-remove-unnecessary-Qt5-check.patch |
89 |
- "${FILESDIR}"/${PN}-7.5.1-0003-add-Gentoo-configuration-type.patch |
90 |
- "${FILESDIR}"/${PN}-7.5.1-0004-fix-installation-of-cmake-config-files.patch |
91 |
- "${FILESDIR}"/${PN}-7.5.1-0005-fix-write-permissions-on-scripts.patch |
92 |
- "${FILESDIR}"/${PN}-7.5.1-0006-fix-creation-of-custom.sh-script.patch |
93 |
- "${FILESDIR}"/${PN}-7.5.1-fix-AllValues-name-collision-with-vtk-9.0.patch |
94 |
-) |
95 |
- |
96 |
-src_prepare() { |
97 |
- cmake_src_prepare |
98 |
- |
99 |
- use debug && append-cppflags -DDEBUG |
100 |
- |
101 |
- sed -e 's|/lib\$|/'$(get_libdir)'\$|' \ |
102 |
- -i adm/templates/OpenCASCADEConfig.cmake.in || die |
103 |
- |
104 |
- # There is an OCCT_UPDATE_TARGET_FILE cmake macro that fails due to some |
105 |
- # assumptions it makes about installation paths. Rather than fixing it, just |
106 |
- # get rid of the mechanism altogether - its purpose is to allow a |
107 |
- # side-by-side installation of release and debug libraries. |
108 |
- sed -e 's|\\${OCCT_INSTALL_BIN_LETTER}||' \ |
109 |
- -i adm/cmake/occt_toolkit.cmake || die |
110 |
-} |
111 |
- |
112 |
-src_configure() { |
113 |
- local mycmakeargs=( |
114 |
- -DBUILD_DOC_Overview=$(usex doc) |
115 |
- -DBUILD_Inspector=$(usex examples) |
116 |
- -DBUILD_WITH_DEBUG=$(usex debug) |
117 |
- -DINSTALL_DIR_BIN="$(get_libdir)/${P}/bin" |
118 |
- -DINSTALL_DIR_CMAKE="$(get_libdir)/cmake/${P}" |
119 |
- -DINSTALL_DIR_DOC="share/doc/${PF}" |
120 |
- -DINSTALL_DIR_LIB="$(get_libdir)/${P}" |
121 |
- -DINSTALL_DIR_SCRIPT="$(get_libdir)/${P}/bin" |
122 |
- -DINSTALL_DIR_WITH_VERSION=ON |
123 |
- -DINSTALL_SAMPLES=$(usex examples) |
124 |
- -DINSTALL_TEST_CASES=NO |
125 |
- -DUSE_D3D=NO |
126 |
- -DUSE_FFMPEG=$(usex ffmpeg) |
127 |
- -DUSE_FREEIMAGE=$(usex freeimage) |
128 |
- -DUSE_FREETYPE=ON |
129 |
- -DUSE_GLES2=$(usex gles2) |
130 |
- -DUSE_RAPIDJSON=$(usex json) |
131 |
- -DUSE_TBB=$(usex tbb) |
132 |
- -DUSE_VTK=$(usex vtk) |
133 |
- ) |
134 |
- |
135 |
- use doc && mycmakeargs+=( -DINSTALL_DOC_Overview=ON ) |
136 |
- |
137 |
- if use examples; then |
138 |
- mycmakeargs+=( |
139 |
- -D3RDPARTY_QT_DIR="${ESYSROOT}"/usr |
140 |
- -DBUILD_SAMPLES_QT=ON |
141 |
- ) |
142 |
- fi |
143 |
- |
144 |
- if use vtk; then |
145 |
- if has_version ">=sci-libs/vtk-9.0.0"; then |
146 |
- mycmakeargs+=( |
147 |
- -D3RDPARTY_VTK_DIR="${ESYSROOT}"/usr |
148 |
- -D3RDPARTY_VTK_INCLUDE_DIR="${ESYSROOT}"/usr/include/vtk-9.0 |
149 |
- -D3RDPARTY_VTK_LIBRARY_DIR="${ESYSROOT}"/usr/$(get_libdir) |
150 |
- ) |
151 |
- fi |
152 |
- fi |
153 |
- |
154 |
- cmake_src_configure |
155 |
- |
156 |
- # prepare /etc/env.d file |
157 |
- sed -e "s|lib/|$(get_libdir)/|" \ |
158 |
- -e "s|VAR_PV|${PV}|" \ |
159 |
- -e "s|VAR_CASROOT|${ESYSROOT}/usr|" \ |
160 |
- < "${FILESDIR}"/${PN}-${PV_MAJ}.env.in > "${T}"/${PV_MAJ} || die |
161 |
- |
162 |
- # use TBB for memory allocation optimizations |
163 |
- if use tbb; then |
164 |
- sed -e 's|^#MMGT_OPT=0$|MMGT_OPT=2|' -i "${T}"/${PV_MAJ} || die |
165 |
- fi |
166 |
- |
167 |
- # use internal optimized memory manager and don't clear memory with this |
168 |
- # memory manager. |
169 |
- if use optimize ; then |
170 |
- sed -e 's|^#MMGT_OPT=0$|MMGT_OPT=1|' \ |
171 |
- -e 's|^#MMGT_CLEAR=1$|MMGT_CLEAR=0|' \ |
172 |
- -i "${T}"/${PV_MAJ} || die |
173 |
- fi |
174 |
-} |
175 |
- |
176 |
-src_install() { |
177 |
- cmake_src_install |
178 |
- |
179 |
- # respect slotting |
180 |
- insinto "/etc/env.d/${PN}" |
181 |
- doins "${T}/${PV_MAJ}" |
182 |
- |
183 |
- # remove examples |
184 |
- if use !examples; then |
185 |
- rm -r "${ED}/usr/share/${P}/samples" || die |
186 |
- fi |
187 |
- |
188 |
- docompress -x /usr/share/doc/${PF}/overview/html |
189 |
-} |
190 |
- |
191 |
-pkg_postinst() { |
192 |
- eselect ${PN} set ${PV_MAJ} || die "failed to switch to updated implementation" |
193 |
- einfo "You can switch between available ${PN} implementations using eselect ${PN}" |
194 |
-} |