1 |
commit: 65a5ee694c109ad023cd722eae95deddf5c03b90 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 8 16:53:21 2020 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 8 16:53:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65a5ee69 |
7 |
|
8 |
media-sound/chordii: Fix building under -fno-common |
9 |
|
10 |
Closes: https://bugs.gentoo.org/706460 |
11 |
Package-Manager: Portage-3.0.1, Repoman-2.3.23 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
media-sound/chordii/chordii-4.5.3.ebuild | 20 +++++++------- |
15 |
.../chordii/files/chordii-4.5.3-fno-common.patch | 31 ++++++++++++++++++++++ |
16 |
2 files changed, 41 insertions(+), 10 deletions(-) |
17 |
|
18 |
diff --git a/media-sound/chordii/chordii-4.5.3.ebuild b/media-sound/chordii/chordii-4.5.3.ebuild |
19 |
index 605ec52c35a..1b9c9f3d7f9 100644 |
20 |
--- a/media-sound/chordii/chordii-4.5.3.ebuild |
21 |
+++ b/media-sound/chordii/chordii-4.5.3.ebuild |
22 |
@@ -1,26 +1,26 @@ |
23 |
-# Copyright 1999-2016 Gentoo Foundation |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=6 |
28 |
+EAPI=7 |
29 |
|
30 |
DESCRIPTION="A guitar music typesetter" |
31 |
HOMEPAGE="http://chordii.sourceforge.net/" |
32 |
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz |
33 |
+SRC_URI=" |
34 |
+ mirror://sourceforge/${PN}/${P}.tar.gz |
35 |
doc? ( mirror://sourceforge/${PN}/user_guide-${PV}.pdf )" |
36 |
|
37 |
LICENSE="GPL-3" |
38 |
SLOT="0" |
39 |
KEYWORDS="~amd64 ~x86" |
40 |
-IUSE="doc examples" |
41 |
+IUSE="doc" |
42 |
+ |
43 |
+PATCHES=( "${FILESDIR}"/${PN}-4.5.3-fno-common.patch ) |
44 |
|
45 |
src_install() { |
46 |
default |
47 |
|
48 |
- use doc && dodoc "${DISTDIR}"/user_guide-${PV}.pdf |
49 |
+ dodoc -r examples |
50 |
+ docompress -x /usr/share/doc/${PF}/examples |
51 |
|
52 |
- if use examples ; then |
53 |
- docinto examples |
54 |
- dodoc examples/* |
55 |
- docompress -x /usr/share/doc/${PF}/examples |
56 |
- fi |
57 |
+ use doc && dodoc "${DISTDIR}"/user_guide-${PV}.pdf |
58 |
} |
59 |
|
60 |
diff --git a/media-sound/chordii/files/chordii-4.5.3-fno-common.patch b/media-sound/chordii/files/chordii-4.5.3-fno-common.patch |
61 |
new file mode 100644 |
62 |
index 00000000000..914a532252c |
63 |
--- /dev/null |
64 |
+++ b/media-sound/chordii/files/chordii-4.5.3-fno-common.patch |
65 |
@@ -0,0 +1,31 @@ |
66 |
+--- a/src/chordii.c |
67 |
++++ b/src/chordii.c |
68 |
+@@ -19,6 +19,8 @@ |
69 |
+ |
70 |
+ static FILE *source_fd; |
71 |
+ |
72 |
++struct kcs dummy_kcs; |
73 |
++ |
74 |
+ char |
75 |
+ text_line[MAXLINE], /* Lyrics Buffer */ |
76 |
+ chord[MAXTOKEN], /* Buffer for the name of the chord */ |
77 |
+--- a/src/chordii.h |
78 |
++++ b/src/chordii.h |
79 |
+@@ -67,7 +67,7 @@ |
80 |
+ #define CHORD_EASY 0 |
81 |
+ #define CHORD_HARD 1 |
82 |
+ |
83 |
+-struct kcs { |
84 |
++extern struct kcs { |
85 |
+ struct kcs *next; |
86 |
+ char chord_name[CHORD_NAME_SZ]; |
87 |
+ int displ; |
88 |
+@@ -76,7 +76,7 @@ |
89 |
+ int difficult; |
90 |
+ } dummy_kcs; |
91 |
+ |
92 |
+-struct chord_struct { |
93 |
++typedef struct chord_struct { |
94 |
+ struct chord_struct *next; |
95 |
+ struct kcs *chord; |
96 |
+ } dummy_chord_struct; |