# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit eutils DESCRIPTION="OpenShot Video Editor is a free, open-source, non-linear video editor, based on Python, GTK, and MLT." HOMEPAGE="http://www.openshotvideo.com" # Yes, I'm afraid that's the only way the author supplies the source/deb package # for now. SRC_URI="http://launchpad.net/openshot/build-wizard/create-a-build-wizard/+download/openshot.deb -> openshot-${PV}.deb" RESTRICT="mirror" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="media-video/ffmpeg media-video/x264-encoder media-libs/x264 media-plugins/frei0r-plugins media-libs/mlt" RDEPEND="${DEPEND}" src_unpack() { ar x ${DISTDIR}/openshot-${PV}.deb tar zxf ${WORKDIR}/control.tar.gz tar zxf ${WORKDIR}/data.tar.gz } src_install() { # Install the main exectuable exeinto /usr/local/bin doexe "${WORKDIR}/usr/local/bin/openshot" openshot # Install the desktop link insinto /usr/share/applications newins "${WORKDIR}/usr/share/applications/openshot.desktop" openshot.desktop # Copy over the rest of OpenShot's files dodir /usr/local/share/openshot/main insinto /usr/local/share/openshot/main doins -r ${WORKDIR}/usr/local/share/openshot/main/* # Not really sure what this file does yet, but we'll throw it into the bin # directory as well for now. exeinto /usr/local/bin doexe "${WORKDIR}/postinst" postinst } pkg_postinst() { # Now this is really ugly... but sadly there's no way to avoid it yet. INSTDIR=/usr/local/share/openshot/main chmod +x ${INSTDIR}/install/openshot chmod +x ${INSTDIR}/install/postinst chmod +x ${INSTDIR}/install/postinst.py chmod +x ${INSTDIR}/titles/* chmod +x ${INSTDIR}/windows/About.py chmod +x ${INSTDIR}/windows/MainGTK.py chmod +x ${INSTDIR}/windows/NewProject.py chmod +x ${INSTDIR}/windows/OpenProject.py chmod +x ${INSTDIR}/windows/Titles.py chmod +x ${INSTDIR}/windows/fontselector.py chmod +x ${INSTDIR}/windows/glade/fontselector.glade chmod +x ${INSTDIR}/windows/glade/titles.glade }