Added several ebuilds

This commit is contained in:
layman
2017-04-04 23:31:00 +02:00
parent 7fb53ee71e
commit bd8e1053e8
33 changed files with 1160 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
AUX slic3r-9999-adjust_var_path.patch 328 SHA256 a054f273f369f4f833d6c139a20bb0f8e005fb85e871cc5f17919d7428e7c3d7 SHA512 7cda1634ee0d80a3b63e6ecce726850d469121498b4f83717ca82360909c6dd8ddaefebffffa1ef0f8beae4473a2040432bd382aa78d43b0e8f108eaaddbdbb6 WHIRLPOOL 61bb16086f7e7660a8109d9af8f42cb31a6d4139eb74ef823ae2b58e764db94401aff05c4671bf747a973d29a588dcbbc8f36821f55b1bcf25041741cd6d3786
EBUILD slic3r-9999.ebuild 2560 SHA256 9becb3da6df6c8b13ef89ae3b43bb870c6c1b23f8079ee7668f76b3e812beb9b SHA512 cde193c7a3fc73b9066df1a8042e76b141bdecb8b68d9c2b2619f5ecddba640a1e7ef8207e60148ccbf8ab3d3b9578024c61a0a13de5a68025f3971fcab81bba WHIRLPOOL 078bb7a0e9e1520dc11af65f1ff322a7ea28dc4785590d9175ad8eb498477f11a1f0c9e2f2508a1c7a04e6eedcbeafd93282094b4af4bf040a0dd3c9c8a3f119
MISC metadata.xml 1166 SHA256 f9ead7e79da319295791a454378ef319bc215d647af78ce0c1ee50d0b9272cfc SHA512 8fa8adf81c468d72253218f1e5c4c42e8546a89166c3a3158db17b7504c13920abe7bc4ce3efadb4e6fa035d23d3a509c844699ac80b417dd16b570a6f6f213e WHIRLPOOL ff18b28867a43a0094fa59739f2ea72fb5297cda6ba4f40e43fd006e13c3c4f4e7a6baadd6dcb816103d39a59b16f90bf75b5ededd23f220cd3c6260e393448f
@@ -0,0 +1,11 @@
--- a/lib/Slic3r.pm 2016-12-18 15:24:37.520000000 +0100
+++ b/lib/Slic3r.pm 2016-12-18 15:25:23.430000000 +0100
@@ -42,7 +42,7 @@
use FindBin;
# Path to the images.
-our $var = sub { decode_path($FindBin::Bin) . "/var/" . $_[0] };
+our $var = sub { decode_path($FindBin::RealBin) . "/var/" . $_[0] };
use Moo 1.003001;
+29
View File
@@ -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>
+112
View File
@@ -0,0 +1,112 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit eutils git-r3 perl-module
DESCRIPTION="A mesh slicer to generate G-code for fused-filament-fabrication (3D printers)"
HOMEPAGE="http://slic3r.org"
SRC_URI=""
EGIT_REPO_URI="https://github.com/alexrj/Slic3r.git"
EGIT_BRANCH="stable"
LICENSE="AGPL-3 CC-BY-3.0"
SLOT="0"
KEYWORDS=""
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/Devel-Size
>=dev-perl/Encode-Locale-1.50.0
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-Encode
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-Unicode-Normalize
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/Devel-CheckLib
>=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 )"
S="${WORKDIR}/slic3r-${PV}/xs"
src_unpack() {
git-r3_src_unpack
}
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
pushd .. || die
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
}