/media-video/handbrake/handbrake-0.9.4.ebuild

http://github.com/stsquad/Gentoo-Overlay · Unknown · 68 lines · 55 code · 13 blank · 0 comment · 0 complexity · a72b701b8aa6c9664a5a2f1ac0c3c24e MD5 · raw file

  1. # Copyright 1999-2009 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. # $Header: $
  4. EAPI="2"
  5. inherit gnome2-utils
  6. MY_PN="HandBrake"
  7. S="${WORKDIR}/${MY_PN}-${PV}"
  8. DESCRIPTION="Open-source DVD to MPEG-4 converter"
  9. HOMEPAGE="http://handbrake.fr/"
  10. SRC_URI="http://handbrake.fr/rotation.php?file=${MY_PN}-${PV}.tar.bz2
  11. -> ${MY_PN}-${PV}.tar.bz2"
  12. LICENSE="GPL-2"
  13. SLOT="0"
  14. KEYWORDS="~amd64 ~x86"
  15. IUSE="css doc gtk"
  16. RDEPEND="sys-libs/zlib
  17. css? ( media-libs/libdvdcss )
  18. gtk? ( >=x11-libs/gtk+-2.8
  19. dev-libs/dbus-glib
  20. sys-apps/hal
  21. net-libs/webkit-gtk
  22. x11-libs/libnotify
  23. media-libs/gstreamer
  24. media-libs/gst-plugins-base
  25. )"
  26. DEPEND="dev-lang/yasm
  27. dev-lang/python
  28. || ( net-misc/wget net-misc/curl )
  29. ${RDEPEND}"
  30. src_configure() {
  31. # Python configure script doesn't accept all econf flags
  32. ./configure --force --prefix=/usr \
  33. $(use_enable gtk) \
  34. || die "configure failed"
  35. }
  36. src_compile() {
  37. emake -C build || die "failed compiling ${PN}"
  38. }
  39. src_install() {
  40. emake -C build DESTDIR="${D}" install || die "failed installing ${PN}"
  41. if use doc; then
  42. emake -C build doc
  43. dodoc AUTHORS CREDITS NEWS THANKS \
  44. build/doc/articles/txt/* || die "docs failed"
  45. fi
  46. }
  47. pkg_preinst() {
  48. gnome2_icon_savelist
  49. }
  50. pkg_postinst() {
  51. gnome2_icon_cache_update
  52. }
  53. pkg_postrm() {
  54. gnome2_icon_cache_update
  55. }