1 |
commit: a57eb56c941eecbbc6f502070d24d85c30928ebd |
2 |
Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Dec 31 12:36:29 2020 +0000 |
4 |
Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 31 14:23:35 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a57eb56c |
7 |
|
8 |
media-gfx/meshlab: version bump to 2012.12 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/744025 |
11 |
|
12 |
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/18888 |
14 |
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> |
15 |
|
16 |
media-gfx/meshlab/Manifest | 2 + |
17 |
.../files/meshlab-2020.12-disable-updates.patch | 38 +++++++++++++ |
18 |
.../files/meshlab-2020.12-find-plugins.patch | 39 ++++++++++++++ |
19 |
media-gfx/meshlab/meshlab-2020.12.ebuild | 62 ++++++++++++++++++++++ |
20 |
media-gfx/meshlab/metadata.xml | 22 ++++---- |
21 |
5 files changed, 154 insertions(+), 9 deletions(-) |
22 |
|
23 |
diff --git a/media-gfx/meshlab/Manifest b/media-gfx/meshlab/Manifest |
24 |
index 4e546dc7ad7..0a2b15bdb8d 100644 |
25 |
--- a/media-gfx/meshlab/Manifest |
26 |
+++ b/media-gfx/meshlab/Manifest |
27 |
@@ -1,2 +1,4 @@ |
28 |
DIST meshlab-2016.12.tar.gz 94194402 BLAKE2B 53dda75b51198d529d35ae64e1b9d8ec240ec6031835e6cde2ff1ad21403086112a6f4b9acf5c6f53328787078b3e1a90cc177f5e009834b310cdf6b168c59b0 SHA512 68bf863fc390725a949578b545bc749bbe2c07ca75d1461772c7777fd6a4b095f11b64b5b0e8b729f83fea1bb9e3ca4b41123cdea3799a8eee0de587eb7bf1d8 |
29 |
+DIST meshlab-2020.12.tar.gz 111438055 BLAKE2B 4969c1f8f60be6ff55effd710c0bceb290ad6ac01153c233fd6a943f15e86189c04c06aa474ea89899d31b77d6960ffabbda6a12c3107d750469945e0c73c335 SHA512 0a00493f3e622a7bb0b70ddf0e1710376b47bd844aa785782a62f31a46ae1ee4b493c1e4ae0184f51f30be263f84efc0073e266d50748adc10ef229f107e4c87 |
30 |
DIST vcglib-1.0.1.tar.gz 9063634 BLAKE2B 91fba7ebf1ac18d0dfb33d3e26656e546b7c35ae753777730c44ebdf327413dfe94dd5e84907eb7e1644d70bfdf7d00ae8ecd0a81587d790a31354f7db09d626 SHA512 55d1854054744abae2d41e7b5041df89253bae108df5fc1cfe777013de7192dce04bc474475cb11a1d0343ebcab1ea61b381d9d9c36c452528043e85e75bc211 |
31 |
+DIST vcglib-2020.12.tar.gz 6777201 BLAKE2B 9e2e3eb4ae7b930a8a334d58ee4bdadaf43e9a031d523471d17ca39d241c0dd66ec846a360cbcccd53d8728a2c7a6b6fa7d7a3efc04c01515ac3366b10f01aa8 SHA512 d7eec0c9c847e6ade7a3bee9aa1cddbb6855c388b15e2b35889ce998ea9a1c7afb0034ec31c38de3cbc2d867c8d8a474b13e4e2e3218e636926967abe4e54924 |
32 |
|
33 |
diff --git a/media-gfx/meshlab/files/meshlab-2020.12-disable-updates.patch b/media-gfx/meshlab/files/meshlab-2020.12-disable-updates.patch |
34 |
new file mode 100644 |
35 |
index 00000000000..d8cadf06d9b |
36 |
--- /dev/null |
37 |
+++ b/media-gfx/meshlab/files/meshlab-2020.12-disable-updates.patch |
38 |
@@ -0,0 +1,38 @@ |
39 |
+--- a/meshlab/mainwindow_Init.cpp |
40 |
++++ b/meshlab/mainwindow_Init.cpp |
41 |
+@@ -607,7 +607,6 @@ |
42 |
+ helpMenu->addAction(onlineHelpAct); |
43 |
+ helpMenu->addAction(onscreenHelpAct); |
44 |
+ helpMenu->addAction(submitBugAct); |
45 |
+- helpMenu->addAction(checkUpdatesAct); |
46 |
+ |
47 |
+ fillEditMenu(); |
48 |
+ fillRenderMenu(); |
49 |
+--- a/meshlab/mainwindow_RunTime.cpp |
50 |
++++ b/meshlab/mainwindow_RunTime.cpp |
51 |
+@@ -2623,7 +2623,9 @@ |
52 |
+ |
53 |
+ void MainWindow::helpOnline() |
54 |
+ { |
55 |
++#if defined(__ENABLE_AUTO_STATS__) |
56 |
+ checkForUpdates(false); |
57 |
++#endif |
58 |
+ QDesktopServices::openUrl(QUrl("http://www.meshlab.net/#support")); |
59 |
+ } |
60 |
+ |
61 |
+@@ -2882,6 +2884,7 @@ |
62 |
+ void MainWindow::showEvent(QShowEvent * event) |
63 |
+ { |
64 |
+ QWidget::showEvent(event); |
65 |
++#if defined(__ENABLE_AUTO_STATS__) |
66 |
+ QSettings settings; |
67 |
+ QSettings::setDefaultFormat(QSettings::NativeFormat); |
68 |
+ const QString versioncheckeddatestring("lastTimeMeshLabVersionCheckedOnStart"); |
69 |
+@@ -2902,6 +2905,7 @@ |
70 |
+ settings.setValue(versioncheckeddatestring, todayStr); |
71 |
+ } |
72 |
+ sendUsAMail(); |
73 |
++#endif |
74 |
+ } |
75 |
+ |
76 |
+ void MainWindow::meshAdded(int mid) |
77 |
|
78 |
diff --git a/media-gfx/meshlab/files/meshlab-2020.12-find-plugins.patch b/media-gfx/meshlab/files/meshlab-2020.12-find-plugins.patch |
79 |
new file mode 100644 |
80 |
index 00000000000..0d3c4c118ce |
81 |
--- /dev/null |
82 |
+++ b/media-gfx/meshlab/files/meshlab-2020.12-find-plugins.patch |
83 |
@@ -0,0 +1,39 @@ |
84 |
+--- a/common/CMakeLists.txt |
85 |
++++ b/common/CMakeLists.txt |
86 |
+@@ -75,6 +75,11 @@ |
87 |
+ endif() |
88 |
+ add_library(meshlab-common ${TARGET_TYPE} ${SOURCES} ${HEADERS} ${RESOURCES}) |
89 |
+ |
90 |
++if(NOT WIN32 AND NOT APPLE) |
91 |
++ target_compile_definitions( |
92 |
++ meshlab-common PRIVATE MESHLAB_LIB_INSTALL_DIR="${MESHLAB_LIB_INSTALL_DIR}") |
93 |
++endif() |
94 |
++ |
95 |
+ target_include_directories(meshlab-common PRIVATE ${EXTERNAL_DIR}/easyexif/) |
96 |
+ target_link_libraries( |
97 |
+ meshlab-common |
98 |
+--- a/common/pluginmanager.cpp |
99 |
++++ b/common/pluginmanager.cpp |
100 |
+@@ -225,7 +225,21 @@ QMap<QString, RichParameterList> PluginManager::generateFilterParameterMap() |
101 |
+ QString PluginManager::getBaseDirPath() |
102 |
+ { |
103 |
+ QDir baseDir(qApp->applicationDirPath()); |
104 |
+- |
105 |
++ |
106 |
++#if defined(Q_OS_LINUX) |
107 |
++ if (baseDir.dirName() == "bin") { |
108 |
++ baseDir.cdUp(); |
109 |
++#ifdef MESHLAB_LIB_INSTALL_DIR |
110 |
++ baseDir.cd(MESHLAB_LIB_INSTALL_DIR); |
111 |
++#else |
112 |
++ baseDir.cd("lib"); |
113 |
++ if(baseDir.exists("meshlab")) { |
114 |
++ baseDir.cd("meshlab"); |
115 |
++ } |
116 |
++#endif // MESHLAB_LIB_INSTALL_DIR |
117 |
++ } |
118 |
++#endif |
119 |
++ |
120 |
+ #if defined(Q_OS_WIN) |
121 |
+ // Windows: |
122 |
+ // during development with visual studio binary could be in the debug/release subdir. |
123 |
|
124 |
diff --git a/media-gfx/meshlab/meshlab-2020.12.ebuild b/media-gfx/meshlab/meshlab-2020.12.ebuild |
125 |
new file mode 100644 |
126 |
index 00000000000..53eb1c1ee97 |
127 |
--- /dev/null |
128 |
+++ b/media-gfx/meshlab/meshlab-2020.12.ebuild |
129 |
@@ -0,0 +1,62 @@ |
130 |
+# Copyright 1999-2020 Gentoo Authors |
131 |
+# Distributed under the terms of the GNU General Public License v2 |
132 |
+ |
133 |
+EAPI=7 |
134 |
+ |
135 |
+inherit cmake xdg-utils |
136 |
+ |
137 |
+DESCRIPTION="A system for processing and editing unstructured 3D triangular meshes" |
138 |
+HOMEPAGE="http://www.meshlab.net" |
139 |
+VCG_VERSION="2020.12" |
140 |
+SRC_URI="https://github.com/cnr-isti-vclab/meshlab/archive/Meshlab-${PV}.tar.gz -> ${P}.tar.gz |
141 |
+ https://github.com/cnr-isti-vclab/vcglib/archive/${VCG_VERSION}.tar.gz -> vcglib-${VCG_VERSION}.tar.gz" |
142 |
+ |
143 |
+LICENSE="GPL-2" |
144 |
+SLOT="0" |
145 |
+KEYWORDS="~amd64 ~x86" |
146 |
+IUSE="double-precision -minimal" |
147 |
+ |
148 |
+DEPEND=" |
149 |
+ dev-cpp/eigen:3 |
150 |
+ dev-cpp/muParser |
151 |
+ dev-libs/gmp |
152 |
+ >=dev-qt/qtcore-5.12:5 |
153 |
+ >=dev-qt/qtopengl-5.12:5 |
154 |
+ >=dev-qt/qtscript-5.12:5 |
155 |
+ >=dev-qt/qtxmlpatterns-5.12:5 |
156 |
+ media-libs/glew:0 |
157 |
+ =media-libs/lib3ds-1* |
158 |
+ media-libs/openctm |
159 |
+ media-libs/qhull |
160 |
+ sci-libs/levmar |
161 |
+ sci-libs/mpir" |
162 |
+ |
163 |
+RDEPEND="${DEPEND}" |
164 |
+ |
165 |
+S="${WORKDIR}/meshlab-Meshlab-${PV}/src" |
166 |
+ |
167 |
+PATCHES=( |
168 |
+ "${FILESDIR}/${P}-disable-updates.patch" |
169 |
+ "${FILESDIR}/${P}-find-plugins.patch" |
170 |
+) |
171 |
+ |
172 |
+src_unpack() { |
173 |
+ unpack ${P}.tar.gz |
174 |
+ cd "${S}" |
175 |
+ unpack vcglib-2020.12.tar.gz |
176 |
+ mv vcglib-2020.12/* vcglib |
177 |
+} |
178 |
+ |
179 |
+src_configure() { |
180 |
+ CMAKE_BUILD_TYPE=Release |
181 |
+ |
182 |
+ local mycmakeargs=( |
183 |
+ -DBUILD_MINI=$(usex minimal) |
184 |
+ -DBUILD_WITH_DOUBLE_SCALAR=$(usex double-precision) |
185 |
+ ) |
186 |
+ cmake_src_configure |
187 |
+} |
188 |
+ |
189 |
+pkg_postinst() { |
190 |
+ xdg_desktop_database_update |
191 |
+} |
192 |
|
193 |
diff --git a/media-gfx/meshlab/metadata.xml b/media-gfx/meshlab/metadata.xml |
194 |
index 5454c9e8ca1..95901ec9bfc 100644 |
195 |
--- a/media-gfx/meshlab/metadata.xml |
196 |
+++ b/media-gfx/meshlab/metadata.xml |
197 |
@@ -1,20 +1,24 @@ |
198 |
<?xml version="1.0" encoding="UTF-8"?> |
199 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
200 |
<pkgmetadata> |
201 |
- <maintainer type="person"> |
202 |
- <email>amynka@g.o</email> |
203 |
- </maintainer> |
204 |
<maintainer type="project"> |
205 |
<email>3dprint@g.o</email> |
206 |
<name>Gentoo 3D print</name> |
207 |
</maintainer> |
208 |
- <longdescription lang="en"> |
209 |
- Printrun is a set of G-code sending applications for RepRap. |
210 |
- It consists of printcore (dumb G-code sender), pronsole (featured command line |
211 |
- G-code sender), pronterface (featured G-code sender with graphical user |
212 |
- interface), and a small collection of helpful scripts. |
213 |
+ <maintainer type="person"> |
214 |
+ <email>amynka@g.o</email> |
215 |
+ </maintainer> |
216 |
+ <longdescription> |
217 |
+ MeshLab is an open source, portable, and extensible system for the processing and editing of unstructured 3D |
218 |
+ triangular meshes. The system is aimed to help the processing of the typical not-so-small unstructured models |
219 |
+ arising in 3D scanning, providing a set of tools for editing, cleaning, healing, inspecting, rendering and |
220 |
+ converting these kinds of meshes. |
221 |
</longdescription> |
222 |
+ <use> |
223 |
+ <flag name="double-precision">Use double type instead of float type for scalars</flag> |
224 |
+ </use> |
225 |
<upstream> |
226 |
- <remote-id type="sourceforge">meshlab</remote-id> |
227 |
+ <bugs-to>https://github.com/cnr-isti-vclab/meshlab/issues</bugs-to> |
228 |
+ <remote-id type="github">cnr-isti-vclab/meshlab</remote-id> |
229 |
</upstream> |
230 |
</pkgmetadata> |