diff options
author | Pacho Ramos <pacho@gentoo.org> | 2015-10-27 19:53:07 +0100 |
---|---|---|
committer | Pacho Ramos <pacho@gentoo.org> | 2015-10-27 19:53:07 +0100 |
commit | 3ab3271a94fe96c01203ddeef7d729059af8a08c (patch) | |
tree | 14cd14cf9bad4ba583ad89cc16a9df685207ab3e /media-video/dvdrip | |
parent | sys-devel/llvm: fix compilation on armv5 (diff) | |
download | gentoo-3ab3271a94fe96c01203ddeef7d729059af8a08c.tar.gz gentoo-3ab3271a94fe96c01203ddeef7d729059af8a08c.tar.bz2 gentoo-3ab3271a94fe96c01203ddeef7d729059af8a08c.zip |
media-video/dvdrip: Support libav too (#474346)
Package-Manager: portage-2.2.23
Diffstat (limited to 'media-video/dvdrip')
-rw-r--r-- | media-video/dvdrip/dvdrip-0.98.11-r3.ebuild | 81 | ||||
-rw-r--r-- | media-video/dvdrip/files/dvdrip-0.98.11-libav.patch | 29 |
2 files changed, 110 insertions, 0 deletions
diff --git a/media-video/dvdrip/dvdrip-0.98.11-r3.ebuild b/media-video/dvdrip/dvdrip-0.98.11-r3.ebuild new file mode 100644 index 000000000000..fcf2a6b95b1f --- /dev/null +++ b/media-video/dvdrip/dvdrip-0.98.11-r3.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils flag-o-matic perl-module + +DESCRIPTION="dvd::rip is a graphical frontend for transcode" +HOMEPAGE="http://www.exit1.org/dvdrip/" +SRC_URI="http://www.exit1.org/dvdrip/dist/${P}.tar.gz" + +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="ffmpeg fping libav mplayer ogg subtitles vcd vorbis xine xvid" + +DEPEND=">=dev-perl/Event-ExecFlow-0.64 + >=dev-perl/Event-RPC-0.89 + dev-perl/gtk2-perl + >=dev-perl/gtk2-ex-formfactory-0.65 + >=dev-perl/libintl-perl-1.16 + || ( media-gfx/graphicsmagick[imagemagick] media-gfx/imagemagick ) + >=media-video/transcode-1.1.0[dvd,jpeg,mp3,ogg,vorbis] + >=virtual/perl-podlators-2.5.3 +" +RDEPEND="${DEPEND} + x11-libs/gdk-pixbuf:2[jpeg] + x11-libs/gtk+:2 + ffmpeg? ( + libav? ( media-video/libav ) + !libav? ( media-video/ffmpeg:0 ) + ) + fping? ( >=net-analyzer/fping-2.2 ) + mplayer? ( media-video/mplayer ) + ogg? ( media-sound/ogmtools ) + subtitles? ( media-video/subtitleripper ) + vcd? ( + media-video/transcode[mjpeg] + >=media-video/mjpegtools-1.6.0 + ) + vorbis? ( media-sound/vorbis-tools ) + xine? ( media-video/xine-ui ) + xvid? ( media-video/xvid4conf ) + >=media-video/lsdvd-0.15 +" + +pkg_setup() { + filter-flags -ftracer + export SKIP_UNPACK_REQUIRED_MODULES=1 #255269 + + perl_set_version +} + +src_prepare() { + sed -i -e 's:$(CC):$(CC) $(OTHERLDFLAGS):' src/Makefile || die #333739 + epatch "${FILESDIR}"/${P}-fix_parallel_make.patch + # Fix default device for >=udev-180 wrt #224559 + sed -i -e 's:/dev/dvd:/dev/cdrom:' lib/Video/DVDRip/Config.pm || die + + # Ubuntu patch for supporting libav + use libav && epatch "${FILESDIR}"/${P}-libav.patch +} + +src_install() { + newicon lib/Video/DVDRip/icon.xpm dvdrip.xpm + make_desktop_entry dvdrip dvd::rip + + mydoc="Changes* Credits README TODO" perl-module_src_install +} + +pkg_postinst() { + # bug 173924 + if use fping; then + ewarn "For dvdrip-master to work correctly with cluster mode," + ewarn "the fping binary must be setuid." + ewarn "" + ewarn "Run this command to fix it:" + ewarn "chmod u=rwsx,g=rx,o=rx /usr/sbin/fping" + ewarn "" + ewarn "Note that this is a security risk when enabled." + fi +} diff --git a/media-video/dvdrip/files/dvdrip-0.98.11-libav.patch b/media-video/dvdrip/files/dvdrip-0.98.11-libav.patch new file mode 100644 index 000000000000..a9d60e2338b1 --- /dev/null +++ b/media-video/dvdrip/files/dvdrip-0.98.11-libav.patch @@ -0,0 +1,29 @@ +Description: Port from ffmpeg to avconv. +Author: Dmitrijs Ledkovs <xnox@ubuntu.com> + +--- dvdrip-0.98.11.orig/lib/Video/DVDRip/Depend.pm ++++ dvdrip-0.98.11/lib/Video/DVDRip/Depend.pm +@@ -114,10 +114,10 @@ my %TOOLS = ( + }, + ffmpeg => { + order => ++$ORDER, +- command => "ffmpeg", ++ command => "avconv", + comment => __ "FFmpeg video converter command line program", + optional => 1, +- version_cmd => "ffmpeg -version", ++ version_cmd => "avconv -version", + get_version => sub { + my ($cmd) = @_; + qx[$cmd 2>&1] =~ /version ([^\s]+)/i; +--- dvdrip-0.98.11.orig/lib/Video/DVDRip/Title.pm ++++ dvdrip-0.98.11/lib/Video/DVDRip/Title.pm +@@ -3184,7 +3184,7 @@ sub get_take_snapshot_command { + . "tcdemux -s 0x80 -x mpeg2 -S $grab_options->{S} " + . "-M 0 -d 0 -P /dev/null | " + . "tcextract -t vob -a 0 -x mpeg2 -d 0 | " +- . "ffmpeg -r $frame_rate -i - -an -r 1 -ss '$start' -vframes 1 snapshot%03d.png "; ++ . "avconv -r $frame_rate -i - -an -r 1 -ss '$start' -vframes 1 snapshot%03d.png "; + + $command .= " && " + . "execflow convert" |