summaryrefslogtreecommitdiff
path: root/media-gfx/PrusaSlicer/PrusaSlicer-2.1.1.ebuild
blob: a29934e98f55642787dd23601aefe3d92b59faf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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"
}