diff options
Diffstat (limited to 'app-cdr/dvdshrink/dvdshrink-2.6.1_p10.ebuild')
-rw-r--r-- | app-cdr/dvdshrink/dvdshrink-2.6.1_p10.ebuild | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/app-cdr/dvdshrink/dvdshrink-2.6.1_p10.ebuild b/app-cdr/dvdshrink/dvdshrink-2.6.1_p10.ebuild index 0dd1d1b19267..c7e5f5c4269e 100644 --- a/app-cdr/dvdshrink/dvdshrink-2.6.1_p10.ebuild +++ b/app-cdr/dvdshrink/dvdshrink-2.6.1_p10.ebuild @@ -1,8 +1,9 @@ # Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=2 -inherit eutils +EAPI=6 + +inherit desktop DESCRIPTION="Scriptable DVD copy software" HOMEPAGE="http://dvdshrink.sourceforge.net" @@ -24,21 +25,15 @@ RDEPEND=">=media-video/transcode-1.0.2-r2[dvd] DEPEND="" S=${WORKDIR}/${PN} - -src_prepare() { - sed -e 's:applications/::g' -i usr/bin/dvdsfunctions \ - -i usr/bin/xdvdshrink.pl || die "sed failed." -} +PATCHES=( "${FILESDIR}"/${PN}-2.6.1_p10-fix-paths.patch ) src_install() { - dobin usr/bin/{batchrip.sh,dvds{functions,hrink}} || die "dobin failed." + dobin usr/bin/{batchrip.sh,dvds{functions,hrink}} - if use gtk; then - dobin usr/bin/xdvdshrink.pl || die "dobin failed." - fi + use gtk && dobin usr/bin/xdvdshrink.pl insinto /usr/share - doins -r usr/share/applications/dvdshrink || die "doins failed." + doins -r usr/share/applications/dvdshrink dodoc usr/share/doc/dvdshrink/{batchrip.txt,example.xml,README.txt} |