summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2015-10-10 14:14:25 -0400
committerMike Frysinger <vapier@gentoo.org>2015-10-10 14:22:52 -0400
commit9b13dd223e15060ac697795d9ef6f0ef660e58ca (patch)
tree8943826ac0d1ee5a655e033ed50218b167e32b3f /media-gfx
parentapp-emulation/ganeti-instance-image: drop old coreutils/mktemp dep (diff)
downloadgentoo-9b13dd223e15060ac697795d9ef6f0ef660e58ca.tar.gz
gentoo-9b13dd223e15060ac697795d9ef6f0ef660e58ca.tar.bz2
gentoo-9b13dd223e15060ac697795d9ef6f0ef660e58ca.zip
media-gfx/svg2rlg: clean up ebuild a bit
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/svg2rlg/svg2rlg-0.3.ebuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/media-gfx/svg2rlg/svg2rlg-0.3.ebuild b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
index e658f29e075..043933169ff 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
}