diff options
author | Martin Väth <martin@mvath.de> | 2021-05-04 08:41:30 +0200 |
---|---|---|
committer | Martin Väth <martin@mvath.de> | 2021-05-04 08:41:30 +0200 |
commit | 74656a76316554c942acd3c37cae96dd2517fcd4 (patch) | |
tree | c6e82410daf519b5a1babecd0398fbedaa996284 /media-video | |
parent | sys-apps/less x11-libs/gtk+: Version bumps (diff) | |
download | mv-74656a76316554c942acd3c37cae96dd2517fcd4.tar.gz mv-74656a76316554c942acd3c37cae96dd2517fcd4.tar.bz2 mv-74656a76316554c942acd3c37cae96dd2517fcd4.zip |
ispell freesci ipe libspiro kccmp avidemux: Bumps, gcc-11, fixes
Signed-off-by: Martin Väth <martin@mvath.de>
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/avidemux/Manifest | 3 | ||||
-rw-r--r-- | media-video/avidemux/avidemux-2.7.8.ebuild (renamed from media-video/avidemux/avidemux-2.7.4-r1.ebuild) | 77 |
2 files changed, 33 insertions, 47 deletions
diff --git a/media-video/avidemux/Manifest b/media-video/avidemux/Manifest index 85d78e50..8effcd52 100644 --- a/media-video/avidemux/Manifest +++ b/media-video/avidemux/Manifest @@ -1 +1,2 @@ -DIST avidemux_2.7.4.tar.gz 23946276 SHA512 e6d0a9eb525d82d0bdecb41b50eaa5894134064148a1889e4bba704d512bb53f871f797444668a0601fecf4e0e61a1f1727b1c59d543860bb64c1a294eb9bf42 +DIST avidemux-2.7.8.tar.gz 22080267 SHA512 6cd5527ab34517a07bf73e46d01f15b7ff023ff34ed70ee54f1d7dbfb6cf57364a323b4ecb89bb9aadeb9bc05473aacb40d8c4eecc522840a3c1c4b3a8756d82 +DIST avidemux-i18n-2.7.8.tar.gz 2488165 SHA512 a62b06a3d95577cf805be36f991ccb63d044b7c3633ada65bd5810f0e7d8eb41aa874ef5dd63de4fcacc0be073935bed827b2f0bceba77ab735ac8673c1ad39f diff --git a/media-video/avidemux/avidemux-2.7.4-r1.ebuild b/media-video/avidemux/avidemux-2.7.8.ebuild index 05cd184c..69ed6f3a 100644 --- a/media-video/avidemux/avidemux-2.7.4-r1.ebuild +++ b/media-video/avidemux/avidemux-2.7.8.ebuild @@ -1,27 +1,24 @@ -# Copyright 1999-2019 Gentoo Authors and Martin V\"ath +# Copyright 1999-2021 Gentoo Authors and Martin V\"ath # Distributed under the terms of the GNU General Public License v2 EAPI=7 -if [[ ${PV} == *9999* ]] ; then - MY_P="${P}" - EGIT_REPO_URI="https://github.com/mean00/avidemux2.git" - inherit git-r3 -else - MY_P="${PN}_${PV}" - SRC_URI="mirror://sourceforge/${PN}/${PN}/${PV}/${MY_P}.tar.gz" - KEYWORDS="~amd64 ~x86" -fi -inherit cmake-utils qmake-utils xdg-utils +CMAKE_MAKEFILE_GENERATOR="emake" +inherit cmake desktop flag-o-matic qmake-utils xdg DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks" HOMEPAGE="http://fixounet.free.fr/avidemux" +SRC_URI="https://github.com/mean00/avidemux2/archive/${PV}.tar.gz -> ${P}.tar.gz + https://github.com/mean00/avidemux2_i18n/archive/${PV}.tar.gz -> ${PN}-i18n-${PV}.tar.gz" # Multiple licenses because of all the bundled stuff. LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain" SLOT="2.7" +KEYWORDS="~amd64 ~x86" IUSE="debug nls nvenc opengl qt5 sdl vaapi vdpau xv" +BDEPEND="dev-lang/yasm + qt5? ( dev-qt/linguist-tools:5 )" DEPEND=" ~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,xv?,nvenc?] nvenc? ( amd64? ( media-video/nvidia_video_sdk:0 ) ) @@ -35,23 +32,28 @@ DEPEND=" ) vaapi? ( x11-libs/libva:0= ) " -BDEPEND=" - qt5? ( dev-qt/linguist-tools:5 ) -" RDEPEND="${DEPEND} nls? ( virtual/libintl:0 ) !<media-video/avidemux-${PV} " PDEPEND="~media-libs/avidemux-plugins-${PV}:${SLOT}[opengl?,qt5?]" -S="${WORKDIR}/${MY_P}" +S="${WORKDIR}/avidemux2-${PV}" -src_prepare() { +src_unpack() { default + mv -f -T avidemux2_i18n-${PV} "${S}"/avidemux/qt4/i18n >/dev/null || die +} +src_prepare() { processes="buildCli:avidemux/cli" - if use qt5 ; then - processes+=" buildQt4:avidemux/qt4" + use qt5 && processes+=" buildQt4:avidemux/qt4" + + for process in ${processes} ; do + CMAKE_USE_DIR="${S}"/${process#*:} cmake_src_prepare + done + + if use qt5; then # Fix icon name -> avidemux-2.7 sed -i -e "/^Icon/ s:${PN}\.png:${PN}-${SLOT}:" appImage/${PN}.desktop || \ die "Icon name fix failed." @@ -68,10 +70,6 @@ src_prepare() { mv appImage/${PN}.desktop ${PN}-${SLOT}.desktop || die "Collision rename failed." fi - for process in ${processes} ; do - CMAKE_USE_DIR="${S}"/${process#*:} cmake-utils_src_prepare - done - # Remove "Build Option" dialog because it doesn't reflect # what the GUI can or has been built with. (Bug #463628) sed -i -e '/Build Option/d' avidemux/common/ADM_commonUI/myOwnMenu.h || \ @@ -83,14 +81,13 @@ src_prepare() { } src_configure() { - # Add lax vector typing for PowerPC. - if use ppc || use ppc64 ; then - append-cflags -flax-vector-conversions - fi - # See bug 432322. use x86 && replace-flags -O0 -O1 + # The build relies on an avidemux-core header that uses 'nullptr' + # which is from >=C++11. Let's use the GCC-6 default C++ dialect. + append-cxxflags -std=c++14 + local mycmakeargs=( -DGETTEXT="$(usex nls)" -DSDL="$(usex sdl)" @@ -100,41 +97,37 @@ src_configure() { -DXVIDEO="$(usex xv)" ) - if use qt5 ; then - mycmakeargs+=( + use qt5 && mycmakeargs+=( -DENABLE_QT5="$(usex qt5)" -DLRELEASE_EXECUTABLE="$(qt5_get_bindir)/lrelease" - ) - fi + ) - if use debug ; then - mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 ) - fi + use debug && mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 ) for process in ${processes} ; do local build="${WORKDIR}/${P}_build/${process%%:*}" - CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${build}" cmake-utils_src_configure + CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${build}" cmake_src_configure done } src_compile() { for process in ${processes} ; do local build="${WORKDIR}/${P}_build/${process%%:*}" - BUILD_DIR="${build}" cmake-utils_src_compile + BUILD_DIR="${build}" cmake_src_compile done } src_test() { for process in ${processes} ; do local build="${WORKDIR}/${P}_build/${process%%:*}" - BUILD_DIR="${build}" cmake-utils_src_test + BUILD_DIR="${build}" cmake_src_test done } src_install() { for process in ${processes} ; do local build="${WORKDIR}/${P}_build/${process%%:*}" - BUILD_DIR="${build}" cmake-utils_src_install + BUILD_DIR="${build}" cmake_src_install done if use qt5; then @@ -143,11 +136,3 @@ src_install() { domenu ${PN}-${SLOT}.desktop fi } - -pkg_postinst() { - xdg_desktop_database_update -} - -pkg_postrm() { - xdg_desktop_database_update -} |