diff options
author | 2021-05-30 17:53:26 -0500 | |
---|---|---|
committer | 2021-05-30 17:53:26 -0500 | |
commit | 0d4081d1dcf529bd4f71116a762e96c95b94fcb3 (patch) | |
tree | cbeca1da2c7ccad64f0f74f478c6ec03f71f03ed /media-gfx | |
parent | Bump duplicity version (diff) | |
download | sattvik-0d4081d1dcf529bd4f71116a762e96c95b94fcb3.tar.gz sattvik-0d4081d1dcf529bd4f71116a762e96c95b94fcb3.tar.bz2 sattvik-0d4081d1dcf529bd4f71116a762e96c95b94fcb3.zip |
Add prusaslicer-2.3.1
Signed-off-by: Daniel Solano <gentoo@sattvik.com>
Diffstat (limited to 'media-gfx')
5 files changed, 131 insertions, 0 deletions
diff --git a/media-gfx/prusaslicer/Manifest b/media-gfx/prusaslicer/Manifest new file mode 100644 index 0000000..6fbb894 --- /dev/null +++ b/media-gfx/prusaslicer/Manifest @@ -0,0 +1,5 @@ +AUX prusaslicer-2.3.1-miniz-zip-header.patch 284 BLAKE2B f73db5727dd6bffc39c658a291602ee6d86609244e9cd55a9eeb92a376cc4a579a94ef9f423e3072dbd01295b173c9291d615a56d5fb512cdccc93b205f665d0 SHA512 36e3c1e5d35f6cda26d8f74db3862cc5206478f7f79f35b28b3b3749291150764d1d907a3ccb67b4dcd1872fa5d0ac612791653dc67f3a56aeb98b68dc873f27 +AUX prusaslicer-2.3.1-optimizer-header-fix.patch 482 BLAKE2B 87666a29580722c5ab70d66bb9a0f4c7b8609accbaa4aadc9ef0866ae506526136185487ea5d87cc0430c4205b3af357bbc6cfb829ffb87ca4d4afc9be0dd983 SHA512 6c135c5d01d0626a0c8053d5fa4a68bd0bac2fec4acea4d48c755bc38dad7a9dd9481fb5546dcb69c1f258239b4751b094360a15d2d6060ee6de302bb64ead45 +DIST prusaslicer-2.3.1.tar.gz 39583385 BLAKE2B 0d0fa11d21ec3cc0decb2708a1b1866bbe0ec5719236433ef87807541ada8abc67091f219392a1ae21b4f35c3821dde94bfd6dac72ec6617c40b7fda05cfc082 SHA512 2722ee9d5331fe03423ce179cec68196320b48c65bd3c6795b93469268956fb309609462cc62bf3e2b4f30d2fe720d0a28a16c010993737c045d82956493a1e3 +EBUILD prusaslicer-2.3.1.ebuild 1859 BLAKE2B ac7dbb3750727246e5f772153fd091a83e321effa8d0efa96808aa0bf309a7c9b415fcafb3068ea9898e42f388375f3cdfc46339268e708a7484086cd4677e0c SHA512 e8a057b9fd1e0a4795fb39c31ad3e1dbdd12f182bc3e71005e7cc6da98d272b8b85a91e40407ecebd4b517413f2d4aba829172f588375510c8b174442e088179 +MISC metadata.xml 830 BLAKE2B b0c07af4dcc135e6ce2a67137ff2373ca4f842ac1e2efdff44dad399c487b2d2c7e71bf9932a544d30bc5f0a1e5ccd64830645be647137dda0bb23d00c62575a SHA512 9441df6291bfc1f7c6c85479e8bbe14389e091a43f0bc2ac22eee68544f6868ebd0eb342c7b79316809d0bde1b15684c9ea59cd57252b59643bb735e0b87422c diff --git a/media-gfx/prusaslicer/files/prusaslicer-2.3.1-miniz-zip-header.patch b/media-gfx/prusaslicer/files/prusaslicer-2.3.1-miniz-zip-header.patch new file mode 100644 index 0000000..8fd587d --- /dev/null +++ b/media-gfx/prusaslicer/files/prusaslicer-2.3.1-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/files/prusaslicer-2.3.1-optimizer-header-fix.patch b/media-gfx/prusaslicer/files/prusaslicer-2.3.1-optimizer-header-fix.patch new file mode 100644 index 0000000..75ccbab --- /dev/null +++ b/media-gfx/prusaslicer/files/prusaslicer-2.3.1-optimizer-header-fix.patch @@ -0,0 +1,11 @@ +diff -Naur PrusaSlicer-version_2.3.1/src/libslic3r/Optimize/Optimizer.hpp PrusaSlicer-version_2.3.1/src/libslic3r/Optimize/Optimizer.hpp +--- PrusaSlicer-version_2.3.1/src/libslic3r/Optimize/Optimizer.hpp 2021-04-16 06:41:00.000000000 -0500 ++++ PrusaSlicer-version_2.3.1/src/libslic3r/Optimize/Optimizer.hpp 2021-05-30 17:43:35.819546751 -0500 +@@ -8,6 +8,7 @@ + #include <functional> + #include <limits> + #include <cassert> ++#include <optional> + + namespace Slic3r { namespace opt { + diff --git a/media-gfx/prusaslicer/metadata.xml b/media-gfx/prusaslicer/metadata.xml new file mode 100644 index 0000000..0d7a4d3 --- /dev/null +++ b/media-gfx/prusaslicer/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>3dprint@gentoo.org</email> + <name>Gentoo 3D Printer Project</name> + </maintainer> + <longdescription> + PrusaSlicer takes 3D models (STL, OBJ, AMF) and converts them into G-code instructions for FFF printers or PNG + layers for mSLA 3D printers. It's compatible with any modern printer based on the RepRap toolchain, including + all those based on the Marlin, Prusa, Sprinter and Repetier firmware. It also works with Mach3, LinuxCNC and + Machinekit controllers. + + PrusaSlicer is based on Slic3r by Alessandro Ranellucci and the RepRap community. + </longdescription> + <upstream> + <remote-id type="github">prusa3d/PrusaSlicer</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-gfx/prusaslicer/prusaslicer-2.3.1.ebuild b/media-gfx/prusaslicer/prusaslicer-2.3.1.ebuild new file mode 100644 index 0000000..39f9ca4 --- /dev/null +++ b/media-gfx/prusaslicer/prusaslicer-2.3.1.ebuild @@ -0,0 +1,87 @@ +# 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-2.1.0-r2 + 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" + "${FILESDIR}/${P}-optimizer-header-fix.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 +} |