summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/prusa-slicer/prusa-slicer-2.2.0-r1.ebuild')
-rw-r--r--media-gfx/prusa-slicer/prusa-slicer-2.2.0-r1.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/media-gfx/prusa-slicer/prusa-slicer-2.2.0-r1.ebuild b/media-gfx/prusa-slicer/prusa-slicer-2.2.0-r1.ebuild
new file mode 100644
index 0000000..bbd5ac4
--- /dev/null
+++ b/media-gfx/prusa-slicer/prusa-slicer-2.2.0-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop perl-module cmake-utils
+
+DESCRIPTION="G-code generator for 3D printers"
+HOMEPAGE="https://www.prusa3d.com/prusaslicer/"
+SRC_URI="https://github.com/prusa3d/PrusaSlicer/archive/version_${PV/_/-}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3 CC-BY-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+gui test"
+
+RDEPEND="!media-gfx/slic3r
+ >=dev-libs/boost-1.55[threads]
+ dev-cpp/eigen
+ dev-cpp/gtest
+ >=dev-cpp/tbb-2020.2
+ dev-libs/cereal
+ dev-libs/expat
+ dev-libs/openssl
+ >=media-gfx/openvdb-5.0[-abi4-compat]
+ media-libs/glew
+ net-misc/curl
+ sci-libs/nlopt
+ >=sci-mathematics/cgal-4.14
+ x11-libs/wxGTK:3.0-gtk3"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/PrusaSlicer-version_${PV/_/-}"
+
+src_configure() {
+ local mycmakeargs=(
+ -DSLIC3R_WX_STABLE=1
+ -DSLIC3R_GUI=$(usex gui 1 0)
+ -DSLIC3R_FHS=1
+ -DSLIC3R_STATIC=0
+ -DSLIC3R_GTK=3
+ -DSLIC3R_PERL_XS=0
+ -DSLIC3R_BUILD_SANDBOXES=0
+ -DSLIC3R_BUILD_TESTS=$(usex test 1 0)
+ -DSLIC3R_PCH=0
+ -DOPENVDB_ABI_VERSION_NUMBER=5
+ )
+ cmake-utils_src_configure
+}
+
+src_test() {
+ perl-module_src_test
+ pushd .. || die
+ prove -Ixs/blib/arch -Ixs/blib/lib/ t/ || die "Tests failed"
+ popd || die
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ dosym "/usr/share/PrusaSlicer/icons/PrusaSlicer_192px.png" \
+ "/usr/share/pixmaps/prusa-slicer.png"
+
+ make_desktop_entry "prusa-slicer %F" "PrusaSlicer" "prusa-slicer" \
+ "Graphics;3DGraphics;Engineering;Development" \
+ "MimeType=model/stl;application/xml;application/prs.wavefront-obj;application/vnd.ms-3mfdocument;"
+}