mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
media-gfx/svg2rlg: clean up ebuild a bit
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user