# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="1" NEED_KDE="4.2" inherit kde4overlay-base # Install to KDEDIR rather than /usr, to slot properly. PREFIX="${KDEDIR}" DESCRIPTION="k9copy is a DVD backup utility which allows the copy of one or more titles from a DVD9 to a DVD5" HOMEPAGE="http://k9copy.sourceforge.net/" SRC_URI="mirror://sourceforge/k9copy/${PN}-${PV}-Source.tar.gz" LICENSE="GPL-2" SLOT="4.2" KEYWORDS="" IUSE="" S="${WORKDIR}/${PN}-${PV}-Source" DEPEND="media-libs/libdvdread x11-libs/qt-dbus sys-apps/hal >=media-video/ffmpeg-0.4.9_p20080326 media-video/mplayer app-cdr/k3b" RDEPEND="${DEPEND} media-libs/xine-lib media-video/dvdauthor" src_unpack() { kde4overlay-base_src_unpack sed -i -e 's_ffmpeg/avcodec.h_libavcodec/avcodec.h_' "${S}"/CMakeLists.txt || die "Sed failed" sed -i -e 's_ffmpeg/avformat.h_libavformat/avformat.h_' "${S}"/src/import/k9avidecode.h || die "Sed failed" sed -i -e 's_ffmpeg/avcodec.h_libavcodec/avcodec.h_' "${S}"/src/import/k9avidecode.cpp || die "Sed failed" } src_compile() { mycmakeargs="${mycmakeargs} -DCMAKE_INSTALL_PREFIX=${PREFIX}" kde4overlay-base_src_compile } src_install() { kde4overlay-base_src_install }