summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/prusa-slicer/prusa-slicer-2.1.0.ebuild')
-rw-r--r--media-gfx/prusa-slicer/prusa-slicer-2.1.0.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/media-gfx/prusa-slicer/prusa-slicer-2.1.0.ebuild b/media-gfx/prusa-slicer/prusa-slicer-2.1.0.ebuild
new file mode 100644
index 0000000..777e2d3
--- /dev/null
+++ b/media-gfx/prusa-slicer/prusa-slicer-2.1.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2019 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit 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
+ dev-libs/cereal
+ dev-libs/expat
+ dev-libs/openssl
+ media-libs/glew
+ net-misc/curl
+ sci-libs/nlopt
+ 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)
+ )
+ 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;"
+}