dvdshrink-2.6.1_p10.ebuild 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=2
  4. inherit eutils
  5. DESCRIPTION="Scriptable DVD copy software"
  6. HOMEPAGE="http://dvdshrink.sourceforge.net"
  7. SRC_URI="mirror://sourceforge/${PN}/${P/_p/-}mdk.tar.gz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~ppc ~x86"
  11. IUSE="gtk"
  12. RDEPEND=">=media-video/transcode-1.0.2-r2[dvd]
  13. >=media-video/mjpegtools-1.8.0-r1
  14. >=media-video/subtitleripper-0.3.4-r1
  15. >=media-video/dvdauthor-0.6.11
  16. >=app-cdr/dvd+rw-tools-6.1
  17. gtk? ( >=dev-perl/Gtk2-1.104 )
  18. >=app-text/gocr-0.40
  19. virtual/cdrtools"
  20. DEPEND=""
  21. S=${WORKDIR}/${PN}
  22. src_prepare() {
  23. sed -e 's:applications/::g' -i usr/bin/dvdsfunctions \
  24. -i usr/bin/xdvdshrink.pl || die "sed failed."
  25. }
  26. src_install() {
  27. dobin usr/bin/{batchrip.sh,dvds{functions,hrink}} || die "dobin failed."
  28. if use gtk; then
  29. dobin usr/bin/xdvdshrink.pl || die "dobin failed."
  30. fi
  31. insinto /usr/share
  32. doins -r usr/share/applications/dvdshrink || die "doins failed."
  33. dodoc usr/share/doc/dvdshrink/{batchrip.txt,example.xml,README.txt}
  34. doicon usr/share/icons/{batchrip.xpm,dvdshrink.xpm}
  35. use gtk && make_desktop_entry xdvdshrink.pl xDVDShrink ${PN} AudioVideo
  36. }