media-gfx/slic3r: fix patching bug #617640
authorAmy Liffey <amynka@gentoo.org>
Sat, 6 May 2017 14:42:37 +0000 (16:42 +0200)
committerAmy Liffey <amynka@gentoo.org>
Sat, 6 May 2017 15:11:03 +0000 (17:11 +0200)
Submitted-by: Philipp Psurek <philipp.psurek+gentoo@gmail.com>
Package-Manager: portage-2.3.3

media-gfx/slic3r/files/slic3r-9999-adjust_var_path.patch [deleted file]
media-gfx/slic3r/slic3r-9999.ebuild

diff --git a/media-gfx/slic3r/files/slic3r-9999-adjust_var_path.patch b/media-gfx/slic3r/files/slic3r-9999-adjust_var_path.patch
deleted file mode 100644 (file)
index ff22b24..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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;
- 
index 3d54436739eef52979466170840e0485bbf71a5e..4c89cffa5255404e34179177f593f769a13886b8 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -71,7 +71,7 @@ src_unpack() {
 
 src_prepare() {
        pushd "${WORKDIR}/slic3r-${PV}" || die
-       eapply "${FILESDIR}/${P}-adjust_var_path.patch"
+       sed -i lib/Slic3r.pm -e "s@FindBin::Bin@FindBin::RealBin@g" || die
        eapply_user
        popd || die
 }