Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/asfrecorder/, media-video/asfrecorder/files/
Date: Fri, 04 Nov 2022 01:46:48
Message-Id: 1667526359.284d4db2fc480021105e021205fa2e5be58f6d2a.ionen@gentoo
1 commit: 284d4db2fc480021105e021205fa2e5be58f6d2a
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 3 23:21:58 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 4 01:45:59 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=284d4db2
7
8 media-video/asfrecorder: EAPI7->8, fix build w/ upcoming clang16
9
10 Also simplify with implicit make rules, and drop dead SRC_URI
11 (sourceforge project page is technically still there but marked
12 abandoned and downloads are gone).
13
14 Closes: https://bugs.gentoo.org/874558
15 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
16
17 ...rder-1.1-r1.ebuild => asfrecorder-1.1-r2.ebuild} | 21 +++++++++++----------
18 .../asfrecorder/files/asfrecorder-1.1-headers.patch | 11 +++++++++++
19 2 files changed, 22 insertions(+), 10 deletions(-)
20
21 diff --git a/media-video/asfrecorder/asfrecorder-1.1-r1.ebuild b/media-video/asfrecorder/asfrecorder-1.1-r2.ebuild
22 similarity index 50%
23 rename from media-video/asfrecorder/asfrecorder-1.1-r1.ebuild
24 rename to media-video/asfrecorder/asfrecorder-1.1-r2.ebuild
25 index bcb8f73a2cf7..4affdf5ebb9a 100644
26 --- a/media-video/asfrecorder/asfrecorder-1.1-r1.ebuild
27 +++ b/media-video/asfrecorder/asfrecorder-1.1-r2.ebuild
28 @@ -1,14 +1,16 @@
29 -# Copyright 1999-2020 Gentoo Authors
30 +# Copyright 1999-2022 Gentoo Authors
31 # Distributed under the terms of the GNU General Public License v2
32
33 -EAPI=7
34 +EAPI=8
35
36 inherit toolchain-funcs
37
38 MY_PN="${PN/asfr/ASFR}"
39 +
40 DESCRIPTION="Linux WindowsMedia streaming client"
41 HOMEPAGE="https://sourceforge.net/projects/asfrecorder/"
42 -SRC_URI="mirror://sourceforge/${PN}/${MY_PN}.zip"
43 +SRC_URI="mirror://gentoo/${MY_PN}.zip"
44 +S="${WORKDIR}/${MY_PN}"
45
46 LICENSE="public-domain"
47 SLOT="0"
48 @@ -16,17 +18,16 @@ KEYWORDS="~amd64 ppc x86 ~x86-linux ~ppc-macos"
49
50 BDEPEND="app-arch/unzip"
51
52 -S=${WORKDIR}/${MY_PN}
53 +PATCHES=(
54 + "${FILESDIR}"/${P}-headers.patch
55 +)
56
57 src_compile() {
58 - # There is a Makefile, but it only works for Cygwin, so we
59 - # only compile this single program.
60 - cd "${S}"/source || die
61 - $(tc-getCC) -o ${PN} ${CFLAGS} ${LDFLAGS} ${PN}.c || die "Build failed"
62 + tc-export CC
63 + emake -C source ${PN}
64 }
65
66 src_install() {
67 - # Again, no makefiles, so just take what we want.
68 dobin source/${PN}
69 - dodoc README.TXT
70 + einstalldocs
71 }
72
73 diff --git a/media-video/asfrecorder/files/asfrecorder-1.1-headers.patch b/media-video/asfrecorder/files/asfrecorder-1.1-headers.patch
74 new file mode 100644
75 index 000000000000..4da22e2d662c
76 --- /dev/null
77 +++ b/media-video/asfrecorder/files/asfrecorder-1.1-headers.patch
78 @@ -0,0 +1,11 @@
79 +https://bugs.gentoo.org/874558
80 +--- a/source/asfrecorder.c
81 ++++ b/source/asfrecorder.c
82 +@@ -127,2 +127,7 @@
83 + #include <time.h>
84 ++#include <ctype.h>
85 ++#include <unistd.h>
86 ++#include <sys/socket.h>
87 ++#include <netinet/in.h>
88 ++#include <arpa/inet.h>
89 +