summaryrefslogtreecommitdiff
path: root/media-gfx/PrusaSlicer
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2020-03-27 13:16:38 +0000
committerdakkar <dakkar@thenautilus.net>2020-03-27 14:55:24 +0000
commit0d41052d7eb2d7e45d839b5e042bfc5d796f9750 (patch)
tree4a714f232299a1bd31a57b01688d02254daf2a82 /media-gfx/PrusaSlicer
parentand the manifest (diff)
downloadgentoo-overlay-0d41052d7eb2d7e45d839b5e042bfc5d796f9750.tar.gz
gentoo-overlay-0d41052d7eb2d7e45d839b5e042bfc5d796f9750.tar.bz2
gentoo-overlay-0d41052d7eb2d7e45d839b5e042bfc5d796f9750.zip
PrusaSlicer 2.2.0 and dependencies
there's apparently lots of new dependencies, or maybe newer versions are needed. I've added them to the PrusaSlicer ebuild, and added the ebuilds for them. Seems to work
Diffstat (limited to 'media-gfx/PrusaSlicer')
-rw-r--r--media-gfx/PrusaSlicer/Manifest2
-rw-r--r--media-gfx/PrusaSlicer/PrusaSlicer-2.2.0.ebuild73
2 files changed, 75 insertions, 0 deletions
diff --git a/media-gfx/PrusaSlicer/Manifest b/media-gfx/PrusaSlicer/Manifest
index 0c5f4f1..7f0d8b2 100644
--- a/media-gfx/PrusaSlicer/Manifest
+++ b/media-gfx/PrusaSlicer/Manifest
@@ -1,2 +1,4 @@
DIST version_2.1.1.tar.gz 27551136 BLAKE2B 05948f7476cb41db83a4c70b6129df5b82c84d0e7de96c5d0a7dc0bad9442e4845a30e080f9ccd88caa09ec1f6c9daceb566a7cf8004e5d4d9a3f7026af1bc96 SHA512 30c00e6fc0dbd97ec2307d83a777f53039ed0eb8c4c26c9f4e581567025225ca1937032fe23fd09216d55b2703fa3c0d20a7f1efd713ba6c9ae5e32a6a088d6a
+DIST version_2.2.0.tar.gz 30811929 BLAKE2B cde004add53ee025728d566cb7331cb7b1eac5412e9ad3bee037d13277c24dcdc6024c91f09bb9ef0653a12a3ee7c5cb5cec21e2a00825d185472ea7036e08f5 SHA512 5c8dc5b581e04208a1ae53771ef2607da189ee85aadf501ce1480008f5a6ddb10bb528ddc2608d3f04acd26c583ff895ad4148d6a1397f002292e20098971e1d
EBUILD PrusaSlicer-2.1.1.ebuild 1466 BLAKE2B 9308684396460af7b574bd11006abe13d5530cf4388311146a2d03207adac0b8a0f610a4882f64f041b73f79d9a2a21032abe037fe8609a62ba3debbf42f4157 SHA512 c87108d6fef72d36faa19a35b377b73c2e7ddbda59927dacace1c19d9c1f1bd45a39ead286004267ea4e19e8cba206d5170ba7e16fb5784c256824c274a19df3
+EBUILD PrusaSlicer-2.2.0.ebuild 1611 BLAKE2B b3018c2335eb3f82b7d070048767a96a93d8b51bc2380ca94c2f58dfe1815540a88f5b8665f99affb775c2afc2d41eb841720b25e9dad9eeec6d8beedc39af84 SHA512 d60b8068cf79c0e7b4b1a48764409ceb23d30607c5f180da0e4d2ad3de74d20d78f8934f003d373a94d727c9c13f5682ca0873387e087354c221d734ea0e9b95
diff --git a/media-gfx/PrusaSlicer/PrusaSlicer-2.2.0.ebuild b/media-gfx/PrusaSlicer/PrusaSlicer-2.2.0.ebuild
new file mode 100644
index 0000000..5499f8e
--- /dev/null
+++ b/media-gfx/PrusaSlicer/PrusaSlicer-2.2.0.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+# originally from https://bitbucket.org/szymonsz/gen2-overlay/src/master/media-gfx/PrusaSlicer/
+
+EAPI=6
+
+inherit eutils cmake-utils
+
+DESCRIPTION="Prusa Edition of a mesh slicer to generate G-code for fused-filament-fabrication (3D printers)"
+HOMEPAGE="https://github.com/prusa3d/PrusaSlicer"
+SRC_URI="https://github.com/prusa3d/PrusaSlicer/archive/version_${PV}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+gui test"
+
+# https://github.com/prusa3d/PrusaSlicer/issues/2150
+RDEPEND=">=dev-libs/boost-1.70[threads]
+ dev-libs/cereal
+ dev-cpp/tbb
+ sci-libs/nlopt[cxx]
+ net-misc/curl
+ dev-cpp/eigen
+ dev-libs/expat
+ media-libs/glew:0
+ >=media-libs/qhull-2019.1
+ >=dev-libs/c-blosc-1.17.0
+ >=media-libs/openexr-2.4.0
+ >=media-gfx/openvdb-6.2.1
+ >=sci-mathematics/cgal-5.0.0
+ gui? ( >=media-libs/freeglut-3
+ x11-libs/libXmu
+ x11-libs/wxGTK:3.0
+ )"
+
+DEPEND="${RDEPEND}
+ >=dev-cpp/gtest-1.7"
+
+S="${WORKDIR}/PrusaSlicer-version_${PV}"
+
+src_prepare() {
+ pushd "${WORKDIR}/PrusaSlicer-version_${PV}" || die
+ eapply_user
+ popd || die
+}
+
+src_configure() {
+ CMAKE_BUILD_TYPE=Release
+
+ local mycmakeargs=(
+ -DSLIC3R_WX_STABLE=1
+ -DSLIC3R_FHS=1
+ -DSLIC3R_BUILD_ID=PrusaSlicer-${PV}
+ )
+
+ sed -i "s|\+UNKNOWN||g" version.inc
+
+ cmake-utils_src_configure
+}
+
+src_test() {
+ cmake-utils_src_test
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ make_desktop_entry prusa-slicer \
+ "PrusaSlicer" \
+ "/usr/share/${PN}/icons/PrusaSlicer_128px.png" \
+ "Graphics;3DGraphics;Engineering;Development"
+}