1 |
commit: b35e0d239e5838a04bed0517894ba82c051475da |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 14 19:15:12 2019 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Dec 14 19:15:32 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b35e0d23 |
7 |
|
8 |
media-libs/lv2-1.16.0: partially fixed doc building |
9 |
|
10 |
added patch to support python3 |
11 |
|
12 |
Package-Manager: Portage-2.3.81, Repoman-2.3.20 |
13 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
14 |
|
15 |
media-libs/lv2/files/lv2-1.16.0-python3.patch | 22 ++++++++++++++++++++++ |
16 |
media-libs/lv2/lv2-1.16.0.ebuild | 4 ++++ |
17 |
2 files changed, 26 insertions(+) |
18 |
|
19 |
diff --git a/media-libs/lv2/files/lv2-1.16.0-python3.patch b/media-libs/lv2/files/lv2-1.16.0-python3.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..330fc4cfcac |
22 |
--- /dev/null |
23 |
+++ b/media-libs/lv2/files/lv2-1.16.0-python3.patch |
24 |
@@ -0,0 +1,22 @@ |
25 |
+diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py |
26 |
+index ddd0ba5..224ace8 100755 |
27 |
+--- a/lv2specgen/lv2specgen.py |
28 |
++++ b/lv2specgen/lv2specgen.py |
29 |
+@@ -329,7 +329,7 @@ def getComment(m, urinode, classlist, proplist, instalist): |
30 |
+ if have_lxml: |
31 |
+ try: |
32 |
+ # Parse and validate documentation as XHTML Basic 1.1 |
33 |
+- doc = """<?xml version="1.0" encoding="UTF-8"?> |
34 |
++ doc = """<?xml version="1.0"?> |
35 |
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" |
36 |
+ "DTD/xhtml-basic11.dtd"> |
37 |
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
38 |
+@@ -340,7 +340,7 @@ def getComment(m, urinode, classlist, proplist, instalist): |
39 |
+ %s |
40 |
+ </body> |
41 |
+ </html> |
42 |
+-""" % str(markup.decode()) |
43 |
++""" % str(markup) |
44 |
+ |
45 |
+ oldcwd = os.getcwd() |
46 |
+ os.chdir(specgendir) |
47 |
|
48 |
diff --git a/media-libs/lv2/lv2-1.16.0.ebuild b/media-libs/lv2/lv2-1.16.0.ebuild |
49 |
index 2dc4fcf3dd6..9284873bc1f 100644 |
50 |
--- a/media-libs/lv2/lv2-1.16.0.ebuild |
51 |
+++ b/media-libs/lv2/lv2-1.16.0.ebuild |
52 |
@@ -35,6 +35,10 @@ RDEPEND=" |
53 |
" |
54 |
DOCS=( "README.md" "NEWS" ) |
55 |
|
56 |
+PATCHES=( |
57 |
+ "${FILESDIR}/${P}-python3.patch" |
58 |
+) |
59 |
+ |
60 |
src_prepare() { |
61 |
default |
62 |
multilib_copy_sources |