media-gfx/slic3r: Initial addition to tree at 1.1.7 (package masked)
authorMatthew Brewer <tomboy64@sina.cn>
Fri, 1 Apr 2016 18:39:36 +0000 (20:39 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 3 Apr 2016 21:23:43 +0000 (23:23 +0200)
Package-Manager: portage-2.2.28
RepoMan-Options: --ignore-arches

media-gfx/slic3r/Manifest [new file with mode: 0644]
media-gfx/slic3r/files/slic3r-1.1.7-adjust_var_path.patch [new file with mode: 0644]
media-gfx/slic3r/metadata.xml [new file with mode: 0644]
media-gfx/slic3r/slic3r-1.1.7.ebuild [new file with mode: 0644]
profiles/package.mask

diff --git a/media-gfx/slic3r/Manifest b/media-gfx/slic3r/Manifest
new file mode 100644 (file)
index 0000000..4253099
--- /dev/null
@@ -0,0 +1 @@
+DIST slic3r-1.1.7.tar.gz 2079200 SHA256 8e1f68a71d78686cf6957ee7665757a4e7d14646bdee262cef76cba47b3f0d50 SHA512 0c3a12890f57f422084b20152ede3467a8624db4ba8be774258df0af963c1f6f41fda7d96967f6355bd95727539e6aad51c30cf45284a7ee3fff294839acc650 WHIRLPOOL 18c95a59acff51891251852d59d4bf33b9c1ad8721f581e3c9f55b56bb62e087d030ecb701d16b07cca4567f142ea3b0693c0ab436f1c25b28d02b4a1ce351cd
diff --git a/media-gfx/slic3r/files/slic3r-1.1.7-adjust_var_path.patch b/media-gfx/slic3r/files/slic3r-1.1.7-adjust_var_path.patch
new file mode 100644 (file)
index 0000000..ee4d75d
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/lib/Slic3r.pm    2016-03-31 13:27:59.431548980 +0200
++++ b/lib/Slic3r.pm    2016-03-31 13:28:21.658675137 +0200
+@@ -29,7 +29,7 @@
+     if $^V >= v5.16;
+ use FindBin;
+-our $var = "$FindBin::Bin/var";
++our $var = "$FindBin::RealBin/var";
+ use Encode;
+ use Encode::Locale;
diff --git a/media-gfx/slic3r/metadata.xml b/media-gfx/slic3r/metadata.xml
new file mode 100644 (file)
index 0000000..c0f39d3
--- /dev/null
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+    <maintainer type="person">
+        <email>tomboy64@sina.cn</email>
+        <name>Proxy-Maintainer; please assign him to bugs.</name>
+    </maintainer>
+    <maintainer type="project">
+        <email>proxy-maint@gentoo.org</email>
+        <name>Gentoo Proxy Maintainers Project</name>
+    </maintainer>
+    <maintainer type="project">
+        <email>3dprint@gentoo.org</email>
+        <name>Gentoo 3D Printer Project</name>
+    </maintainer>
+    <maintainer type="project">
+        <email>perl@gentoo.org</email>
+        <name>Gentoo Perl Project</name>
+    </maintainer>
+    <use>
+        <flag name="gui">Enable GUI</flag>
+    </use>
+    <longdescription lang="en">
+        Slic3r is the tool you need to convert a 3D model into printing instructions for your 3D printer. It cuts the model into horizontal slices (layers), generates toolpaths to fill them and calculates the amount of material to be extruded.
+    </longdescription>
+    <upstream>
+        <remote-id type="github">alexrj/Slic3r</remote-id>
+    </upstream>
+</pkgmetadata>
diff --git a/media-gfx/slic3r/slic3r-1.1.7.ebuild b/media-gfx/slic3r/slic3r-1.1.7.ebuild
new file mode 100644 (file)
index 0000000..81c710b
--- /dev/null
@@ -0,0 +1,115 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils perl-module
+
+DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)"
+HOMEPAGE="http://slic3r.org"
+SRC_URI="https://github.com/alexrj/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3 CC-BY-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+gui test"
+
+# check Build.PL for dependencies
+RDEPEND="!=dev-lang/perl-5.16*
+       >=dev-libs/boost-1.55[threads]
+       dev-perl/Class-XSAccessor
+       dev-perl/Encode-Locale
+       dev-perl/IO-stringy
+       >=dev-perl/Math-PlanePath-53.0.0
+       >=dev-perl/Moo-1.3.1
+       dev-perl/XML-SAX-ExpatXS
+       virtual/perl-Carp
+       virtual/perl-File-Spec
+       virtual/perl-Getopt-Long
+       virtual/perl-parent
+       virtual/perl-Scalar-List-Utils
+       virtual/perl-Test-Simple
+       virtual/perl-Thread-Semaphore
+       >=virtual/perl-threads-1.960.0
+       virtual/perl-Time-HiRes
+       virtual/perl-XSLoader
+       gui? ( dev-perl/Class-Accessor
+               dev-perl/Growl-GNTP
+               dev-perl/libwww-perl
+               dev-perl/Module-Pluggable
+               dev-perl/Net-Bonjour
+               dev-perl/Net-DBus
+               dev-perl/OpenGL
+               >=dev-perl/Wx-0.991.800
+               dev-perl/Wx-GLCanvas
+               >=media-libs/freeglut-3
+               virtual/perl-Math-Complex
+               >=virtual/perl-Socket-2.16.0
+               x11-libs/libXmu
+       )"
+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-0.380.0
+       >=dev-perl/Module-Build-WithXSpp-0.140.0
+       >=virtual/perl-ExtUtils-MakeMaker-6.800.0
+       >=virtual/perl-ExtUtils-ParseXS-3.220.0
+       test? ( virtual/perl-Test-Harness
+               virtual/perl-Test-Simple )"
+
+DIST_TEST="do"
+S="${WORKDIR}/Slic3r-${PV}/xs"
+
+src_prepare() {
+       pushd "${WORKDIR}/Slic3r-${PV}" || die
+       eapply "${FILESDIR}/${P}-adjust_var_path.patch"
+       eapply_user
+       popd || die
+}
+
+src_configure() {
+       SLIC3R_NO_AUTO=1 perl-module_src_configure
+}
+
+src_test() {
+       perl-module_src_test
+       # 1.1.7 Is kinda broken after Perl 5.16
+       pushd .. || die
+       ewarn "Some Tests Skipped due to consuming 100% of RAM"
+       local bad_files=(
+               t/combineinfill.t t/cooling.t t/custom_gcode.t t/fill.t
+               t/flow.t t/gaps.t t/gcode.t t/layers.t t/multi.t
+               t/perimeters.t t/print.t t/retraction.t t/shells.t
+               t/skirt_brim.t t/support.t t/threads.t t/vibrationlimit.t
+       );
+       for filename in "${bad_files[@]}"; do
+               einfo "Removing bad test ${filename}";
+               rm -f "./${filename}" || die "Cannot remove ./${filename}";
+       done
+       prove -Ixs/blib/arch -Ixs/blib/lib/ t/ || die "Tests failed"
+       popd || die
+}
+
+src_install() {
+       perl-module_src_install
+
+       pushd .. || die
+       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"
+       popd || die
+}
index 7835e416b23c28fec3e1959dd5ea79c7b5d7a92c..88e197005468c273dd149432b19e87897c6572a7 100644 (file)
 
 #--- END OF EXAMPLES ---
 
+# Kent Fredric <kentfredric@gmail.com> (03 Apr 2016)
+# Can exhaust all available memory depending on task
+# but is made available for experts who heed this warning
+# as newer versions produce different output
+<=media-gfx/slic3r-1.1.9999
+
 # William Hubbs <williamh@gentoo.org> (02 Apr 2016)
 # Stable dev-lang/go no longer needs this; end users should have never
 # installed it on their own.