From 2866f7509f76a5ec72236ff0a86b0a1dd404f667 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 15 Dec 2019 12:55:03 +0000 Subject: PrusaSlicer --- media-gfx/PrusaSlicer/Manifest | 2 + media-gfx/PrusaSlicer/PrusaSlicer-2.1.1.ebuild | 67 ++++++++++++++++++++++++++ 2 files changed, 69 insertions(+) create mode 100644 media-gfx/PrusaSlicer/Manifest create mode 100644 media-gfx/PrusaSlicer/PrusaSlicer-2.1.1.ebuild (limited to 'media-gfx') diff --git a/media-gfx/PrusaSlicer/Manifest b/media-gfx/PrusaSlicer/Manifest new file mode 100644 index 0000000..0c5f4f1 --- /dev/null +++ b/media-gfx/PrusaSlicer/Manifest @@ -0,0 +1,2 @@ +DIST version_2.1.1.tar.gz 27551136 BLAKE2B 05948f7476cb41db83a4c70b6129df5b82c84d0e7de96c5d0a7dc0bad9442e4845a30e080f9ccd88caa09ec1f6c9daceb566a7cf8004e5d4d9a3f7026af1bc96 SHA512 30c00e6fc0dbd97ec2307d83a777f53039ed0eb8c4c26c9f4e581567025225ca1937032fe23fd09216d55b2703fa3c0d20a7f1efd713ba6c9ae5e32a6a088d6a +EBUILD PrusaSlicer-2.1.1.ebuild 1466 BLAKE2B 9308684396460af7b574bd11006abe13d5530cf4388311146a2d03207adac0b8a0f610a4882f64f041b73f79d9a2a21032abe037fe8609a62ba3debbf42f4157 SHA512 c87108d6fef72d36faa19a35b377b73c2e7ddbda59927dacace1c19d9c1f1bd45a39ead286004267ea4e19e8cba206d5170ba7e16fb5784c256824c274a19df3 diff --git a/media-gfx/PrusaSlicer/PrusaSlicer-2.1.1.ebuild b/media-gfx/PrusaSlicer/PrusaSlicer-2.1.1.ebuild new file mode 100644 index 0000000..a29934e --- /dev/null +++ b/media-gfx/PrusaSlicer/PrusaSlicer-2.1.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 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.55[threads] + dev-libs/cereal + dev-cpp/tbb + sci-libs/nlopt[cxx] + net-misc/curl + dev-cpp/eigen + dev-libs/expat + media-libs/glew: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" +} -- cgit v1.2.3