From 2ddc3f5c20bb6b7d1504483997c7e78bc462ac34 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 9 Nov 2019 20:31:51 +0100 Subject: media-video/vstrip: Bump to EAPI 7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/697264 Signed-off-by: Michał Górny --- media-video/vstrip/files/vstrip-0.8f-gentoo.patch | 12 ++++++------ media-video/vstrip/vstrip-0.8f.ebuild | 21 ++++++++++----------- 2 files changed, 16 insertions(+), 17 deletions(-) (limited to 'media-video') diff --git a/media-video/vstrip/files/vstrip-0.8f-gentoo.patch b/media-video/vstrip/files/vstrip-0.8f-gentoo.patch index 77328b091247..d4be5a2ea783 100644 --- a/media-video/vstrip/files/vstrip-0.8f-gentoo.patch +++ b/media-video/vstrip/files/vstrip-0.8f-gentoo.patch @@ -1,5 +1,5 @@ ---- Makefile -+++ Makefile 2003-10-12 02:25:31.000000000 +0000 +--- a/Makefile ++++ b/Makefile 2003-10-12 02:25:31.000000000 +0000 @@ -4,7 +4,7 @@ ### Sources @@ -20,8 +20,8 @@ file_io.o : s_types.h file_io.h file_io.c in_buffer.o : s_types.h file_io.h in_buffer.h in_buffer.c main.o : s_types.h file_io.h vstrip.h main.c ---- dvd2avi_plugin.c -+++ dvd2avi_plugin.c 2003-10-12 02:29:23.000000000 +0000 +--- a/dvd2avi_plugin.c ++++ b/dvd2avi_plugin.c 2003-10-12 02:29:23.000000000 +0000 @@ -6,13 +6,17 @@ *************************************************************************/ @@ -50,8 +50,8 @@ lba = (dword)(fposition / fio_SECTOR_SIZE); _close(fp); ---- file_io.c -+++ file_io.c 2003-10-12 02:24:46.000000000 +0000 +--- a/file_io.c ++++ b/file_io.c 2003-10-12 02:24:46.000000000 +0000 @@ -32,7 +32,7 @@ fp = _open(name, _O_BINARY | _O_RDONLY); // check size if (fp != -1) diff --git a/media-video/vstrip/vstrip-0.8f.ebuild b/media-video/vstrip/vstrip-0.8f.ebuild index ebf44df3a614..7aa923068945 100644 --- a/media-video/vstrip/vstrip-0.8f.ebuild +++ b/media-video/vstrip/vstrip-0.8f.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=0 +EAPI=7 inherit eutils toolchain-funcs @@ -15,24 +15,23 @@ KEYWORDS="~amd64 ~ppc ~x86" IUSE="" DEPEND="app-arch/unzip" -RDEPEND="" S="${WORKDIR}/${PN}" -src_unpack() { - unpack ${A} - cd "${S}" - - epatch "${FILESDIR}"/${P}-gentoo.patch +src_prepare() { + eapply "${FILESDIR}"/${P}-gentoo.patch edos2unix *.c *.h - for file in *.c *.h ; do - echo >>$file + local f + for f in *.c *.h ; do + echo >> "${f}" || die done + + default } src_compile() { - emake CFLAGS="${CFLAGS} -D__UNIX__" CC="$(tc-getCC)" || die "emake failed." + emake CFLAGS="${CFLAGS} -D__UNIX__" CC="$(tc-getCC)" } src_install() { -- cgit v1.2.3-65-gdbad