diff options
author | Brahmajit Das <brahmajit.xyz@gmail.com> | 2023-07-17 00:02:33 +0530 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-08-22 10:35:54 +0300 |
commit | 89b422287c081ac7b05c896db479dcee11e59abe (patch) | |
tree | d85a52b324f11399cdaab1209603e337915b1a48 /media-video | |
parent | */*: reassign MATE project's packages (diff) | |
download | gentoo-89b422287c081ac7b05c896db479dcee11e59abe.tar.gz gentoo-89b422287c081ac7b05c896db479dcee11e59abe.tar.bz2 gentoo-89b422287c081ac7b05c896db479dcee11e59abe.zip |
media-video/lxdvdrip: Fix call to undeclared function ioctl
Closes: https://bugs.gentoo.org/885573
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/31916
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/lxdvdrip/files/lxdvdrip-1.77-clang-16-build.patch | 38 | ||||
-rw-r--r-- | media-video/lxdvdrip/lxdvdrip-1.77-r2.ebuild | 51 |
2 files changed, 89 insertions, 0 deletions
diff --git a/media-video/lxdvdrip/files/lxdvdrip-1.77-clang-16-build.patch b/media-video/lxdvdrip/files/lxdvdrip-1.77-clang-16-build.patch new file mode 100644 index 000000000000..98f1ae30220d --- /dev/null +++ b/media-video/lxdvdrip/files/lxdvdrip-1.77-clang-16-build.patch @@ -0,0 +1,38 @@ +https://bugs.gentoo.org/885573 +--- a/dvdbackup.c ++++ b/dvdbackup.c +@@ -30,6 +30,7 @@ COMMENTAIRE : + + #include "const.h" + #include "dvdformat.h" ++#include "dvdcopy.h" + #include "dvdinfo.h" + #include "globals.h" + #include "systools.h" +--- a/dvdcopy.h ++++ b/dvdcopy.h +@@ -14,6 +14,7 @@ COMMENTAIRE : + + #ifndef __DVDCOPY_H__ + #define __DVDCOPY_H__ ++#include <dvdread/ifo_read.h> + /*@$#[dvdcopy.c] global proto. AutoProtoSigV1.1. date: 106/01/05 21:32:04 */ + #include "proto.h" + #ifdef __cplusplus +--- a/systools.c ++++ b/systools.c +@@ -20,12 +20,8 @@ COMMENTAIRE : + #include <stdlib.h> + #include <sys/types.h> + #include <sys/stat.h> +-#if defined(__sun) +-# include <sys/statvfs.h> +-# include <sys/ioctl.h> +-#else +-# include <sys/statfs.h> +-#endif ++#include <sys/statfs.h> ++#include <sys/ioctl.h> + #include <fcntl.h> + #include <unistd.h> + #if defined(__sun) diff --git a/media-video/lxdvdrip/lxdvdrip-1.77-r2.ebuild b/media-video/lxdvdrip/lxdvdrip-1.77-r2.ebuild new file mode 100644 index 000000000000..e1f495467a8e --- /dev/null +++ b/media-video/lxdvdrip/lxdvdrip-1.77-r2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Command line tool to automate the process of ripping and burning DVDs" +HOMEPAGE="https://sourceforge.net/projects/lxdvdrip/" +SRC_URI="mirror://sourceforge/lxdvdrip/${P}.tgz" +S="${WORKDIR}/${PN}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" + +DEPEND="media-libs/libdvdread" +RDEPEND="${DEPEND} + >=media-video/dvdauthor-0.6.9 + media-video/streamdvd + media-video/mpgtx +" + +PATCHES=( + "${FILESDIR}"/${P}-makefile.patch + "${FILESDIR}"/${P}-vamps-makefile.patch + "${FILESDIR}"/${P}-clang-16-build.patch +) + +src_compile() { + tc-export CC + emake + emake -C vamps +} + +src_install() { + dobin lxdvdrip + dobin lxac3scan + dodoc doc-pak/Changelog* doc-pak/Credits doc-pak/Debugging.* + dodoc doc-pak/lxdvdrip.conf* doc-pak/README* + doman lxdvdrip.1 + + insinto /usr/share + doins lxdvdrip.wav + + insinto /etc + newins doc-pak/lxdvdrip.conf.EN lxdvdrip.conf + + cd vamps || die + emake PREFIX="${D}/usr" install +} |