commit:     9b13dd223e15060ac697795d9ef6f0ef660e58ca
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 10 18:14:25 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sat Oct 10 18:22:52 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b13dd22

media-gfx/svg2rlg: clean up ebuild a bit

 media-gfx/svg2rlg/svg2rlg-0.3.ebuild | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/media-gfx/svg2rlg/svg2rlg-0.3.ebuild 
b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
index e658f29..0439331 100644
--- a/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
+++ b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
@@ -8,8 +8,7 @@ PYTHON_COMPAT=( python2_7 )
 
 inherit distutils-r1
 
-DESCRIPTION="svg2rlg is a python tool to convert SVG files to reportlab
-graphics"
+DESCRIPTION="python tool to convert SVG files to reportlab graphics"
 HOMEPAGE="https://code.google.com/p/svg2rlg/";
 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
 
@@ -22,19 +21,18 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
 RDEPEND="${DEPEND}
        dev-python/reportlab[${PYTHON_USEDEP}]"
 
-PATCHES=( "${FILESDIR}/${PN}-issue-3.patch" "${FILESDIR}/${PN}-issue-6.patch"
-       "${FILESDIR}/${PN}-issue-7.patch")
+PATCHES=(
+       "${FILESDIR}/${PN}-issue-3.patch"
+       "${FILESDIR}/${PN}-issue-6.patch"
+       "${FILESDIR}/${PN}-issue-7.patch"
+)
 
 python_test() {
        ${EPYTHON} test_svg2rlg.py
 }
 
 python_prepare_all() {
-       tmp=`mktemp` || die "mktemp failed"
-       for i in `find -name '*.py'`; do
-               tr -d '\r' < $i >$tmp  || die "tr failed"
-               mv $tmp $i || die "mv failed"
-       done
+       find -name '*.py' -exec sed -i 's:\r::' {} + || die
 
        distutils-r1_python_prepare_all
 }

Reply via email to