media-gfx/meshlab: EAPI 6 bump ,fix bug #614776
authorAmy Liffey <amynka@gentoo.org>
Fri, 11 Aug 2017 12:41:07 +0000 (14:41 +0200)
committerAmy Liffey <amynka@gentoo.org>
Fri, 11 Aug 2017 12:45:23 +0000 (14:45 +0200)
- Add patch structuresynth build failure
Submitted-by: CaptainBlood <luc_pierard_de_maujouy@yahoo.fr>
- Fix slot glew

Package-Manager: Portage-2.3.6, Repoman-2.3.1

12 files changed:
media-gfx/meshlab/files/1.3.3/gcc-4.7.patch
media-gfx/meshlab/files/1.3.3/lapack.patch
media-gfx/meshlab/files/1.3.3/meshrender.patch
media-gfx/meshlab/files/1.3.3/mpir.patch
media-gfx/meshlab/files/1.3.3/pluginmanager.patch
media-gfx/meshlab/files/1.3.3/qt-4.8.patch
media-gfx/meshlab/files/1.3.3/rfx.patch
media-gfx/meshlab/files/1.3.3/rmmeshrender.patch
media-gfx/meshlab/files/1.3.3/rpath.patch
media-gfx/meshlab/files/1.3.3/structuresynth.patch [new file with mode: 0644]
media-gfx/meshlab/meshlab-1.3.2.ebuild
media-gfx/meshlab/meshlab-1.3.3-r1.ebuild [moved from media-gfx/meshlab/meshlab-1.3.3.ebuild with 70% similarity]

index b918ca52ec45f1d0e3a1fc939135f476ef1492bf..6329f23e794964fb573e70567b711a05b1b0b34e 100644 (file)
@@ -1,7 +1,7 @@
 diff --git vcglib/wrap/ply/plystuff.h vcglib/wrap/ply/plystuff.h
 index 3e41e63..4af9508 100644
---- vcglib/wrap/ply/plystuff.h
-+++ vcglib/wrap/ply/plystuff.h
+--- a/vcglib/wrap/ply/plystuff.h
++++ b/vcglib/wrap/ply/plystuff.h
 @@ -75,6 +75,7 @@ using namespace vcg;
  #define pb_close  _close
  #define DIR_SEP "\\"
index 81c0946340507a8e2ed940e04b7e2343173c2d79..e2742eb99991a9725e11e28f45b8146e3962526b 100644 (file)
@@ -1,6 +1,6 @@
 diff -Nur meshlab.orig/src/external/levmar-2.3/lm.h meshlab/src/external/levmar-2.3/lm.h
---- meshlab.orig/src/external/levmar-2.3/lm.h  2010-04-28 17:30:47.000000000 +1000
-+++ meshlab/src/external/levmar-2.3/lm.h       2010-05-13 20:17:35.488505907 +1000
+--- a/meshlab/src/external/levmar-2.3/lm.h     2010-04-28 17:30:47.000000000 +1000
++++ b/meshlab/src/external/levmar-2.3/lm.h     2010-05-13 20:17:35.488505907 +1000
 @@ -27,7 +27,6 @@
  
  /* specify whether to use LAPACK or not. The first option is strongly recommended */
