From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3C215138AE9 for ; Wed, 27 Dec 2017 16:22:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 26922E0CC7; Wed, 27 Dec 2017 16:22:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EC148E0CC7 for ; Wed, 27 Dec 2017 16:22:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 61D5733BF05 for ; Wed, 27 Dec 2017 16:22:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ABD16AF5F for ; Wed, 27 Dec 2017 16:21:58 +0000 (UTC) From: "Amy Liffey" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Amy Liffey" Message-ID: <1514391675.b5adf61fc5ab5b1d96143e1ebb5f62d7ea26b5f0.amynka@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/meshlab/files/2016.12/, media-gfx/meshlab/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/meshlab/files/2016.12/meshlab-2016.12-align1.patch media-gfx/meshlab/files/2016.12/meshlab-2016.12-align2.patch media-gfx/meshlab/files/2016.12/meshlab-2016.12-fix-plugins-path.patch media-gfx/meshlab/meshlab-2016.12-r1.ebuild X-VCS-Directories: media-gfx/meshlab/files/2016.12/ media-gfx/meshlab/ X-VCS-Committer: amynka X-VCS-Committer-Name: Amy Liffey X-VCS-Revision: b5adf61fc5ab5b1d96143e1ebb5f62d7ea26b5f0 X-VCS-Branch: master Date: Wed, 27 Dec 2017 16:21:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 636d3ac9-db46-40d3-aebe-abdfa05ffc8a X-Archives-Hash: 7b7b24f5292bfc87f3ab999780a6069f commit: b5adf61fc5ab5b1d96143e1ebb5f62d7ea26b5f0 Author: Amy Liffey gentoo org> AuthorDate: Wed Dec 27 16:16:45 2017 +0000 Commit: Amy Liffey gentoo org> CommitDate: Wed Dec 27 16:21:15 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5adf61f media-gfx/meshlab: fix align and plugin path - Align fix -> Submitted-by:luc_pierard_de_maujouy yahoo.fr Closes: https://bugs.gentoo.org/638796 Package-Manager: Portage-2.3.13, Repoman-2.3.3 .../files/2016.12/meshlab-2016.12-align1.patch | 16 ++++ .../files/2016.12/meshlab-2016.12-align2.patch | 11 +++ .../2016.12/meshlab-2016.12-fix-plugins-path.patch | 17 ++++ media-gfx/meshlab/meshlab-2016.12-r1.ebuild | 104 +++++++++++++++++++++ 4 files changed, 148 insertions(+) diff --git a/media-gfx/meshlab/files/2016.12/meshlab-2016.12-align1.patch b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-align1.patch new file mode 100644 index 00000000000..cdba89c0ac3 --- /dev/null +++ b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-align1.patch @@ -0,0 +1,16 @@ +--- a/meshlabplugins/edit_align/align/AlignGlobal.cpp 2016-12-23 13:24:59.000000000 +0300 ++++ b/meshlabplugins/edit_align/align/AlignGlobal.cpp 2017-11-26 03:05:11.010113483 +0300 +@@ -429,11 +429,11 @@ + + ******************************/ + +-bool AlignGlobal::GlobalAlign(const std::map &Names, const double epsilon, int maxiter, bool Rigid, FILE *elfp, CallBack* cb ) ++bool AlignGlobal::GlobalAlign(const std::map &Names, const double epsilon, int maxiter, bool Rigid, FILE *elfp, CallBackPos* cb ) + { + double change; + int step, localmaxiter; +- cb("Global Alignment..."); ++ cb(0,"Global Alignment..."); + LOG(elfp,"----------------\n----------------\nGlobalAlignment (target eps %7.3f)\n",epsilon); + + queue Q; diff --git a/media-gfx/meshlab/files/2016.12/meshlab-2016.12-align2.patch b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-align2.patch new file mode 100644 index 00000000000..455eec096c8 --- /dev/null +++ b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-align2.patch @@ -0,0 +1,11 @@ +--- a/meshlabplugins/edit_align/align/AlignGlobal.h 2016-12-23 13:24:59.000000000 +0300 ++++ b/meshlabplugins/edit_align/align/AlignGlobal.h 2017-11-26 03:10:09.210116792 +0300 +@@ -115,7 +115,7 @@ + Node *ChooseDormantWithMostActiveLink (); + void MakeAllDormant(); + void Clear(); +- bool GlobalAlign(const std::map &Names, const double epsilon, int maxiter, bool Rigid, FILE *elfp=0, CallBack * cb=DummyCallBack ); ++ bool GlobalAlign(const std::map &Names, const double epsilon, int maxiter, bool Rigid, FILE *elfp=0, CallBackPos * cb=DummyCallBackPos ); + + bool CheckGraph(); + diff --git a/media-gfx/meshlab/files/2016.12/meshlab-2016.12-fix-plugins-path.patch b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-fix-plugins-path.patch new file mode 100644 index 00000000000..d7b17fe904b --- /dev/null +++ b/media-gfx/meshlab/files/2016.12/meshlab-2016.12-fix-plugins-path.patch @@ -0,0 +1,17 @@ +diff --git a/common/pluginmanager.cpp b/common/pluginmanager.cpp +index 5354055..9a523d4 100644 +--- a/common/pluginmanager.cpp ++++ b/common/pluginmanager.cpp +@@ -189,7 +189,11 @@ QString PluginManager::osDependentFileBaseName(const QString &plname) + + QString PluginManager::getBaseDirPath() + { +- QDir baseDir(qApp->applicationDirPath()); ++ #if defined(Q_OS_LINUX) ++ QDir baseDir("/usr/share/meshlab"); ++ #else ++ QDir baseDir(qApp->applicationDirPath()); ++ #endif + + #if defined(Q_OS_WIN) + // Windows: diff --git a/media-gfx/meshlab/meshlab-2016.12-r1.ebuild b/media-gfx/meshlab/meshlab-2016.12-r1.ebuild new file mode 100644 index 00000000000..824261918cd --- /dev/null +++ b/media-gfx/meshlab/meshlab-2016.12-r1.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit qmake-utils + +DESCRIPTION="the open source system for processing and editing 3D triangular meshes" +HOMEPAGE="http://www.meshlab.net" +VCG_VERSION="1.0.1" +SRC_URI="https://github.com/cnr-isti-vclab/meshlab/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://github.com/cnr-isti-vclab/vcglib/archive/v${VCG_VERSION}.tar.gz -> vcglib-${VCG_VERSION}.tar.gz +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="-minimal" +DEPEND="dev-cpp/eigen:3 + dev-cpp/muParser + dev-qt/qtcore:5 + dev-qt/qtopengl:5 + dev-qt/qtscript:5 + dev-qt/qtxmlpatterns:5 + >=media-gfx/jhead-3.00-r2 + media-libs/glew:0 + media-libs/qhull + =media-libs/lib3ds-1* + media-libs/openctm + sci-libs/levmar + sci-libs/mpir" + +RDEPEND="${DEPEND}" + +S="${WORKDIR}/meshlab-${PV}/src" + +PATCHES=( + "${FILESDIR}/${PV}/0001-set-shader-and-texture-paths.patch" + #remove ot working plugins + "${FILESDIR}/${PV}/remove-edit_mutualcorrs.patch" + "${FILESDIR}/${PV}/remove-io_TXT.patch" + #since structure synth doesn't seem to be compiling + "${FILESDIR}/${PV}/0001-disable-filter-ssynth.patch" + #this has been fixed in the tree + "${FILESDIR}/${PV}/0001-disable-edit-quality.patch" + #this causes segfaults + "${FILESDIR}/${PV}/0001-disable-filter-layer.patch" + #for when we use minimal + "${FILESDIR}/${PV}/0001-compile-server.patch" + "${FILESDIR}/${PV}/0001-use-external-lib3ds.patch" + "${FILESDIR}/${PV}/0001-use-external-openctm.patch" + "${FILESDIR}/${PV}/0001-use-external-muParser.patch" + "${FILESDIR}/${PV}/0001-use-external-bzip.patch" + "${FILESDIR}/${PV}/0001-use-external-jhead.patch" + "${FILESDIR}/${PV}/0001-use-external-glew.patch" + #cause gnu stack quickstart related qa + "${FILESDIR}/${PV}/0001-remove-not-sane-plugins.patch" + "${FILESDIR}/${PV}/${P}-fix-plugins-path.patch" + "${FILESDIR}/${PV}/${P}-align1.patch" + "${FILESDIR}/${PV}/${P}-align2.patch" + ) + +src_prepare(){ + mv "${WORKDIR}/vcglib-${VCG_VERSION}" "${WORKDIR}/vcglib" || die "vcglib mv failed" + default + #proof of patchset + #remove libs that are being used from the system + rm -r "external/lib3ds-1.3.0" || die "rm failed" + rm -r "external/OpenCTM-1.0.3" || die "rm failed" + rm -r "external/muparser_v132" || die "rm failed" + rm -r "external/muparser_v225" || die "rm failed" + rm -r "external/bzip2-1.0.5" || die "rm failed" + rm -r "external/jhead-2.95" || die "rm failed" + rm -r "external/glew-1.5.1" || die "rm failed" + rm -r "external/glew-1.7.0" || die "rm failed" + #we still depend on lm.h + #rm -r "external" + rm -r "distrib/plugins/U3D_W32" || die + rm -r "distrib/plugins/U3D_OSX" || die +} + +src_configure() { + use minimal || eqmake5 -r meshlab_full.pro + use minimal && eqmake5 -r meshlab_mini.pro +} + +src_install() { + dobin distrib/{meshlab,meshlabserver} + dolib distrib/libcommon.so.1.0.0 + dosym libcommon.so.1.0.0 /usr/$(get_libdir)/libcommon.so.1 + dosym libcommon.so.1 /usr/$(get_libdir)/libcommon.so + exeinto /usr/$(get_libdir)/meshlab/plugins + doexe distrib/plugins/*.so + insinto /usr/share/meshlab/shaders + doins -r distrib/shaders/* + insinto /usr/share/meshlab/plugins + doins -r distrib/plugins/* + insinto /usr/share/meshlab/textures + doins -r distrib/textures/* + insinto /usr/share/meshlab/sample + doins -r distrib/sample/* + newicon "${S}"/meshlab/images/eye512.png "${PN}".png + make_desktop_entry meshlab "Meshlab" "${PN}" Graphics +}