summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiroslav Šulc <fordfrog@gentoo.org>2019-12-14 20:15:12 +0100
committerMiroslav Šulc <fordfrog@gentoo.org>2019-12-14 20:15:32 +0100
commitb35e0d239e5838a04bed0517894ba82c051475da (patch)
treec409df3283fb5086d04499d5a395dee9deb14187 /media-libs/lv2
parentdev-util/re2c: bump up to 1.3 (diff)
downloadgentoo-b35e0d239e5838a04bed0517894ba82c051475da.tar.gz
gentoo-b35e0d239e5838a04bed0517894ba82c051475da.tar.bz2
gentoo-b35e0d239e5838a04bed0517894ba82c051475da.zip
media-libs/lv2-1.16.0: partially fixed doc building
added patch to support python3 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'media-libs/lv2')
-rw-r--r--media-libs/lv2/files/lv2-1.16.0-python3.patch22
-rw-r--r--media-libs/lv2/lv2-1.16.0.ebuild4
2 files changed, 26 insertions, 0 deletions
diff --git a/media-libs/lv2/files/lv2-1.16.0-python3.patch b/media-libs/lv2/files/lv2-1.16.0-python3.patch
new file mode 100644
index 000000000000..330fc4cfcac7
--- /dev/null
+++ b/media-libs/lv2/files/lv2-1.16.0-python3.patch
@@ -0,0 +1,22 @@
+diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py
+index ddd0ba5..224ace8 100755
+--- a/lv2specgen/lv2specgen.py
++++ b/lv2specgen/lv2specgen.py
+@@ -329,7 +329,7 @@ def getComment(m, urinode, classlist, proplist, instalist):
+ if have_lxml:
+ try:
+ # Parse and validate documentation as XHTML Basic 1.1
+- doc = """<?xml version="1.0" encoding="UTF-8"?>
++ doc = """<?xml version="1.0"?>
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN"
+ "DTD/xhtml-basic11.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+@@ -340,7 +340,7 @@ def getComment(m, urinode, classlist, proplist, instalist):
+ %s
+ </body>
+ </html>
+-""" % str(markup.decode())
++""" % str(markup)
+
+ oldcwd = os.getcwd()
+ os.chdir(specgendir)
diff --git a/media-libs/lv2/lv2-1.16.0.ebuild b/media-libs/lv2/lv2-1.16.0.ebuild
index 2dc4fcf3dd60..9284873bc1ff 100644
--- a/media-libs/lv2/lv2-1.16.0.ebuild
+++ b/media-libs/lv2/lv2-1.16.0.ebuild
@@ -35,6 +35,10 @@ RDEPEND="
"
DOCS=( "README.md" "NEWS" )
+PATCHES=(
+ "${FILESDIR}/${P}-python3.patch"
+)
+
src_prepare() {
default
multilib_copy_sources