summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Lermytte <gentoo@lermytte.be>2021-09-23 23:06:39 +0200
committerSam James <sam@gentoo.org>2021-09-24 00:18:33 +0100
commitd92534c71f93ba103aecee274942b7b2a82e5af7 (patch)
treeb8a94e993c10e12d1f634d26d17c8345b38b9588 /media-gfx
parentmedia-video/pipewire: add 0.3.37 (diff)
downloadgentoo-d92534c71f93ba103aecee274942b7b2a82e5af7.tar.gz
gentoo-d92534c71f93ba103aecee274942b7b2a82e5af7.tar.bz2
gentoo-d92534c71f93ba103aecee274942b7b2a82e5af7.zip
media-gfx/prusaslicer: version bump to 2.3.3
Dropping the gcc-11 patch, which is no longer necessary Signed-off-by: Christophe Lermytte <gentoo@lermytte.be> Closes: https://github.com/gentoo/gentoo/pull/22379 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/prusaslicer/Manifest1
-rw-r--r--media-gfx/prusaslicer/prusaslicer-2.3.3.ebuild86
2 files changed, 87 insertions, 0 deletions
diff --git a/media-gfx/prusaslicer/Manifest b/media-gfx/prusaslicer/Manifest
index bf50378cef58..737da7c25936 100644
--- a/media-gfx/prusaslicer/Manifest
+++ b/media-gfx/prusaslicer/Manifest
@@ -1 +1,2 @@
DIST prusaslicer-2.3.1.tar.gz 39583385 BLAKE2B 0d0fa11d21ec3cc0decb2708a1b1866bbe0ec5719236433ef87807541ada8abc67091f219392a1ae21b4f35c3821dde94bfd6dac72ec6617c40b7fda05cfc082 SHA512 2722ee9d5331fe03423ce179cec68196320b48c65bd3c6795b93469268956fb309609462cc62bf3e2b4f30d2fe720d0a28a16c010993737c045d82956493a1e3
+DIST prusaslicer-2.3.3.tar.gz 40659538 BLAKE2B 1e1a1f7aeb34934bab03410e004a91e5ed76aaf930ff59e5b373b2e229018b6703d8da8ee7ab9085be25c5b3ce4ef39aeb38204336400867fac4a55f52c76bd4 SHA512 1f6b97e135202ad9de8f0bb212239ce2497de4205ea32f860b483473fb1f1783451d539a67cd97ef31f512a797b29c1067a1eff4134ea4a29b6218e5757657e2
diff --git a/media-gfx/prusaslicer/prusaslicer-2.3.3.ebuild b/media-gfx/prusaslicer/prusaslicer-2.3.3.ebuild
new file mode 100644
index 000000000000..dd741d4ed3c7
--- /dev/null
+++ b/media-gfx/prusaslicer/prusaslicer-2.3.3.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-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}/${PN}-2.3.0-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
+}