dvdstyler-3.0.3.ebuild 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. MY_P=${P/dvds/DVDS}
  5. WX_GTK_VER=3.0
  6. inherit wxwidgets eutils
  7. DESCRIPTION="A cross-platform free DVD authoring application"
  8. HOMEPAGE="http://www.dvdstyler.org/"
  9. SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
  10. LICENSE="GPL-2"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE="debug libav +udev"
  14. COMMON_DEPEND="
  15. >=app-cdr/dvd+rw-tools-7.1
  16. media-libs/libexif:=
  17. >=media-libs/wxsvg-1.5.11:=
  18. >=media-video/dvdauthor-0.7.1
  19. >=media-video/xine-ui-0.99.7
  20. virtual/cdrtools
  21. libav? ( >=media-video/libav-9:0=[encode] )
  22. !libav? ( >=media-video/ffmpeg-2.6:0=[encode] )
  23. virtual/jpeg:0
  24. x11-libs/wxGTK:${WX_GTK_VER}=[gstreamer,X]
  25. sys-apps/dbus
  26. udev? ( >=virtual/libudev-215:= )
  27. "
  28. RDEPEND="${COMMON_DEPEND}
  29. >=app-cdr/dvdisaster-0.72.4
  30. media-video/mjpegtools
  31. "
  32. DEPEND="${COMMON_DEPEND}
  33. app-arch/zip
  34. app-text/xmlto
  35. sys-devel/gettext
  36. virtual/yacc
  37. virtual/pkgconfig
  38. "
  39. S="${WORKDIR}/${MY_P}"
  40. src_prepare() {
  41. need-wxwidgets unicode
  42. # disable obsolete GNOME 2.x libraries wrt #508854
  43. sed -i -e '/PKG_CONFIG/s:libgnomeui-2.0:dIsAbLeAuToMaGiC&:' configure || die
  44. # rmdir: failed to remove `tempfoobar': Directory not empty
  45. sed -i -e '/rmdir "$$t"/d' docs/Makefile.in || die
  46. # fix underlinking wrt #367863
  47. sed -i -e 's:@LIBS@:& -ljpeg:' wxVillaLib/Makefile.in || die
  48. # silence desktop-file-validate QA check
  49. sed -i \
  50. -e '/Icon/s:.png::' -e '/^Encoding/d' -e '/Categories/s:Application;::' \
  51. data/dvdstyler.desktop || die
  52. }
  53. src_configure() {
  54. econf \
  55. --docdir=/usr/share/doc/${PF} \
  56. $(use_enable debug) \
  57. --with-wx-config=${WX_CONFIG}
  58. }
  59. src_install() {
  60. default
  61. rm -f "${ED}"/usr/share/doc/${PF}/{COPYING*,INSTALL*}
  62. }