summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Matejka <yac@gentoo.org>2013-05-08 04:56:14 +0000
committerJan Matejka <yac@gentoo.org>2013-05-08 04:56:14 +0000
commitd8e9d74a5230e1b868fd12660b225fa0c55e470e (patch)
tree50e19cfd7dab941934fca2c1772420ec907b4dc5 /media-gfx/svg2rlg
parentversion bump (diff)
downloadgentoo-2-d8e9d74a5230e1b868fd12660b225fa0c55e470e.tar.gz
gentoo-2-d8e9d74a5230e1b868fd12660b225fa0c55e470e.tar.bz2
gentoo-2-d8e9d74a5230e1b868fd12660b225fa0c55e470e.zip
new ebuild for media-gfx/svg2rlg fixes bug #468768
(Portage version: 2.1.11.55/cvs/Linux x86_64, signed Manifest commit with key F97A36A1)
Diffstat (limited to 'media-gfx/svg2rlg')
-rw-r--r--media-gfx/svg2rlg/ChangeLog10
-rw-r--r--media-gfx/svg2rlg/Manifest6
-rw-r--r--media-gfx/svg2rlg/files/svg2rlg-issue-3.patch19
-rw-r--r--media-gfx/svg2rlg/files/svg2rlg-issue-6.patch47
-rw-r--r--media-gfx/svg2rlg/files/svg2rlg-issue-7.patch16
-rw-r--r--media-gfx/svg2rlg/metadata.xml10
-rw-r--r--media-gfx/svg2rlg/svg2rlg-0.3.ebuild40
7 files changed, 148 insertions, 0 deletions
diff --git a/media-gfx/svg2rlg/ChangeLog b/media-gfx/svg2rlg/ChangeLog
new file mode 100644
index 000000000000..62820b1aaf32
--- /dev/null
+++ b/media-gfx/svg2rlg/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-gfx/svg2rlg
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/svg2rlg/ChangeLog,v 1.1 2013/05/08 04:56:14 yac Exp $
+
+*svg2rlg-0.3 (08 May 2013)
+
+ 08 May 2013; Jan Matejka <yac@gentoo.org> +files/svg2rlg-issue-3.patch,
+ +files/svg2rlg-issue-6.patch, +files/svg2rlg-issue-7.patch, +metadata.xml,
+ +svg2rlg-0.3.ebuild:
+ new ebuild for media-gfx/svg2rlg fixes bug #468768
diff --git a/media-gfx/svg2rlg/Manifest b/media-gfx/svg2rlg/Manifest
new file mode 100644
index 000000000000..a63704c09f99
--- /dev/null
+++ b/media-gfx/svg2rlg/Manifest
@@ -0,0 +1,6 @@
+AUX svg2rlg-issue-3.patch 507 SHA256 5bdbc6ce22256fa4e9f632168205bd70f2afab0ef44af994df9ad7da72b4067a SHA512 aa7c02fe9afaebb8e56397bd2f609d83e772fa53f60088b12212eaa3934a10a1ea452f20f407a9134e87c0133dddd17c7bea8c6f03d7d3eef2bfaeb6430d2f8c WHIRLPOOL 3b4d8586c1caf2a11dffb0d20f4422dad2a2a4013873a16bb4d754080305613a1f2861684e0db43a012d9baeb5c91b1ca023dcc9b732f5bd35778fb8726c2082
+AUX svg2rlg-issue-6.patch 1221 SHA256 5f147fd0a5d780f46e18f34e99fffadf5a1d1e2104333678907ace38801400a5 SHA512 500b929de726cb728ea10f295c7e15845046d0d3d70067c2ef54cca1466f456cb682797ddf99e0ae62ec68ba125183900763e82a2889f8941b507490a197ed88 WHIRLPOOL 7cbe58269d9847d4c46729e34a7bdf14e8cdd4861dc9d3507f88a6147459ec604ca5ea1b580f51578104c2d4e76f2e18cd8be07a523d682bf81bad3ea3d16c54
+AUX svg2rlg-issue-7.patch 473 SHA256 75eb6c5e39ff551ba24355543ede1446f0d83d12b02df091c03bb8eab609a5a9 SHA512 42be68efd3aedb00d1461dfa99de7aebf9477a531a491676cc189a7299e206650df9a9bd51d27c3a2cf6e761f8892c5b61577eed1b232f5109374df32329d3e4 WHIRLPOOL a0d1310962e0a8b9de79ad31e42750a5f6e29e5e6c3cd39f78242188fec6d0217a7ce1579d62768264f0c79383c800935536ef352cacdebbeaea193b108a27af
+DIST svg2rlg-0.3.tar.gz 490908 SHA256 05db4480b90e912e08727d4cb24385fe33e8436def079b8f149b61a350638bee SHA512 44efebe7d978a46ab26b4bc332ad08db9236a86b160d73fc1fdc2b54c44bb2604147ae458eea1fe81c579c7f94e39869459567a6b6b3a551d6db6132816c4723 WHIRLPOOL 257bd5c50f86578b75b510c9ebc78d32155d73d321e40c83c64ddbe644d37c7a49d28660f0d7a509caaa1760f7715e405cc197eb4ef4b43f5d05fc9445625799
+EBUILD svg2rlg-0.3.ebuild 909 SHA256 8e43a4395df370380d1f7d171cbc5fdf6fbd293b7f8a21e3e9d85016906e4541 SHA512 2e2f77242ad18abfa4983e7d8c36f60c8dd19c2ef0f60bbf408158d2ad40851a1694e8e2be9a6c58f13487c48ae0b278997dd57a913e30b120f3c98e9be83991 WHIRLPOOL d50abc77a62141fea7ab6cf2edd333fae5054166fb8c2ca0adf50fcd9f4b540e00181ad4491ff84fc67fc0efdc8c1e869eeb0a052d922dd1aadcf477028c5eb5
+MISC metadata.xml 289 SHA256 0f45d17c1df3f53e560bac1391311facbd6796cf562715c392567b3db8f101e9 SHA512 618776929d7b85b20918de4239d772dd22de1b249cb4dc0f6a28450eece7d94bb594884ea1f1a577334e728465ef5496a2d29dbc20cc2bc47e9000d5f87f03ed WHIRLPOOL a12af3086243b6fc5eda441e02a12a555a1d70b8b7fbfb66c3bf37e4630323ffc66d0760204992d87904cf66cf60f9cb18f868dd81825c5df8bfd9e76acb2875
diff --git a/media-gfx/svg2rlg/files/svg2rlg-issue-3.patch b/media-gfx/svg2rlg/files/svg2rlg-issue-3.patch
new file mode 100644
index 000000000000..df70bf345aa8
--- /dev/null
+++ b/media-gfx/svg2rlg/files/svg2rlg-issue-3.patch
@@ -0,0 +1,19 @@
+commit e5aa6784a10717641bc5b6d9d77a5029f815654a
+Author: yac <yac@blesmrt.net>
+Date: Wed May 8 04:59:17 2013 +0200
+
+ fix #3
+
+ remove windows only function which is useless anyway
+
+diff --git a/svg2rlg.py b/svg2rlg.py
+index 1c5f80c..2b35c62 100644
+--- a/svg2rlg.py
++++ b/svg2rlg.py
+@@ -1574,5 +1574,3 @@ if __name__ == "__main__":
+
+ drawing = svg2rlg(source)
+ drawing.save(formats=['pdf'],outDir='.',fnRoot=name)
+-
+- os.startfile(name + '.pdf')
+\ No newline at end of file
diff --git a/media-gfx/svg2rlg/files/svg2rlg-issue-6.patch b/media-gfx/svg2rlg/files/svg2rlg-issue-6.patch
new file mode 100644
index 000000000000..6ca750e79193
--- /dev/null
+++ b/media-gfx/svg2rlg/files/svg2rlg-issue-6.patch
@@ -0,0 +1,47 @@
+commit e42661b9cd6d7b71ce5e7674ac8eff25c74db07a
+Author: yac <yac@blesmrt.net>
+Date: Wed May 8 05:00:32 2013 +0200
+
+ use entry_point fixes #6
+
+diff --git a/setup.py b/setup.py
+index 9e00fba..512fa79 100644
+--- a/setup.py
++++ b/setup.py
+@@ -1,6 +1,6 @@
+ #!/usr/bin/python
+ # -*- coding: utf-8 -*-
+-from distutils.core import setup
++from setuptools import setup
+
+ setup(
+ name = 'svg2rlg',
+@@ -12,6 +12,8 @@ setup(
+ url = 'http://code.google.com/p/svg2rlg/',
+ download_url = 'http://pypi.python.org/pypi/svg2rlg/',
+ requires = ['reportlab'],
++ entry_points = {
++ 'console_scripts': ['svg2rlg = svg2rlg:main']},
+
+ classifiers=[
+ 'Environment :: Console',
+@@ -30,4 +32,4 @@ The authors motivation was to have a more robust handling of
+ SVG files in the **rst2pdf** tool. Specific to be able to handle
+ the quirks needed to include SVG export from matplotlib.
+ '''
+-)
+\ No newline at end of file
++)
+diff --git a/svg2rlg.py b/svg2rlg.py
+index 2b35c62..cc812b2 100644
+--- a/svg2rlg.py
++++ b/svg2rlg.py
+@@ -1562,7 +1562,7 @@ def svg2rlg(filename):
+
+ return renderer.render(xml)
+
+-if __name__ == "__main__":
++def main():
+ import sys
+ import os
+
diff --git a/media-gfx/svg2rlg/files/svg2rlg-issue-7.patch b/media-gfx/svg2rlg/files/svg2rlg-issue-7.patch
new file mode 100644
index 000000000000..8145f416f804
--- /dev/null
+++ b/media-gfx/svg2rlg/files/svg2rlg-issue-7.patch
@@ -0,0 +1,16 @@
+commit c30b4f90cac69934761e44bf59a8ba8a3827d647
+Author: yac <yac@blesmrt.net>
+Date: Wed May 8 05:44:00 2013 +0200
+
+ fix #7
+
+diff --git a/svg2rlg.py b/svg2rlg.py
+index cc812b2..80d72de 100644
+--- a/svg2rlg.py
++++ b/svg2rlg.py
+@@ -1573,4 +1573,4 @@ def main():
+ name, ext = os.path.splitext(filename)
+
+ drawing = svg2rlg(source)
+- drawing.save(formats=['pdf'],outDir='.',fnRoot=name)
++ drawing.save(formats=['pdf'],outDir=os.getcwd(),fnRoot=name)
diff --git a/media-gfx/svg2rlg/metadata.xml b/media-gfx/svg2rlg/metadata.xml
new file mode 100644
index 000000000000..e8d32a5c2ed1
--- /dev/null
+++ b/media-gfx/svg2rlg/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>python</herd>
+ <longdescription lang="en">
+ The tool can be used as a console application to convert SVG to PDF
+ files.
+ </longdescription>
+</pkgmetadata>
+
diff --git a/media-gfx/svg2rlg/svg2rlg-0.3.ebuild b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
new file mode 100644
index 000000000000..a12385102797
--- /dev/null
+++ b/media-gfx/svg2rlg/svg2rlg-0.3.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/svg2rlg/svg2rlg-0.3.ebuild,v 1.1 2013/05/08 04:56:14 yac Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python{2_5,2_6,2_7} )
+
+inherit distutils-r1
+
+DESCRIPTION="svg2rlg is a python tool to convert SVG files to reportlab
+graphics"
+HOMEPAGE="http://code.google.com/p/svg2rlg/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+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")
+
+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
+
+ distutils-r1_python_prepare_all
+}