Merge branch 'master' of https://github.com/tkurbad/tkurbad-overlay
This commit is contained in:
commit
177d10f56a
3
media-video/avidemux/Manifest
Normal file
3
media-video/avidemux/Manifest
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
DIST avidemux_2.6.20.tar.gz 20172362 SHA256 03c6cb7fc9eb74688b4fcd5eb654ed7b9c4ffc717a72cc09b08a2d10cdc7ef9f SHA512 d01d0fc24a3004770bd3923c2debc4fa2752eb71df08cfe423746b9c44a2562ca01d82965ed2563b99572a4bed8034b79487199ce330208b51a3b7f87ccf7103 WHIRLPOOL 2e2dc21bed49eeb0cdfefe75fe51f6a84226e7e8e80b063bc0b3d8711a6b91db710611dc0ec06575be69ec8e24f2f9e5b5eb363b9c095267729e85e162a4ce38
|
||||||
|
EBUILD avidemux-2.6.20.ebuild 4452 SHA256 0d8762a20a7f79bb926556042130350cc2d346b06a8571e65d2f53df9c19a08e SHA512 0a85398998910f7a25ce222080744c42e12a9abb546b443bffc303fd10eb113064b04d34fffd904e7e35d09d761214bd7ebf9acb0ab7f54d8f221f3e90fb3cac WHIRLPOOL 36e9fd67dbc183f4c9fad9a7a929b7b1fc66ad21136d68d63242efae9d41a37f81a99ffeaa0202cbdcb5dd22d40cc984fb6ea73f9b7d094c6c9e7cf80f85086d
|
||||||
|
MISC metadata.xml 489 SHA256 cea0a7554482097ce99fec34fb6abb767c09620acf42d23842285d4efb4ae9f3 SHA512 7a1b885e05a9bb6684583dcaefc5853903330bbcfc6b1e07b76cde7405894d94e0f095fcfe18bc33bc24c1bbf260814c9ebb8219397e0e861a2fb5977361bc4d WHIRLPOOL f00dfaf7eeaaa1302955b696309f4d3b75ea64b483b0bca62098cb36a1edd4b49fa40043df1968bc6ca2100a085819e105b183e375575bc7a2c73b57170f68a5
|
166
media-video/avidemux/avidemux-2.6.20.ebuild
Normal file
166
media-video/avidemux/avidemux-2.6.20.ebuild
Normal file
@ -0,0 +1,166 @@
|
|||||||
|
# Copyright 1999-2017 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr"
|
||||||
|
|
||||||
|
inherit cmake-utils l10n xdg-utils
|
||||||
|
|
||||||
|
DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks"
|
||||||
|
HOMEPAGE="http://fixounet.free.fr/${PN}"
|
||||||
|
|
||||||
|
# Multiple licenses because of all the bundled stuff.
|
||||||
|
LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
|
||||||
|
SLOT="2.6"
|
||||||
|
IUSE="debug opengl nls nvenc qt4 qt5 sdl vaapi vdpau xv"
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
~media-libs/avidemux-core-${PV}:${SLOT}[nls?,sdl?,vaapi?,vdpau?,xv?,nvenc?]
|
||||||
|
opengl? ( virtual/opengl:0 )
|
||||||
|
qt4? ( >=dev-qt/qtgui-4.8.3:4 )
|
||||||
|
qt5? ( dev-qt/qtgui:5 )
|
||||||
|
vaapi? ( x11-libs/libva:0 )
|
||||||
|
nvenc? ( amd64? ( media-video/nvidia_video_sdk:0 ) )
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
$DEPEND
|
||||||
|
nls? ( virtual/libintl:0 )
|
||||||
|
"
|
||||||
|
PDEPEND="~media-libs/avidemux-plugins-${PV}:${SLOT}[opengl?,qt4?,qt5?]"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
|
||||||
|
processes="buildCli:avidemux/cli"
|
||||||
|
if use qt4 || use qt5 ; then
|
||||||
|
processes+=" buildQt4:avidemux/qt4"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for process in ${processes} ; do
|
||||||
|
CMAKE_USE_DIR="${S}"/${process#*:} cmake-utils_src_prepare
|
||||||
|
done
|
||||||
|
|
||||||
|
# Fix icon name -> avidemux-2.6.png
|
||||||
|
sed -i -e "/^Icon/ s:${PN}:${PN}-2.6:" ${PN}2.desktop || die "Icon name fix failed."
|
||||||
|
|
||||||
|
# The desktop file is broken. It uses avidemux2 instead of avidemux3
|
||||||
|
# so it will actually launch avidemux-2.5 if it is installed.
|
||||||
|
sed -i -e "/^Exec/ s:${PN}2:${PN}3:" ${PN}2.desktop || die "Desktop file fix failed."
|
||||||
|
sed -i -re '/^Exec/ s:(avidemux3_)gtk:\1qt'$(usex qt5 5 4)':' ${PN}2.desktop || die "Desktop file fix failed."
|
||||||
|
|
||||||
|
# Fix QA warnings that complain a trailing ; is missing and Application is deprecated.
|
||||||
|
sed -i -e 's/Application;AudioVideo/AudioVideo;/g' ${PN}2.desktop || die "Desktop file fix failed."
|
||||||
|
|
||||||
|
# Now rename the desktop file to not collide with 2.5.
|
||||||
|
mv ${PN}2.desktop ${PN}-2.6.desktop || die "Collision rename failed."
|
||||||
|
|
||||||
|
# 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 || die "Couldn't remove \"Build Option\" dialog."
|
||||||
|
}
|
||||||
|
|
||||||
|
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=(
|
||||||
|
-DAVIDEMUX_SOURCE_DIR='${S}'
|
||||||
|
-DGETTEXT="$(usex nls)"
|
||||||
|
-DSDL="$(usex sdl)"
|
||||||
|
-DLIBVA="$(usex vaapi)"
|
||||||
|
-DVDPAU="$(usex vdpau)"
|
||||||
|
-DXVIDEO="$(usex xv)"
|
||||||
|
)
|
||||||
|
|
||||||
|
if use qt5 ; then
|
||||||
|
mycmakeargs+=( -DENABLE_QT5="$( usex qt5 )" )
|
||||||
|
export QT_SELECT=5
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use debug ; then
|
||||||
|
mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 )
|
||||||
|
fi
|
||||||
|
|
||||||
|
for process in ${processes} ; do
|
||||||
|
local build="${WORKDIR}/${P}_build/${process%%:*}"
|
||||||
|
CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${build}" cmake-utils_src_configure
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
for process in ${processes} ; do
|
||||||
|
local build="${WORKDIR}/${P}_build/${process%%:*}"
|
||||||
|
BUILD_DIR="${build}" cmake-utils_src_compile
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
for process in ${processes} ; do
|
||||||
|
local build="${WORKDIR}/${P}_build/${process%%:*}"
|
||||||
|
BUILD_DIR="${build}" cmake-utils_src_test
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
for process in ${processes} ; do
|
||||||
|
local build="${WORKDIR}/${P}_build/${process%%:*}"
|
||||||
|
BUILD_DIR="${build}" cmake-utils_src_install
|
||||||
|
done
|
||||||
|
|
||||||
|
if [[ -f "${ED}"/usr/bin/avidemux3_cli ]] ; then
|
||||||
|
fperms +x /usr/bin/avidemux3_cli
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f "${ED}"/usr/bin/avidemux3_jobs ]] ; then
|
||||||
|
fperms +x /usr/bin/avidemux3_jobs
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd "${S}" || die "Can't enter source folder."
|
||||||
|
newicon ${PN}_icon.png ${PN}-2.6.png
|
||||||
|
|
||||||
|
if [[ -f "${ED}"/usr/bin/avidemux3_qt4 ]] ; then
|
||||||
|
fperms +x /usr/bin/avidemux3_qt4
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f "${ED}"/usr/bin/avidemux3_qt5 ]] ; then
|
||||||
|
fperms +x /usr/bin/avidemux3_qt5
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ -f "${ED}"/usr/bin/avidemux3_jobs_qt5 ]] ; then
|
||||||
|
fperms +x /usr/bin/avidemux3_jobs_qt5
|
||||||
|
fi
|
||||||
|
|
||||||
|
if use qt4 || use qt5 ; then
|
||||||
|
domenu ${PN}-2.6.desktop
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postrm() {
|
||||||
|
xdg_desktop_database_update
|
||||||
|
}
|
14
media-video/avidemux/metadata.xml
Normal file
14
media-video/avidemux/metadata.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>media-video@gentoo.org</email>
|
||||||
|
<name>Gentoo Video project</name>
|
||||||
|
</maintainer>
|
||||||
|
<use>
|
||||||
|
<flag name="nvenc">Adds support for NVIDIA Encoder (NVENC) API for hardware accelerated encoding on NVIDIA cards.</flag>
|
||||||
|
</use>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="sourceforge">avidemux</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user