# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="This application can be used to translate a movie from DVD to XviD format." SRC_URI="http://pingwing.xs4all.nl/uploads/pages/DVDRipOMatic/${PN}${PV}.tar.bz2" HOMEPAGE="http://pingwing.xs4all.nl/" RDEPEND=">=kde-base/kdewebdev-3.3 media-video/transcode >=media-video/mplayer-1.0_pre5" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc" src_install() { # We do not want the kommander dialog for installing # Bypassing the dialog and doing the things from the script directly # Shamelessly stolen from the inst.sh file in the DVDRipOMatic package and adjusted for our needs # We need to ensure that KDEDIR is set KDEDIR="/usr/kde/3.3" InstallDir="${KDEDIR}/share/apps/${PN}" ApplicationDir="${KDEDIR}/share/applnk/Applications/" DesktopFile="${D}/$ApplicationDir/${PN}.desktop" mkdir -p "${D}/${InstallDir}" mkdir -p "${D}/${ApplicationDir}" cp "${WORKDIR}/${P}/DVDRipOMatic.kmdr" "${D}/$InstallDir" cp "${WORKDIR}/${P}/DVDScan" "${D}/$InstallDir" cp "${WORKDIR}/${P}/banner.png" "${D}/$InstallDir" echo "[Desktop Entry]" > "$DesktopFile" echo "Name=DVD Rip-O-Matic" >> "$DesktopFile" echo "GenericName=DVD Ripping Wizard" >> "$DesktopFile" echo "Exec=kmdr-executor '$InstallDir/DVDRipOMatic.kmdr'" >> "$DesktopFile" echo "Type=Application" >> "$DesktopFile" echo "Icon=dvd_unmount" >> "$DesktopFile" echo "Categories=Qt;KDE;AudioVideo;" >> "$DesktopFile" } pkg_postinst() { einfo "" einfo "Just run ${PN} from the KMenu->Multimedia-Menu," einfo "by clicking on the kmdr-script in konqueror or with the command" einfo "\"kmdr-executor ${KDEDIR}/share/apps/${PN}/DVDRipOMatic.kmdr\"" einfo "" }