Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/barcode/files/, app-text/barcode/
Date: Mon, 28 Dec 2020 11:50:50
Message-Id: 1609156213.6a1d76b6138e6a7150e8d6228b6d43e9be997158.soap@gentoo
1 commit: 6a1d76b6138e6a7150e8d6228b6d43e9be997158
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Mon Dec 28 11:50:13 2020 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 28 11:50:13 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a1d76b6
7
8 app-text/barcode: Port to EAPI 7
9
10 Closes: https://bugs.gentoo.org/707686
11 Package-Manager: Portage-3.0.9, Repoman-3.0.1
12 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
13 Signed-off-by: David Seifert <soap <AT> gentoo.org>
14
15 app-text/barcode/barcode-0.99.ebuild | 13 ++++-------
16 app-text/barcode/files/0.98-info.patch | 14 ------------
17 .../barcode/files/barcode-0.99-fno-common.patch | 25 ++++++++++++++++++++++
18 3 files changed, 29 insertions(+), 23 deletions(-)
19
20 diff --git a/app-text/barcode/barcode-0.99.ebuild b/app-text/barcode/barcode-0.99.ebuild
21 index ce0692e849f..bd58bc146e1 100644
22 --- a/app-text/barcode/barcode-0.99.ebuild
23 +++ b/app-text/barcode/barcode-0.99.ebuild
24 @@ -1,9 +1,7 @@
25 # Copyright 1999-2020 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 -EAPI=6
29 -
30 -inherit eutils multilib
31 +EAPI=7
32
33 DESCRIPTION="barcode generator"
34 HOMEPAGE="https://www.gnu.org/software/barcode/"
35 @@ -12,10 +10,12 @@ SRC_URI="mirror://gnu/barcode/${P}.tar.gz"
36 LICENSE="GPL-2"
37 SLOT="0"
38 KEYWORDS="amd64 ~arm ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
39 -IUSE=""
40 +
41 RDEPEND="app-text/libpaper"
42 DEPEND="${RDEPEND}"
43
44 +PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
45 +
46 src_prepare() {
47 sed -i -e '/^LDFLAGS =/s:=:+=:' \
48 -e "/^aLIBDIR/s:lib:$(get_libdir):" \
49 @@ -25,8 +25,3 @@ src_prepare() {
50
51 default
52 }
53 -
54 -src_install() {
55 - default
56 - dodoc ChangeLog README TODO
57 -}
58
59 diff --git a/app-text/barcode/files/0.98-info.patch b/app-text/barcode/files/0.98-info.patch
60 deleted file mode 100644
61 index 740458f88ed..00000000000
62 --- a/app-text/barcode/files/0.98-info.patch
63 +++ /dev/null
64 @@ -1,14 +0,0 @@
65 ---- doc/barcode.info.old 2003-10-26 19:08:39.000000000 -0800
66 -+++ doc/barcode.info 2003-10-26 19:58:42.179447512 -0800
67 -@@ -1,6 +1,11 @@
68 - This is barcode.info, produced by makeinfo version 4.0 from
69 - barcode.texinfo.
70 -
71 -+INFO-DIR-SECTION Miscellaneous
72 -+START-INFO-DIR-ENTRY
73 -+* Barcode: (barcode). Barcode generation library.
74 -+END-INFO-DIR-ENTRY
75 -+
76 - This file is the User's Manual for the barcode library (version
77 - 0.98).
78 -
79
80 diff --git a/app-text/barcode/files/barcode-0.99-fno-common.patch b/app-text/barcode/files/barcode-0.99-fno-common.patch
81 new file mode 100644
82 index 00000000000..5abb8a26824
83 --- /dev/null
84 +++ b/app-text/barcode/files/barcode-0.99-fno-common.patch
85 @@ -0,0 +1,25 @@
86 +Taken from: https://sources.debian.org/patches/barcode/0.99-4/0006-Fix-FTBFS-with-gcc-10.patch/
87 +Author: https://sources.debian.org/patches/barcode/0.99-4/0006-Fix-FTBFS-with-gcc-10.patch/
88 +--- a/barcode.h
89 ++++ b/barcode.h
90 +@@ -123,6 +123,6 @@ extern int Barcode_Version(char *versionname);
91 + }
92 + #endif
93 +
94 +-int streaming;
95 ++extern int streaming;
96 +
97 + #endif /* _BARCODE_H_ */
98 +diff --git a/library.c b/library.c
99 +index 30946ff..5390a2b 100644
100 +--- a/library.c
101 ++++ b/library.c
102 +@@ -30,6 +30,8 @@
103 + #endif
104 + #include <errno.h>
105 +
106 ++int streaming;
107 ++
108 + /*
109 + * This function allocates a barcode structure and strdup()s the
110 + * text string. It returns NULL in case of error