summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2012-03-18 20:21:36 +0000
committerDavide Pesavento <pesa@gentoo.org>2012-03-18 20:21:36 +0000
commitf7925bf4c8bd2fca4f645ab3ef021f1579a4f52a (patch)
treecca06c2ea7d97cc03c4a725a23448232d9eaa59f /media-video/avidemux
parentReadd dropped locales: ca_ES, cs_CZ, eu_ES, fa_IR, fr_FR, ro_RO (diff)
downloadgentoo-2-f7925bf4c8bd2fca4f645ab3ef021f1579a4f52a.tar.gz
gentoo-2-f7925bf4c8bd2fca4f645ab3ef021f1579a4f52a.tar.bz2
gentoo-2-f7925bf4c8bd2fca4f645ab3ef021f1579a4f52a.zip
Use system copy of dev-lang/spidermonkey, remove obsolete dts USE flag, add vpx USE flag, add missing deps, general ebuild cleanup.
(Portage version: 2.2.0_alpha91/cvs/Linux x86_64)
Diffstat (limited to 'media-video/avidemux')
-rw-r--r--media-video/avidemux/ChangeLog9
-rw-r--r--media-video/avidemux/avidemux-2.5.6-r1.ebuild172
-rw-r--r--media-video/avidemux/metadata.xml15
3 files changed, 188 insertions, 8 deletions
diff --git a/media-video/avidemux/ChangeLog b/media-video/avidemux/ChangeLog
index 84b6537f2741..12f4ecfa05a8 100644
--- a/media-video/avidemux/ChangeLog
+++ b/media-video/avidemux/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-video/avidemux
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.190 2012/03/18 13:57:59 ssuominen Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.191 2012/03/18 20:21:36 pesa Exp $
+
+*avidemux-2.5.6-r1 (18 Mar 2012)
+
+ 18 Mar 2012; Davide Pesavento <pesa@gentoo.org> +avidemux-2.5.6-r1.ebuild,
+ metadata.xml:
+ Use system copy of dev-lang/spidermonkey, remove obsolete dts USE flag, add
+ vpx USE flag, add missing deps, general ebuild cleanup.
18 Mar 2012; Samuli Suominen <ssuominen@gentoo.org> avidemux-2.5.4-r2.ebuild,
avidemux-2.5.5.ebuild, avidemux-2.5.6.ebuild:
diff --git a/media-video/avidemux/avidemux-2.5.6-r1.ebuild b/media-video/avidemux/avidemux-2.5.6-r1.ebuild
new file mode 100644
index 000000000000..7f4e2d12d31f
--- /dev/null
+++ b/media-video/avidemux/avidemux-2.5.6-r1.ebuild
@@ -0,0 +1,172 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/avidemux-2.5.6-r1.ebuild,v 1.1 2012/03/18 20:21:36 pesa Exp $
+
+EAPI=4
+
+inherit cmake-utils eutils flag-o-matic
+
+MY_P=${PN}_${PV}
+
+DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks"
+HOMEPAGE="http://fixounet.free.fr/avidemux"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="2"
+KEYWORDS="~amd64 ~x86"
+IUSE="aac aften alsa amr gtk jack +mp3 nls opengl oss pulseaudio
+ +qt4 sdl +truetype vorbis vpx +x264 +xv +xvid"
+
+RDEPEND="
+ dev-lang/spidermonkey
+ dev-libs/libxml2
+ sys-libs/zlib
+ aac? (
+ media-libs/faac
+ media-libs/faad2
+ )
+ aften? ( media-libs/aften[cxx] )
+ alsa? ( media-libs/alsa-lib )
+ amr? ( media-libs/opencore-amr )
+ gtk? ( x11-libs/gtk+:2 )
+ jack? (
+ media-libs/libsamplerate
+ media-sound/jack-audio-connection-kit
+ )
+ mp3? ( media-sound/lame )
+ pulseaudio? ( media-sound/pulseaudio )
+ qt4? (
+ >=x11-libs/qt-gui-4.6:4
+ opengl? (
+ virtual/opengl
+ >=x11-libs/qt-opengl-4.6:4
+ )
+ )
+ sdl? ( media-libs/libsdl )
+ truetype? (
+ media-libs/freetype:2
+ media-libs/fontconfig
+ )
+ vorbis? ( media-libs/libvorbis )
+ vpx? ( media-libs/libvpx )
+ x264? ( media-libs/x264 )
+ xv? (
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXv
+ )
+ xvid? ( media-libs/xvid )
+"
+DEPEND="${RDEPEND}
+ dev-lang/yasm
+ dev-util/pkgconfig
+ nls? ( sys-devel/gettext )
+"
+
+S=${WORKDIR}/${MY_P}
+BUILD_S=${WORKDIR}/${P}_build
+
+AVIDEMUX_LANGS="bg ca cs de el es fr it ja pt_BR ru sr sr@latin tr zh_TW"
+for lang in ${AVIDEMUX_LANGS}; do
+ IUSE+=" linguas_${lang}"
+done
+unset lang
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.5.4-build-plugins-fix.patch"
+)
+
+src_prepare() {
+ base_src_prepare
+
+ local lingua= po_files= qt_ts_files= avidemux_ts_files=
+ for lingua in ${LINGUAS}; do
+ if has ${lingua} ${AVIDEMUX_LANGS}; then
+ if [[ -e ${S}/po/${lingua}.po ]]; then
+ po_files+=" \${po_subdir}/${lingua}.po"
+ fi
+ if [[ -e ${S}/po/qt_${lingua}.ts ]]; then
+ qt_ts_files+=" \${ts_subdir}/qt_${lingua}.ts"
+ fi
+ if [[ -e ${S}/po/${PN}_${lingua}.ts ]]; then
+ avidemux_ts_files+=" \${ts_subdir}/${PN}_${lingua}.ts"
+ fi
+ fi
+ done
+
+ sed -i -e "s!FILE(GLOB po_files .*)!SET(po_files ${po_files})!" \
+ "${S}/cmake/Po.cmake" || die "sed failed"
+ sed -i -e "s!FILE(GLOB.*qt.*)!SET(ts_files ${qt_ts_files})!" \
+ -e "s!FILE(GLOB.*avidemux.*)!SET(ts_files ${avidemux_ts_files})!" \
+ "${S}/cmake/Ts.cmake" || die "sed failed"
+
+ # fix exec command wrt bug #316599 and #291453
+ sed -i -e '/^Exec/ s:\[\$e\]::' avidemux2-gtk.desktop || die
+ sed -i -e '/^Exec/ s:\(avidemux2_\)gtk:\1qt4:' avidemux2.desktop || die
+
+ # don't install Windows-only files
+ sed -i -e '/addons\/avsfilter/d' CMakeLists.txt || die
+}
+
+src_configure() {
+ # Add lax vector typing for PowerPC
+ if use ppc || use ppc64; then
+ append-cflags -flax-vector-conversions
+ fi
+
+ local mycmakeargs=(
+ -DAVIDEMUX_SOURCE_DIR="${S}"
+ -DAVIDEMUX_INSTALL_PREFIX="${BUILD_S}"
+ -DAVIDEMUX_CORECONFIG_DIR="${BUILD_S}/config"
+ -DARTS=OFF
+ -DESD=OFF
+ -DUSE_SYSTEM_SPIDERMONKEY=ON
+ $(cmake-utils_use aac FAAC)
+ $(cmake-utils_use aac FAAD)
+ $(cmake-utils_use aften)
+ $(cmake-utils_use alsa)
+ $(cmake-utils_use amr OPENCORE_AMRNB)
+ $(cmake-utils_use amr OPENCORE_AMRWB)
+ $(cmake-utils_use gtk)
+ $(cmake-utils_use jack)
+ $(cmake-utils_use mp3 LAME)
+ $(cmake-utils_use nls GETTEXT)
+ $(cmake-utils_use_use opengl)
+ $(cmake-utils_use oss)
+ $(cmake-utils_use pulseaudio PULSEAUDIOSIMPLE)
+ $(cmake-utils_use qt4)
+ $(cmake-utils_use sdl)
+ $(cmake-utils_use truetype FREETYPE2)
+ $(cmake-utils_use truetype FONTCONFIG)
+ $(cmake-utils_use vorbis)
+ $(cmake-utils_use vorbis LIBVORBIS)
+ $(cmake-utils_use vpx VPXDEC)
+ $(cmake-utils_use x264)
+ $(cmake-utils_use xv XVIDEO)
+ $(cmake-utils_use xvid)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ # first build the application
+ cmake-utils_src_compile -j1
+
+ # and then go on with plugins
+ emake -C "${CMAKE_BUILD_DIR}/plugins"
+}
+
+src_install() {
+ # install the application
+ cmake-utils_src_install
+
+ # install plugins
+ emake -C "${CMAKE_BUILD_DIR}/plugins" DESTDIR="${D}" install
+
+ dodoc AUTHORS
+ newicon ${PN}_icon.png ${PN}.png
+
+ use gtk && domenu avidemux2-gtk.desktop
+ use qt4 && domenu avidemux2.desktop
+}
diff --git a/media-video/avidemux/metadata.xml b/media-video/avidemux/metadata.xml
index bbc7011f7df2..7f9ae3f7ed27 100644
--- a/media-video/avidemux/metadata.xml
+++ b/media-video/avidemux/metadata.xml
@@ -1,11 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>qt</herd>
- <herd>video</herd>
- <use>
- <flag name='aften'>Enable A/52 (AC-3) audio encoder support</flag>
- <flag name='amr'>Enable Adaptive Multi-Rate format support through
- <pkg>media-libs/opencore-amr</pkg></flag>
- </use>
+<herd>qt</herd>
+<herd>video</herd>
+<use>
+ <flag name="aften">Enable A/52 (AC-3) audio encoder support</flag>
+ <flag name="amr">Enable Adaptive Multi-Rate format support through
+ <pkg>media-libs/opencore-amr</pkg></flag>
+ <flag name="vpx">Enable vp8 codec support using <pkg>media-libs/libvpx</pkg></flag>
+</use>
</pkgmetadata>