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