index 382e21ca2f0d4ec56f0a8335bca795afca5dd3ac..33eb1cbf703831e7fd027bbb0a0633b86e478bff 100644 (file)
@@ -1,5 +1,5 @@
---- meshlab/src/meshlabplugins/render_gdp/meshrender.cpp       2014-02-07 10:38:28.000000000 +0100
-+++ meshlab/src/meshlabplugins/render_gdb/meshrender.cpp       2015-11-15 22:17:39.848179962 +0100
+--- a/meshlab/src/meshlabplugins/render_gdp/meshrender.cpp     2014-02-07 10:38:28.000000000 +0100
++++ b/meshlab/src/meshlabplugins/render_gdb/meshrender.cpp     2015-11-15 22:17:39.848179962 +0100
 @@ -36,8 +36,11 @@
        /*QAction * qaNone = new QAction("None", this); 
        qaNone->setCheckable(false);
index a3f8d051d8912502105758c9073a460ec24fe4d0..fae203e18a18917b2f4d7b257cb164019ea1a33b 100644 (file)
@@ -1,6 +1,6 @@
 diff -Nur meshlab.orig/src/meshlabplugins/filter_csg/filter_csg.pro meshlab/src/meshlabplugins/filter_csg/filter_csg.pro
---- meshlab.orig/src/meshlabplugins/filter_csg/filter_csg.pro  2014-04-02 02:59:31.000000000 +1100
-+++ meshlab/src/meshlabplugins/filter_csg/filter_csg.pro       2014-06-01 21:10:24.521095356 +1000
+--- a/meshlab/src/meshlabplugins/filter_csg/filter_csg.pro     2014-04-02 02:59:31.000000000 +1100
++++ b/meshlab/src/meshlabplugins/filter_csg/filter_csg.pro     2014-06-01 21:10:24.521095356 +1000
 @@ -18,6 +18,4 @@
  win32-msvc2008:LIBS            += ../../external/lib/win32-msvc2008/mpirxx.lib ../../external/lib/win32-msvc2008/mpir.lib
  win32-msvc2010:LIBS            += ../../external/lib/win32-msvc2008/mpirxx.lib ../../external/lib/win32-msvc2008/mpir.lib
index 00f3ba8c182236941e9c6d9b60fb8d0b7d443ec2..853015da4d06e1624bece34a2eede0ba47efa865 100644 (file)
@@ -1,5 +1,5 @@
---- meshlab/src/common/pluginmanager.cpp~      2014-04-01 17:07:40.000000000 +0200
-+++ meshlab/src/common/pluginmanager.cpp       2015-11-15 20:58:53.708227793 +0100
+--- a/meshlab/src/common/pluginmanager.cpp     2014-04-01 17:07:40.000000000 +0200
++++ b/meshlab/src/common/pluginmanager.cpp     2015-11-15 20:58:53.708227793 +0100
 @@ -178,7 +178,11 @@
  
  QString PluginManager::getBaseDirPath()
index e820aceb5bbe42f89b8eb3a24e35cb0b4a09fb4d..bb1113a5c6173cee40da0042555ca468661e8aae 100644 (file)
@@ -1,6 +1,6 @@
 diff -Nur meshlab.orig/src/meshlab/meshlab.pro meshlab/src/meshlab/meshlab.pro
---- meshlab.orig/src/meshlab/meshlab.pro       2011-02-15 20:39:47.000000000 +1100
-+++ meshlab/src/meshlab/meshlab.pro    2012-01-07 11:57:18.055586086 +1100
+--- a/meshlab/src/meshlab/meshlab.pro  2011-02-15 20:39:47.000000000 +1100
++++ b/meshlab/src/meshlab/meshlab.pro  2012-01-07 11:57:18.055586086 +1100
 @@ -85,6 +85,7 @@
  QT += xmlpatterns
  QT += network
index 9cac55959910199eaa8cb8e7b5080635074a854d..0d7d03d3f09e5d852108adc837dcbc5b90a7204a 100644 (file)
@@ -1,5 +1,5 @@
---- meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp~      2014-02-07 10:38:29.000000000 +0100
-+++ meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp       2015-11-16 00:07:34.868113218 +0100
+--- a/meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp     2014-02-07 10:38:29.000000000 +0100
++++ b/meshlab/src/meshlabplugins/render_rfx/render_rfx.cpp     2015-11-16 00:07:34.868113218 +0100
 @@ -55,7 +55,11 @@
  
  void RenderRFX::initActionList()
index 59f3333a73110de3d9fce7cd8e9fffbdfcae6034..1fbf686980beff0f33cecb75f497d317750cefba 100644 (file)
@@ -1,5 +1,5 @@
---- meshlab/src/plugins_unsupported/render_rm/rmmeshrender.cpp~        2013-05-22 17:08:53.000000000 +0200
-+++ meshlab/src/plugins_unsupported/render_rm/rmmeshrender.cpp 2015-11-15 23:18:04.678143277 +0100
+--- a/meshlab/src/plugins_unsupported/render_rm/rmmeshrender.cpp       2013-05-22 17:08:53.000000000 +0200
++++ b/meshlab/src/plugins_unsupported/render_rm/rmmeshrender.cpp       2015-11-15 23:18:04.678143277 +0100
 @@ -63,7 +63,12 @@
  
  void RmMeshShaderRenderPlugin::initActionList() {
index 31ed26b0344e78d507aff35719e6702104ed858e..473d2a8fa480bf5b95bccb4d23356bbd142752f6 100644 (file)
@@ -1,6 +1,6 @@
 diff -Nur meshlab.orig/src/meshlab/meshlab.pro meshlab/src/meshlab/meshlab.pro
---- meshlab.orig/src/meshlab/meshlab.pro       2012-05-31 00:32:44.000000000 +1000
-+++ meshlab/src/meshlab/meshlab.pro    2012-08-06 21:26:01.405784190 +1000
+--- a/meshlab/src/meshlab/meshlab.pro  2012-05-31 00:32:44.000000000 +1000
++++ b/meshlab/src/meshlab/meshlab.pro  2012-08-06 21:26:01.405784190 +1000
 @@ -130,11 +130,11 @@
  #}
  
@@ -20,8 +20,8 @@ diff -Nur meshlab.orig/src/meshlab/meshlab.pro meshlab/src/meshlab/meshlab.pro
  # uncomment in your local copy only in emergency cases.
  # We should never be too permissive
 diff -Nur meshlab.orig/src/meshlabserver/meshlabserver.pro meshlab/src/meshlabserver/meshlabserver.pro
---- meshlab.orig/src/meshlabserver/meshlabserver.pro   2011-10-15 03:34:48.000000000 +1100
-+++ meshlab/src/meshlabserver/meshlabserver.pro        2012-08-06 21:26:34.609557938 +1000
+--- a/meshlab/src/meshlabserver/meshlabserver.pro      2011-10-15 03:34:48.000000000 +1100
++++ b/meshlab/src/meshlabserver/meshlabserver.pro      2012-08-06 21:26:34.609557938 +1000
 @@ -26,11 +26,11 @@
  win32-msvc2010:  LIBS += -L../distrib -lcommon
  win32-g++:  LIBS += -L../distrib -lcommon
diff --git a/media-gfx/meshlab/files/1.3.3/structuresynth.patch b/media-gfx/meshlab/files/1.3.3/structuresynth.patch
new file mode 100644 (file)
index 0000000..e5d6d2b
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/meshlab/src/external/structuresynth-1.5/ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp  2014-02-07 12:38:23.000000000 +0300
++++ b/meshlab/src/external/structuresynth-1.5/ssynth/SyntopiaCore/GLEngine/Raytracer/VoxelStepper.cpp  2017-08-10 21:00:02.819783756 +0300
+@@ -122,7 +122,7 @@
+                                               currentT = p;
+                                               // We do not intersect grid.
+-                                              if (!found) return false;
++                                              if (!found) return NULL;
+                               }
+                               stepX = (dir.x() > 0) ? 1 : -1;
index f2f3eb354eb9c3d9d78e2355902bf028ca83911e..587c5dbe263218bb8c2ce2ab567db03d566f4651 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=5
@@ -18,7 +18,7 @@ DEPEND="dev-cpp/eigen:3
        dev-cpp/muParser
        dev-qt/qtcore:4
        dev-qt/qtopengl:4
-       media-libs/glew
+       media-libs/glew:0=
        media-libs/qhull
        =media-libs/lib3ds-1*
        media-libs/openctm
similarity index 70%
rename from media-gfx/meshlab/meshlab-1.3.3.ebuild
rename to media-gfx/meshlab/meshlab-1.3.3-r1.ebuild
index 8c1c340e1fe8d8ede3e9400582aa7cbcfadc37d0..8cfb26c0df4c1d3ab0f97a027b185930b1a84e96 100644 (file)
@@ -1,9 +1,9 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=6
 
-inherit eutils versionator multilib
+inherit eutils versionator
 
 DESCRIPTION="A mesh processing system"
 HOMEPAGE="http://meshlab.sourceforge.net/"
@@ -19,7 +19,7 @@ DEPEND="dev-cpp/eigen:3
        dev-qt/qtcore:4
        dev-qt/qtopengl:4
        dev-qt/qtxmlpatterns:4
-       media-libs/glew
+       media-libs/glew:0=
        media-libs/qhull
        =media-libs/lib3ds-1*
        media-libs/openctm
@@ -30,17 +30,20 @@ RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/meshlab/src"
 
+PATCHES=( "${FILESDIR}/${PV}/gcc-4.7.patch"
+         "${FILESDIR}/${PV}/lapack.patch"
+         "${FILESDIR}/${PV}/mpir.patch"
+         "${FILESDIR}/${PV}/qt-4.8.patch"
+         "${FILESDIR}/${PV}/rpath.patch"
+         "${FILESDIR}/${PV}/pluginmanager.patch"
+         "${FILESDIR}/${PV}/meshrender.patch"
+         "${FILESDIR}/${PV}/rmmeshrender.patch"
+         "${FILESDIR}/${PV}/rfx.patch"
+         "${FILESDIR}/${PV}/structuresynth.patch" )
+
 src_prepare() {
-       cd "${WORKDIR}"
-       epatch  "${FILESDIR}/${PV}"/gcc-4.7.patch \
-               "${FILESDIR}/${PV}"/lapack.patch \
-               "${FILESDIR}/${PV}"/mpir.patch \
-               "${FILESDIR}/${PV}"/qt-4.8.patch \
-               "${FILESDIR}/${PV}"/rpath.patch \
-               "${FILESDIR}/${PV}"/pluginmanager.patch \
-               "${FILESDIR}/${PV}"/meshrender.patch \
-               "${FILESDIR}/${PV}"/rmmeshrender.patch \
-               "${FILESDIR}/${PV}"/rfx.patch
+       cd "${WORKDIR}" || die
+       default
 }
 
 src_configure() {