commit: 284d4db2fc480021105e021205fa2e5be58f6d2a Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Thu Nov 3 23:21:58 2022 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Fri Nov 4 01:45:59 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=284d4db2
media-video/asfrecorder: EAPI7->8, fix build w/ upcoming clang16 Also simplify with implicit make rules, and drop dead SRC_URI (sourceforge project page is technically still there but marked abandoned and downloads are gone). Closes: https://bugs.gentoo.org/874558 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> ...rder-1.1-r1.ebuild => asfrecorder-1.1-r2.ebuild} | 21 +++++++++++---------- .../asfrecorder/files/asfrecorder-1.1-headers.patch | 11 +++++++++++ 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/media-video/asfrecorder/asfrecorder-1.1-r1.ebuild b/media-video/asfrecorder/asfrecorder-1.1-r2.ebuild similarity index 50% rename from media-video/asfrecorder/asfrecorder-1.1-r1.ebuild rename to media-video/asfrecorder/asfrecorder-1.1-r2.ebuild index bcb8f73a2cf7..4affdf5ebb9a 100644 --- a/media-video/asfrecorder/asfrecorder-1.1-r1.ebuild +++ b/media-video/asfrecorder/asfrecorder-1.1-r2.ebuild @@ -1,14 +1,16 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit toolchain-funcs MY_PN="${PN/asfr/ASFR}" + DESCRIPTION="Linux WindowsMedia streaming client" HOMEPAGE="https://sourceforge.net/projects/asfrecorder/" -SRC_URI="mirror://sourceforge/${PN}/${MY_PN}.zip" +SRC_URI="mirror://gentoo/${MY_PN}.zip" +S="${WORKDIR}/${MY_PN}" LICENSE="public-domain" SLOT="0" @@ -16,17 +18,16 @@ KEYWORDS="~amd64 ppc x86 ~x86-linux ~ppc-macos" BDEPEND="app-arch/unzip" -S=${WORKDIR}/${MY_PN} +PATCHES=( + "${FILESDIR}"/${P}-headers.patch +) src_compile() { - # There is a Makefile, but it only works for Cygwin, so we - # only compile this single program. - cd "${S}"/source || die - $(tc-getCC) -o ${PN} ${CFLAGS} ${LDFLAGS} ${PN}.c || die "Build failed" + tc-export CC + emake -C source ${PN} } src_install() { - # Again, no makefiles, so just take what we want. dobin source/${PN} - dodoc README.TXT + einstalldocs } diff --git a/media-video/asfrecorder/files/asfrecorder-1.1-headers.patch b/media-video/asfrecorder/files/asfrecorder-1.1-headers.patch new file mode 100644 index 000000000000..4da22e2d662c --- /dev/null +++ b/media-video/asfrecorder/files/asfrecorder-1.1-headers.patch @@ -0,0 +1,11 @@ +https://bugs.gentoo.org/874558 +--- a/source/asfrecorder.c ++++ b/source/asfrecorder.c +@@ -127,2 +127,7 @@ + #include <time.h> ++#include <ctype.h> ++#include <unistd.h> ++#include <sys/socket.h> ++#include <netinet/in.h> ++#include <arpa/inet.h> +