Skip to content

Commit

Permalink
shotcut: add version 18.11.18
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
  • Loading branch information
denix0 committed Nov 23, 2018
1 parent b166269 commit 34193ec
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
2 changes: 2 additions & 0 deletions media-video/shotcut/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DIST shotcut-18.11.18.tar.gz 4774152 BLAKE2B 3c2be0f39fe0688335a21fd5f0349b034f18ba7142c69ba1d0de79d5cb3beb5dabaaa82ef99dfec82c9e3e6b8999769474941051e177d82a35a4246644641a0b SHA512 13ddc427c769ec7ca38b13f1893d8c4d2fd851c00f3b05c62139ce706fb0789825241a9980953175d0bbc5e1b77cb98146f8d20bd36e28ddabf4e2f19023bb27
EBUILD shotcut-18.11.18.ebuild 1414 BLAKE2B bfc2f9d8249038916448237e39bc8944ce8fa2fb5ad898a61f14c5039442d5245aae3507b4ba9eb2173a154ffae8d1ed0e554f601e1235884d20c3aae7ebc51a SHA512 66450f8221eed6056365fb38c35c5be81245ee7e4de5daba12f845ec6bd28120cd583ca0f72736ee4987d6c34551f067f2c4929b9817614ca56a303d788eae20
67 changes: 67 additions & 0 deletions media-video/shotcut/shotcut-18.11.18.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6

inherit desktop qmake-utils

DESCRIPTION="A free, open source, cross-platform video editor"
HOMEPAGE="https://www.shotcut.org/"
SRC_URI="https://github.com/mltframework/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

KEYWORDS="~amd64 ~x86"
LICENSE="GPL-3"
SLOT="0"
IUSE=""

RDEPEND="
dev-qt/qtcore:5
dev-qt/qtdeclarative:5
dev-qt/qtgraphicaleffects:5
dev-qt/qtgui:5
dev-qt/qtmultimedia:5
dev-qt/qtnetwork:5
dev-qt/qtopengl:5
dev-qt/qtprintsupport:5
dev-qt/qtquickcontrols:5[widgets]
dev-qt/qtsql:5
dev-qt/qtwebkit:5
dev-qt/qtwebsockets:5
dev-qt/qtwidgets:5
dev-qt/qtxml:5
media-libs/ladspa-sdk
media-libs/libsdl:0
media-libs/libvpx
>=media-libs/mlt-6.6.0-r1[ffmpeg,frei0r,qt5,sdl,sdl2(+),xml]

This comment has been minimized.

Copy link
@ddennedy

ddennedy Nov 24, 2018

Shotcut project-provided builds use the git master HEAD of MLT. At the very least, the latest version is v6.10.0 at the time of this comment. I have never used gentoo or ebuild; I only comment from a naive perspective reviewing this file.

This comment has been minimized.

Copy link
@denix0

denix0 Nov 24, 2018

Author Owner

Current version of mlt in Gentoo is 6.10.0

This comment has been minimized.

Copy link
@denix0

denix0 Nov 24, 2018

Author Owner

BTW, this was the adaptation of Gentoo's existing 18.03 ebuild that failed due to QAction bug from mltframework/shotcut#590 with very minimal modifications...

media-libs/x264
media-plugins/frei0r-plugins
media-sound/lame
media-video/ffmpeg
virtual/jack

This comment has been minimized.

Copy link
@ddennedy

ddennedy Nov 24, 2018

I notice that this list is missing WebVfx. Shotcut depends on that for a number of features including the fact that it tries to run qmelt instead of melt for export jobs, and WebVfx provides this simple Qt wrapper for the melt utility in order to properly initialize QApplication on the main thread to make QtOpenGL and WebVfx happy. Shotcut requires git master of this project as well. I can make new releases of both MLT and WebVfx to help if needed.

This comment has been minimized.

Copy link
@ddennedy

ddennedy Nov 24, 2018

Here is a link to the nightly build script we use that shows the dependencies the project-provided builds use. It is not necessary to follow all details of this long script to make a decent build of Shotcut, but it certainly helps to see its dependencies and their versions some of which are git master and others pinned.

Movit and libepoxy are only needed for the now hidden GPU Effects in case you want to omit them. Besides, Shotcut depends on a very out-of-date fork of Movit for technical integration issues between OpenGL, Qt, and Movit. It is safe to omit those dependencies.

This comment has been minimized.

Copy link
@denix0

denix0 Nov 24, 2018

Author Owner

Yes, I just got to the same conclusion that it misses WebVfx. Unfortunately, I don't think Gentoo provides ebuilds for it...

"
DEPEND="${RDEPEND}
dev-qt/linguist-tools:5
"

src_prepare() {
local mylrelease="$(qt5_get_bindir)/lrelease"
"${mylrelease}" "${S}/src/src.pro" || die "preparing locales failed"

default
}

src_configure() {
eqmake5 PREFIX="${EPREFIX}/usr"
}

src_install() {
emake INSTALL_ROOT="${D}" install

newicon "${S}/icons/shotcut-logo-64.png" "${PN}.png"
make_desktop_entry shotcut "Shotcut"

This comment has been minimized.

Copy link
@Zuccace

Zuccace Jan 27, 2019

I think this and line above aren't needed. Looks like doing just "(e)make" does install a .desktop -file. At least now I have two entries on my xfce menu.


insinto "/usr/share/${PN}/translations"
doins share/shotcut/translations/*.qm

einstalldocs
}

3 comments on commit 34193ec

@denix0
Copy link
Owner Author

@denix0 denix0 commented on 34193ec Nov 24, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tried running pre-built binaries - failed due to missing libselinux.so.1

https://www.shotcut.org/notes/linux-dependencies/

@ddennedy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

failed due to missing libselinux.so.1

That lib has been excluded based on the comments from AppImage here:
https://github.com/AppImage/AppImages/blob/master/excludelist#L101

I was not confident in this workaround to create the dummy lib, and to add that complexity to the build script. I will add it to the linux-dependencies page, thanks.

@ddennedy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added libselinux to my app bundle. Thanks for the feedback.
mltframework/shotcut@0de688a

Please sign in to comment.