1 |
commit: ad2cee1cf849f205059690bb4d146261abb9cb6b |
2 |
Author: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Apr 15 17:57:06 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Apr 16 19:36:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad2cee1c |
7 |
|
8 |
app-cdr/cddetect: EAPI=7 bump |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/11699 |
11 |
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com> |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
app-cdr/cddetect/cddetect-2.1.ebuild | 12 +++++------- |
15 |
app-cdr/cddetect/files/cddetect-2.1-fix-include.patch | 9 +++++++++ |
16 |
2 files changed, 14 insertions(+), 7 deletions(-) |
17 |
|
18 |
diff --git a/app-cdr/cddetect/cddetect-2.1.ebuild b/app-cdr/cddetect/cddetect-2.1.ebuild |
19 |
index 5de6bf19692..ed051629ee1 100644 |
20 |
--- a/app-cdr/cddetect/cddetect-2.1.ebuild |
21 |
+++ b/app-cdr/cddetect/cddetect-2.1.ebuild |
22 |
@@ -1,23 +1,21 @@ |
23 |
-# Copyright 1999-2012 Gentoo Foundation |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI=4 |
28 |
+EAPI=7 |
29 |
+ |
30 |
inherit toolchain-funcs |
31 |
|
32 |
-DESCRIPTION="A tool for detecting the type of a CD/DVD without mounting it" |
33 |
+DESCRIPTION="Tool for detecting the type of a CD/DVD without mounting it" |
34 |
HOMEPAGE="http://www.bellut.net/projects.html" |
35 |
SRC_URI="http://www.bellut.net/files/${P}.tar.gz" |
36 |
|
37 |
LICENSE="GPL-2" |
38 |
SLOT="0" |
39 |
KEYWORDS="~amd64 ~x86" |
40 |
-IUSE="" |
41 |
|
42 |
S=${WORKDIR} |
43 |
|
44 |
-src_prepare() { |
45 |
- sed -i -e '1i#include <limits.h>' ${PN}.c || die #337628 |
46 |
-} |
47 |
+PATCHES=( "${FILESDIR}"/"${P}"-fix-include.patch ) #337628 |
48 |
|
49 |
src_compile() { |
50 |
emake CC="$(tc-getCC)" CFLAGS="-Wall ${CFLAGS}" |
51 |
|
52 |
diff --git a/app-cdr/cddetect/files/cddetect-2.1-fix-include.patch b/app-cdr/cddetect/files/cddetect-2.1-fix-include.patch |
53 |
new file mode 100644 |
54 |
index 00000000000..77386abd1bc |
55 |
--- /dev/null |
56 |
+++ b/app-cdr/cddetect/files/cddetect-2.1-fix-include.patch |
57 |
@@ -0,0 +1,9 @@ |
58 |
+https://bugs.gentoo.org/337628 |
59 |
+ |
60 |
+--- a/cddetect.c |
61 |
++++ b/cddetect.c |
62 |
+@@ -1,3 +1,4 @@ |
63 |
++#include <limits.h> |
64 |
+ /* big parts taken from cdfs (C) 1999, 2000, 2001 by Michiel Ronsse |
65 |
+ * relesed under the GPL v.2 |
66 |
+ * more parts taken from isoinfo/isodump (W) 1993 Eric Youngdale, |