diff options
author | Ionen Wolkens <sudinave@gmail.com> | 2021-01-12 02:35:53 -0500 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-02-05 02:06:42 +0000 |
commit | 4fc943a7edd78e5ba3c0d42f053ca1e966e0032a (patch) | |
tree | ea5449b8264a66b27089a5934b7cbd29e7bab407 /media-gfx | |
parent | dev-libs/miniz: don't set visibility to hidden (diff) | |
download | gentoo-4fc943a7edd78e5ba3c0d42f053ca1e966e0032a.tar.gz gentoo-4fc943a7edd78e5ba3c0d42f053ca1e966e0032a.tar.bz2 gentoo-4fc943a7edd78e5ba3c0d42f053ca1e966e0032a.zip |
media-gfx/prusaslicer: 2.3.0 version bump + fixes
ebuild changes from 2.2.0-r1 to 2.3.0:
+ REQUIRED_USE on gui for tests (bug #760096)
+ patch to add missing miniz header (bug #761541)
+ qhull:=[static-libs] (qhull_r.so subslot + qhullcpp.a, bug #764338)
+ force GTK3 (bug #765031)
+ GUI deps optional with USE=-gui
+ hopefully all missing dependencies
- Release build type, not needed
- previous patches (applied upstream)
+ use .desktop files provided by the package
+ update licenses
+ minor cleanups
Closes: https://bugs.gentoo.org/760096
Closes: https://bugs.gentoo.org/761541
Closes: https://bugs.gentoo.org/764338
Closes: https://bugs.gentoo.org/765031
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Ionen Wolkens <sudinave@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/19059
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/prusaslicer/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/prusaslicer/files/prusaslicer-2.3.0-miniz-zip-header.patch | 9 | ||||
-rw-r--r-- | media-gfx/prusaslicer/prusaslicer-2.3.0.ebuild | 86 |
3 files changed, 96 insertions, 0 deletions
diff --git a/media-gfx/prusaslicer/Manifest b/media-gfx/prusaslicer/Manifest index ac05bb7cb7d3..4dcbadca21f8 100644 --- a/media-gfx/prusaslicer/Manifest +++ b/media-gfx/prusaslicer/Manifest @@ -1 +1,2 @@ DIST prusaslicer-2.2.0.tar.gz 30811929 BLAKE2B cde004add53ee025728d566cb7331cb7b1eac5412e9ad3bee037d13277c24dcdc6024c91f09bb9ef0653a12a3ee7c5cb5cec21e2a00825d185472ea7036e08f5 SHA512 5c8dc5b581e04208a1ae53771ef2607da189ee85aadf501ce1480008f5a6ddb10bb528ddc2608d3f04acd26c583ff895ad4148d6a1397f002292e20098971e1d +DIST prusaslicer-2.3.0.tar.gz 34785471 BLAKE2B 89691baf30ac2be901ebee594262a82e2c922ddae75b055561707fe152c392175766082844ad1ae2cb2fefb29a9d3abe03c0302ad84c347e94d127756429d0a7 SHA512 2bd3e7d384ba1c59007744f4aba89de9ca9864e4bdc7b6faa9a56f514212878d1d2e7d70fc0f08e39310af76c365d1a3f8f1df263e8656249483a5b33cab417d diff --git a/media-gfx/prusaslicer/files/prusaslicer-2.3.0-miniz-zip-header.patch b/media-gfx/prusaslicer/files/prusaslicer-2.3.0-miniz-zip-header.patch new file mode 100644 index 000000000000..8fd587d3d481 --- /dev/null +++ b/media-gfx/prusaslicer/files/prusaslicer-2.3.0-miniz-zip-header.patch @@ -0,0 +1,9 @@ +https://bugs.gentoo.org/761541 +--- a/src/libslic3r/miniz_extension.hpp 2021-01-11 08:01:51.000000000 -0500 ++++ b/src/libslic3r/miniz_extension.hpp 2021-01-12 01:16:10.503404521 -0500 +@@ -4,4 +4,5 @@ + #include <string> + #include <miniz.h> ++#include <miniz_zip.h> + + namespace Slic3r { diff --git a/media-gfx/prusaslicer/prusaslicer-2.3.0.ebuild b/media-gfx/prusaslicer/prusaslicer-2.3.0.ebuild new file mode 100644 index 000000000000..5cb1a4a2c4cf --- /dev/null +++ b/media-gfx/prusaslicer/prusaslicer-2.3.0.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +WX_GTK_VER="3.0-gtk3" + +inherit xdg cmake desktop wxwidgets + +MY_PN="PrusaSlicer" + +DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)" +HOMEPAGE="https://www.prusa3d.com/prusaslicer/" +SRC_URI="https://github.com/prusa3d/${MY_PN}/archive/version_${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="AGPL-3 Boost-1.0 GPL-2 LGPL-3 MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gui test" + +# tests fail to link with USE=-gui, bug #760096 +REQUIRED_USE="test? ( gui )" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-cpp/eigen:3 + dev-cpp/tbb + >=dev-libs/boost-1.73.0:=[nls,threads] + dev-libs/cereal + dev-libs/expat + dev-libs/gmp:= + dev-libs/miniz + dev-libs/mpfr:= + >=media-gfx/openvdb-5.0.0 + media-libs/ilmbase:= + media-libs/libpng:0= + media-libs/qhull:= + sci-libs/libigl + sci-libs/nlopt + >=sci-mathematics/cgal-5.0:= + sys-apps/dbus + sys-libs/zlib:= + gui? ( + dev-libs/glib:2 + media-libs/glew:0= + net-misc/curl + virtual/glu + virtual/opengl + x11-libs/gtk+:3 + x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] + ) +" +DEPEND="${RDEPEND} + media-libs/qhull[static-libs] +" + +S="${WORKDIR}/${MY_PN}-version_${PV}" + +PATCHES=( + "${FILESDIR}/${P}-miniz-zip-header.patch" +) + +src_configure() { + use gui && setup-wxwidgets + + local mycmakeargs=( + -DSLIC3R_BUILD_TESTS=$(usex test) + -DSLIC3R_FHS=ON + -DSLIC3R_GTK=3 + -DSLIC3R_GUI=$(usex gui) + -DSLIC3R_PCH=OFF + -DSLIC3R_WX_STABLE=ON + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + + if use gui; then + newicon -s 128 resources/icons/PrusaSlicer_128px.png PrusaSlicer.png + newicon -s 128 resources/icons/PrusaSlicer-gcodeviewer_128px.png PrusaSlicer-gcodeviewer.png + domenu src/platform/unix/Prusa{Slicer,Gcodeviewer}.desktop + fi +} |