HandBrake

Собственно больше всего после прочтения HandBrake 0.9.3: Released! меня заинтересовало вот что

Linux GUI
There is now an official GTK graphical interface for Linux, available
as a binary for Ubuntu. This is the real deal, interacting directly
with HandBrake’s core library instead of just putting a pretty face on
a command line interface. It has full feature parity with the Mac
interface.

О том что HandBrake замечательная утилита в Mac OS X я знал и до этого… Но вот то что есть GTK+ интерфейс да еще и под Linux для меня стало новостью!

Почитав страницу details я окончательно убедился в том, что HandBrake намного интереснее к примеру чем media-video/ogmrip

И вот за что я люблю gentoo так это за то, что нужно только поискать… и все всегда находится. Да я о Bug #89432

Собственно

media-video/handbrake/handbrake-0.9.3.ebuild

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils autotools

MY_P="${P/handbrake/HandBrake}"
S="${WORKDIR}/${MY_P}"
DESCRIPTION="Open-source DVD to MPEG-4 converter."
HOMEPAGE="http://handbrake.fr/"
LICENSE="GPL-2"
SLOT="0"
SRC_URI="http://download.handbrake.fr/handbrake/releases/${MY_P}.tar.gz
http://download.m0k.org/handbrake/contrib/libtheora-1.0.tar.gz
http://download.m0k.org/handbrake/contrib/libdca-r81-strapped.tar.gz
http://download.m0k.org/handbrake/contrib/ffmpeg-r15462.tar.gz
http://download.m0k.org/handbrake/contrib/libmkv-0.6.3.tar.gz
http://download.m0k.org/handbrake/contrib/mpeg4ip-1.3.tar.gz
http://download.m0k.org/handbrake/contrib/mpeg2dec-0.5.1.tar.gz
http://download.m0k.org/handbrake/contrib/libvorbis-aotuv_b5.tar.gz
http://download.m0k.org/handbrake/contrib/a52dec-0.7.4.tar.gz
http://download.m0k.org/handbrake/contrib/faac-1.26.tar.gz
http://download.m0k.org/handbrake/contrib/lame-3.98.tar.gz
http://download.m0k.org/handbrake/contrib/libsamplerate-0.1.4.tar.gz
http://download.m0k.org/handbrake/contrib/bzip2-1.0.5.tar.gz
http://download.m0k.org/handbrake/contrib/libquicktime-0.9.10.tar.gz
http://download.m0k.org/handbrake/contrib/zlib-1.2.3.tar.gz
http://download.m0k.org/handbrake/contrib/faad2-2.6.1.tar.gz
http://download.m0k.org/handbrake/contrib/libogg-1.1.3.tar.gz
http://download.m0k.org/handbrake/contrib/libdvdread-0.9.7.tar.gz
http://download.m0k.org/handbrake/contrib/xvidcore-1.1.3.tar.gz
http://download.m0k.org/handbrake/contrib/x264-r1028-83baa7f.tar.gz
http://download.m0k.org/handbrake/contrib/libmp4v2-r45.tar.gz
"

KEYWORDS="~amd64"

IUSE="gtk"
RDEPEND="gtk? ( >=x11-libs/gtk+-2.8
    >=gnome-extra/gtkhtml-3.14 )"
DEPEND="sys-libs/zlib
    dev-util/ftjam
    ${RDEPEND}"

src_unpack() {
    unpack "${MY_P}.tar.gz"
    cp "${DISTDIR}"/*.tar.gz "${S}"/contrib
    cd "${S}"
    epatch "${FILESDIR}/${PV}-no-wget-ktnxbye.patch"
}

src_compile() {
    emake || die "Compilation of HandBrakeCLI failed"
    if use gtk ; then
    cd ${S}/gtk
    eautoreconf
    emake || die "Compilation of ghb failed"
    fi
}

src_install() {
    into /usr
    dobin HandBrakeCLI
    dodoc AUTHORS BUILD CREDITS NEWS THANKS TRANSLATIONS
    if use gtk ; then
    dobin "${S}/gtk/ghb"
    insinto /usr/share/applications/
    doins "${S}/gtk/ghb.desktop"
    for res in 64 128; do
                insinto /usr/share/icons/hicolor/${res}x${res}/apps/
                newins ${GTK}/hb-icon${res}.png handbrake.png
        done
    fi
}

pkg_postinst() {
    einfo "HandBrakeCLI had been installed."
    if use gtk; then
            einfo "So has ghb, the Handbrake GUI."
            einfo "ghb.desktop has been installed to"
            einfo "/usr/share/applications/"
    fi

}

media-video/handbrake/files/0.9.3-no-wget-ktnxbye.patch

--- HandBrake-0.9.3/contrib/Jamfile.orig    2009-06-14 22:15:28.000000000 +0100
+++ HandBrake-0.9.3/contrib/Jamfile 2009-06-14 22:16:14.000000000 +0100
@@ -34,9 +34,7 @@
 }
 actions Wget
 {
-    $(RM) $(<) &&
-    $(WGET) $(<) `cat $(>)` &&
-    ( touch $(<) || true )
+    cp `cat $(>) | cut -d"/" -f6` $(<)
 }

 # liba52

media-video/handbrake/handbrake-9999.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

ESVN_REPO_URI="svn://svn.handbrake.fr/HandBrake/trunk"

inherit subversion gnome2-utils

DESCRIPTION="Open-source DVD to MPEG-4 converter."
HOMEPAGE="http://handbrake.fr/"
LICENSE="GPL-2"
SLOT="0"

KEYWORDS="~x86 ~amd64"

IUSE="doc gtk"
RDEPEND="
    gtk? (  >=x11-libs/gtk+-2.8
        dev-libs/glib
        dev-libs/dbus-glib
        sys-apps/hal
        net-libs/webkit-gtk
        x11-libs/libnotify
        media-libs/gstreamer
        media-libs/gst-plugins-base
    )"
DEPEND="sys-libs/zlib
    dev-lang/yasm
    >=dev-lang/python-2.4.6
    || ( >=net-misc/wget-1.11.4 >=net-misc/curl-7.19.4 ) 
    $RDEPEND"

src_configure() {

    local myconf=""

    ! use gtk && myconf="${myconf} --disable-gtk"

    ./configure --force --prefix=/usr ${myconf} || die "configure failed"

}

src_compile() {

    cd "${S}/build" || die "cannot find build dir"
    make || die "failed compiling ${PN}"

}

src_install() {

    cd "${S}/build" || die "cannot find build dir"
    make DESTDIR="${D}" install || die "failed installing ${PN}"

    if use doc;then
    make doc || die "failed making docs"
    cd "${S}"
    dodoc AUTHORS CREDITS NEWS THANKS || die "failed installing docs"
    dodoc build/doc/articles/txt/* || die "failed installing docs"
    fi

}

pkg_preinst() {

    gnome2_icon_savelist

}

pkg_postinst() {

    gnome2_icon_cache_update

}

pkg_postrm() {

    gnome2_icon_cache_update

}

handbrake-9999 собрался без проблем!

Собственно сам GTK+ интерфейс

HandBrake

Comments