summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Labedan <plabedan@gmail.com>2015-12-07 09:24:03 +0100
committerPaul Labedan <plabedan@gmail.com>2015-12-07 09:24:03 +0100
commit325f112df34ede4d6ceb247150148de5414dd14b (patch)
tree400c37a144de3bac0e64f13c3722d3b0c9587fc8 /media-gfx
parentadd missing files (diff)
downloadplab-325f112df34ede4d6ceb247150148de5414dd14b.tar.gz
plab-325f112df34ede4d6ceb247150148de5414dd14b.tar.bz2
plab-325f112df34ede4d6ceb247150148de5414dd14b.zip
add Slic3r 1.2.9
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/Slic3r/Manifest2
-rw-r--r--media-gfx/Slic3r/Slic3r-1.2.9.ebuild122
2 files changed, 124 insertions, 0 deletions
diff --git a/media-gfx/Slic3r/Manifest b/media-gfx/Slic3r/Manifest
new file mode 100644
index 0000000..a3a0761
--- /dev/null
+++ b/media-gfx/Slic3r/Manifest
@@ -0,0 +1,2 @@
+DIST Slic3r-1.2.9.tar.gz 2165322 SHA256 f1c231ae56039ccd4ecf624e288c1362cab49b0f751a4663857b916b7fa51f2f SHA512 c0284f40de43c54e775baccdb2a67813a6ca4b69db78a788f2023b3f34127e780e6d0160144b9df1e17a2992b3255ef9a372b61a594f503b21efad7334387a51 WHIRLPOOL fc3bee0188ab7bd54ac19f3d874acb20dd8614594b79a8539001fd9a682f10c3436ef477d60458c49c7028c8b4bb7bf8585b4b53e73ac3a411d1a18720820eb0
+EBUILD Slic3r-1.2.9.ebuild 2557 SHA256 233e1af38450fedb6aed6f150d864bcfbbcd1373ed875345741f3132be089077 SHA512 deeb89f79402eaed7fb12439d7746c19d31cb0875a54da9920d417752e7f1db4418a58e44eee979608937f31cd0d7285d29a57760cc2de3cba5bd333f8d2b720 WHIRLPOOL b03b1720ecbe229543462029e47c09f1c25acc0baf22692bbb65288f34ba363f6f0b6a5b953c74fd2d39f9b8aec5b98e45fec2e0552bb5711195e4d29487bf3d
diff --git a/media-gfx/Slic3r/Slic3r-1.2.9.ebuild b/media-gfx/Slic3r/Slic3r-1.2.9.ebuild
new file mode 100644
index 0000000..66a1f82
--- /dev/null
+++ b/media-gfx/Slic3r/Slic3r-1.2.9.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+inherit eutils perl-module
+
+DESCRIPTION="A mesh slicer to generate gcode for 3D fused-filament-fabrication"
+HOMEPAGE="http://www.slic3r.org/"
+SRC_URI="https://github.com/alexrj/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+gui minimal test"
+
+RDEPEND="
+ >=dev-perl/Encode-Locale-1.50.0
+ dev-perl/IO-stringy
+ >=dev-perl/Math-PlanePath-53.0.0
+ >=dev-perl/Moo-1.3.1
+ virtual/perl-Carp
+ virtual/perl-File-Spec
+ virtual/perl-Getopt-Long
+ virtual/perl-parent
+ virtual/perl-Scalar-List-Utils
+ virtual/perl-Thread-Semaphore
+ >=virtual/perl-threads-1.960.0
+ virtual/perl-Time-HiRes
+ virtual/perl-XSLoader
+ gui? (
+ dev-perl/Class-Accessor
+ virtual/perl-Math-Complex
+ >=dev-perl/wxperl-0.991.800
+ dev-perl/Module-Pluggable
+ >=virtual/perl-Socket-2.16.0
+ )
+ !minimal? (
+ dev-perl/libwww-perl
+ dev-perl/XML-SAX
+ dev-perl/XML-SAX-Base
+ gui? (
+ dev-perl/Net-Bonjour
+ dev-perl/OpenGL
+ dev-perl/Wx-GLCanvas
+ )
+ )
+"
+
+DEPEND="${RDEPEND}
+ >=dev-perl/ExtUtils-CppGuess-0.70.0
+ >=dev-perl/ExtUtils-Typemaps-Default-1.50.0
+ >=dev-perl/ExtUtils-XSpp-0.170.0
+ >=dev-perl/Module-Build-WithXSpp-0.140.0
+ >=virtual/perl-ExtUtils-ParseXS-3.220.0
+ >=dev-perl/Module-Build-0.380.0
+ test? (
+ virtual/perl-Test-Harness
+ virtual/perl-Test-Simple
+ )
+ "
+
+# Optional but not yet packaged:
+# gui? (
+# dev-perl/Growl-GNTP
+# note, needs dev-perl/Net-DBus too
+# )
+
+SRC_TEST="do"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-adjust_var_path.patch
+
+ pushd xs &>/dev/null
+ perl-module_src_prepare
+ popd &>/dev/null
+}
+
+src_configure() {
+ # This should provide info on possible missing deps but it doesnt work properly
+ #SLIC3R_NO_AUTO=1 perl Build.PL --gui
+
+ pushd xs &>/dev/null
+ perl-module_src_configure
+ popd &>/dev/null
+}
+
+src_compile() {
+ pushd xs &>/dev/null
+ perl-module_src_compile
+ popd &>/dev/null
+}
+
+src_test() {
+ pushd xs &>/dev/null
+ perl-module_src_test
+ popd &>/dev/null
+
+ prove -Ixs/blib/arch -Ixs/blib/lib/ t/ || die "Tests failed on Slic3r"
+}
+
+src_install() {
+ pushd xs &>/dev/null
+ perl-module_src_install
+ popd &>/dev/null
+
+ insinto "${VENDOR_LIB}"
+ doins -r lib/Slic3r.pm lib/Slic3r
+
+ insinto "${VENDOR_LIB}"/Slic3r
+ doins -r var
+
+ exeinto "${VENDOR_LIB}"/Slic3r
+ doexe slic3r.pl
+
+ dosym "${VENDOR_LIB}"/Slic3r/slic3r.pl /usr/bin/slic3r.pl
+
+ make_desktop_entry slic3r.pl \
+ Slic3r \
+ "${VENDOR_LIB}/Slic3r/var/Slic3r_128px.png" \
+ "Graphics;3DGraphics;Engineering;Development"
+} \ No newline at end of file