Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/svg2rlg/
Date: Sat, 10 Oct 2015 18:24:02
Message-Id: 1444501372.9b13dd223e15060ac697795d9ef6f0ef660e58ca.vapier@gentoo
1 commit: 9b13dd223e15060ac697795d9ef6f0ef660e58ca
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 10 18:14:25 2015 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 10 18:22:52 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b13dd22
7
8 media-gfx/svg2rlg: clean up ebuild a bit
9
10 media-gfx/svg2rlg/svg2rlg-0.3.ebuild | 16 +++++++---------
11 1 file changed, 7 insertions(+), 9 deletions(-)
12
13 diff --git a/media-gfx/svg2rlg/svg2rlg-0.3.ebuild b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
14 index e658f29..0439331 100644
15 --- a/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
16 +++ b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
17 @@ -8,8 +8,7 @@ PYTHON_COMPAT=( python2_7 )
18
19 inherit distutils-r1
20
21 -DESCRIPTION="svg2rlg is a python tool to convert SVG files to reportlab
22 -graphics"
23 +DESCRIPTION="python tool to convert SVG files to reportlab graphics"
24 HOMEPAGE="https://code.google.com/p/svg2rlg/"
25 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
26
27 @@ -22,19 +21,18 @@ DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
28 RDEPEND="${DEPEND}
29 dev-python/reportlab[${PYTHON_USEDEP}]"
30
31 -PATCHES=( "${FILESDIR}/${PN}-issue-3.patch" "${FILESDIR}/${PN}-issue-6.patch"
32 - "${FILESDIR}/${PN}-issue-7.patch")
33 +PATCHES=(
34 + "${FILESDIR}/${PN}-issue-3.patch"
35 + "${FILESDIR}/${PN}-issue-6.patch"
36 + "${FILESDIR}/${PN}-issue-7.patch"
37 +)
38
39 python_test() {
40 ${EPYTHON} test_svg2rlg.py
41 }
42
43 python_prepare_all() {
44 - tmp=`mktemp` || die "mktemp failed"
45 - for i in `find -name '*.py'`; do
46 - tr -d '\r' < $i >$tmp || die "tr failed"
47 - mv $tmp $i || die "mv failed"
48 - done
49 + find -name '*.py' -exec sed -i 's:\r::' {} + || die
50
51 distutils-r1_python_prepare_all
52 }