media-gfx/svg2rlg: clean up ebuild a bit
authorMike Frysinger <vapier@gentoo.org>
Sat, 10 Oct 2015 18:14:25 +0000 (14:14 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 10 Oct 2015 18:22:52 +0000 (14:22 -0400)
media-gfx/svg2rlg/svg2rlg-0.3.ebuild

index e658f29e075ec93f3ce13d28307347fd88961c93..043933169ffa5003332a9e2f9a9d4aa088d2f690 100644 (file)
@@ -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
 }