diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-12-31 22:34:04 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-12-31 22:34:04 +0200 |
commit | d0644431947c183f4f14d791ec65ca644968ffd5 (patch) | |
tree | 1d0cee467f5044a63095b181766fee20042f6a27 /media-video/mkvtoolnix-gui | |
parent | 280f7f00247612b8c9a8f35e5970ef3814511e9c (diff) |
Added media video
Diffstat (limited to 'media-video/mkvtoolnix-gui')
5 files changed, 284 insertions, 2 deletions
diff --git a/media-video/mkvtoolnix-gui/Manifest b/media-video/mkvtoolnix-gui/Manifest index d3bb2b67..6ddd5318 100644 --- a/media-video/mkvtoolnix-gui/Manifest +++ b/media-video/mkvtoolnix-gui/Manifest @@ -1,2 +1,2 @@ -DIST mkvtoolnix-5.0.1.tar.bz2 2155095 RMD160 3c6220a1ff304a18e4d7125d6981966c3e9d368e SHA1 900211d47ba6cbeb4188bb45a492a2b9edf08ed2 SHA256 eecc48d17c0583b6b071e710bfe88ae09439bd99bb90c694a2fed0651bb08f19 -EBUILD mkvtoolnix-gui-5.0.1.ebuild 1944 RMD160 7a51e60d50668cd22f194d4739f5da660941fe4b SHA1 6226427f76d8e98d702bca5f1a273a7d0e4ccb08 SHA256 6688d8731baaf28b953da4adf05b33f70c6f81ac1f6746ad4ebc7008d4a1e290 +DIST mkvtoolnix-5.8.0.tar.bz2 4454971 SHA256 3c9ec7e4c035b82a35850c5ada98a29904edc44a0d1c9b900ed05d56e6274960 SHA512 c24850a8e5c68b06eec006028e7e53c92cff91e748c71bd3799f14e2299e23730043005ce3bd45271848c899df6a44c0f9bc84928c72ba886e8dd894c4b704f3 WHIRLPOOL 6e98c340bb80be55756f3d24272d712e2301f1eb8e314eababa59cf602cab7d27ea6f8ee3aa048db369abec1cfba8c5bdd2b679a0662741cea0c6cfdb5db7886 +DIST mkvtoolnix-6.2.0.tar.xz 5122644 SHA256 567b1cc3e67f1da92df17bf18e956778a6bb3d303e6c27162b933bcb5addc420 SHA512 e41fac3858f60d4725a8666d02c3f0afa3dd1ab83ed0051d95c5ab59b375637aac30775fe52fd650c20ad3f363cdd8fd1a41e3f242b9073a6ee58926d95e208a WHIRLPOOL 48b0a84b21c8e1fc91ff3e2f974532bb19b6bff28afce6aa602d53589e54d975c92aec05f5f850ea180eaceae8e7bb590a16ce49d9107b1f5e698646592240fb diff --git a/media-video/mkvtoolnix-gui/files/mkvtoolnix-5.8.0-boost-configure.patch b/media-video/mkvtoolnix-gui/files/mkvtoolnix-5.8.0-boost-configure.patch new file mode 100644 index 00000000..72b94b96 --- /dev/null +++ b/media-video/mkvtoolnix-gui/files/mkvtoolnix-5.8.0-boost-configure.patch @@ -0,0 +1,63 @@ +diff --git a/ac/ax_boost_filesystem.m4 b/ac/ax_boost_filesystem.m4 +index 97c4ad0..87b94a8 100644 +--- a/ac/ax_boost_filesystem.m4 ++++ b/ac/ax_boost_filesystem.m4 +@@ -81,14 +81,14 @@ AC_DEFUN([AX_BOOST_FILESYSTEM], + AC_DEFINE(HAVE_BOOST_FILESYSTEM,,[define if the Boost::Filesystem library is available]) + BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` + if test "x$ax_boost_user_filesystem_lib" = "x"; then +- for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.{so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's,^lib\(boost_filesystem.*\)\.so.*$,\1,' -e 's,^lib\(boost_filesystem.*\)\.dylib.*$,\1,' -e 's,^lib\(boost_filesystem.*\)\.a.*$,\1,'`; do ++ for libextension in `ls $BOOSTLIBDIR/libboost_filesystem*.so* $BOOSTLIBDIR/libboost_filesystem*.dylib* $BOOSTLIBDIR/libboost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_filesystem.*\)\.\(dylib\|a\|so\).*$;\1;'` ; do + ax_lib=${libextension} + AC_CHECK_LIB($ax_lib, exit, + [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break], + [link_filesystem="no"],[$BOOST_SYSTEM_LIB]) + done + if test "x$link_filesystem" != "xyes"; then +- for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.dll.*$;\1;' -e 's;^\(boost_filesystem.*\)\.a*$;\1;'` ; do ++ for libextension in `ls $BOOSTLIBDIR/boost_filesystem*.dll* $BOOSTLIBDIR/boost_filesystem*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_filesystem.*\)\.\(dll\|a\).*$;\1;'` ; do + ax_lib=${libextension} + AC_CHECK_LIB($ax_lib, exit, + [BOOST_FILESYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_FILESYSTEM_LIB) link_filesystem="yes"; break], +diff --git a/ac/ax_boost_regex.m4 b/ac/ax_boost_regex.m4 +index ffd537f..2cef64f 100644 +--- a/ac/ax_boost_regex.m4 ++++ b/ac/ax_boost_regex.m4 +@@ -75,14 +75,14 @@ AC_DEFUN([AX_BOOST_REGEX], + AC_DEFINE(HAVE_BOOST_REGEX,,[define if the Boost::Regex library is available]) + BOOSTLIBDIR=`echo $BOOST_LDFLAGS | sed -e 's/@<:@^\/@:>@*//'` + if test "x$ax_boost_user_regex_lib" = "x"; then +- for libextension in `ls $BOOSTLIBDIR/libboost_regex*.{so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's,^lib\(boost_regex.*\)\.so.*$,\1,' -e 's,^lib\(boost_regex.*\)\.dylib.*$,\1,' -e 's,^lib\(boost_regex.*\)\.a.*$,\1,'`; do ++ for libextension in `ls $BOOSTLIBDIR/libboost_regex*.so* $BOOSTLIBDIR/libboost_regex*.dylib* $BOOSTLIBDIR/libboost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_regex.*\)\.so.*$;\1;' -e 's;^lib\(boost_regex.*\)\.dylib.*;\1;' -e 's;^lib\(boost_regex.*\)\.a.*$;\1;'` ; do + ax_lib=${libextension} + AC_CHECK_LIB($ax_lib, exit, + [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], + [link_regex="no"]) + done + if test "x$link_regex" != "xyes"; then +- for libextension in `ls $BOOSTLIBDIR/boost_regex*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a*$;\1;'` ; do ++ for libextension in `ls $BOOSTLIBDIR/boost_regex*.dll* $BOOSTLIBDIR/boost_regex*.a* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_regex.*\)\.dll.*$;\1;' -e 's;^\(boost_regex.*\)\.a.*$;\1;'` ; do + ax_lib=${libextension} + AC_CHECK_LIB($ax_lib, exit, + [BOOST_REGEX_LIB="-l$ax_lib"; AC_SUBST(BOOST_REGEX_LIB) link_regex="yes"; break], +diff --git a/ac/ax_boost_system.m4 b/ac/ax_boost_system.m4 +index b0685b9..a71907b 100644 +--- a/ac/ax_boost_system.m4 ++++ b/ac/ax_boost_system.m4 +@@ -83,14 +83,14 @@ AC_DEFUN([AX_BOOST_SYSTEM], + + LDFLAGS_SAVE=$LDFLAGS + if test "x$ax_boost_user_system_lib" = "x"; then +- for libextension in `ls $BOOSTLIBDIR/libboost_system*.{so,dylib,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's,^lib\(boost_system.*\)\.so.*$,\1,' -e 's,^lib\(boost_system.*\)\.dylib.*$,\1,' -e 's,^lib\(boost_system.*\)\.a.*$,\1,'`; do ++ for libextension in `ls $BOOSTLIBDIR/libboost_system*.a* $BOOSTLIBDIR/libboost_system*.so* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^lib\(boost_system.*\)\.\(so\|a\).*$;\1;'` ; do + ax_lib=${libextension} + AC_CHECK_LIB($ax_lib, exit, + [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], + [link_system="no"]) + done + if test "x$link_system" != "xyes"; then +- for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.dll.*$;\1;' -e 's;^\(boost_system.*\)\.a*$;\1;'` ; do ++ for libextension in `ls $BOOSTLIBDIR/boost_system*.{dll,a}* 2>/dev/null | sed 's,.*/,,' | sed -e 's;^\(boost_system.*\)\.\(dll\|a\).*$;\1;'` ; do + ax_lib=${libextension} + AC_CHECK_LIB($ax_lib, exit, + [BOOST_SYSTEM_LIB="-l$ax_lib"; AC_SUBST(BOOST_SYSTEM_LIB) link_system="yes"; break], diff --git a/media-video/mkvtoolnix-gui/files/mkvtoolnix-5.8.0-system-pugixml.patch b/media-video/mkvtoolnix-gui/files/mkvtoolnix-5.8.0-system-pugixml.patch new file mode 100644 index 00000000..a3fcf219 --- /dev/null +++ b/media-video/mkvtoolnix-gui/files/mkvtoolnix-5.8.0-system-pugixml.patch @@ -0,0 +1,31 @@ +--- mkvtoolnix-5.8.0/rake.d/target.rb ++++ mkvtoolnix-5.8.0/rake.d/target.rb +@@ -107,7 +107,6 @@ + when :mtxunittest then "tests/unit/libmtxunittest.a" + when :avi then "lib/avilib-0.6.10/libavi.a" + when :rmff then "lib/librmff/librmff.a" +- when :pugixml then "lib/pugixml/src/libpugixml.a" + when :mpegparser then "src/mpegparser/libmpegparser.a" + when :ebml then c?("EBML_MATROSKA_INTERNAL") ? "lib/libebml/src/libebml.a" : nil + when :matroska then c?("EBML_MATROSKA_INTERNAL") ? "lib/libmatroska/src/libmatroska.a" : nil +--- mkvtoolnix-5.8.0/Rakefile ++++ mkvtoolnix-5.8.0/Rakefile +@@ -55,8 +55,8 @@ + $applications = $programs.collect { |name| "src/#{$application_subdirs[name]}#{name}" + c(:EXEEXT) } + $manpages = $programs.collect { |name| "doc/man/#{name}.1" } + +- $system_includes = "-I. -Ilib -Ilib/avilib-0.6.10 -Ilib/utf8-cpp/source -Ilib/pugixml/src -Isrc" +- $system_libdirs = "-Llib/avilib-0.6.10 -Llib/librmff -Llib/pugixml/src -Lsrc/common" ++ $system_includes = "-I. -Ilib -Ilib/avilib-0.6.10 -Ilib/utf8-cpp/source -Isrc" ++ $system_libdirs = "-Llib/avilib-0.6.10 -Llib/librmff -Lsrc/common" + + $source_directories = %w{lib/avilib-0.6.10 lib/librmff src src/input src/output src/common src/common/chapters src/common/compression src/common/strings src/common/tags src/common/xml + src/mmg src/mmg/header_editor src/mmg/options src/mmg/tabs src/extract src/propedit src/merge src/info src/mpegparser} +@@ -605,7 +605,6 @@ + + [ { :name => 'avi', :dir => 'lib/avilib-0.6.10' }, + { :name => 'rmff', :dir => 'lib/librmff' }, +- { :name => 'pugixml', :dir => 'lib/pugixml/src' }, + { :name => 'mpegparser', :dir => 'src/mpegparser' }, + { :name => 'mtxcommon', :dir => [ 'src/common' ] + %w{chapters compression strings tags xml }.collect { |e| "src/common/#{e}" } }, + { :name => 'mtxinput', :dir => 'src/input' }, diff --git a/media-video/mkvtoolnix-gui/mkvtoolnix-gui-5.8.0.ebuild b/media-video/mkvtoolnix-gui/mkvtoolnix-gui-5.8.0.ebuild new file mode 100644 index 00000000..ac943069 --- /dev/null +++ b/media-video/mkvtoolnix-gui/mkvtoolnix-gui-5.8.0.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 +inherit eutils multilib toolchain-funcs versionator wxwidgets multiprocessing autotools + +MY_P=${P/-gui} +DESCRIPTION="Tools to create, alter, and inspect Matroska files" +HOMEPAGE="http://www.bunkus.org/videotools/mkvtoolnix" +SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="bzip2 debug lzo pch" + +RDEPEND=" + >=dev-libs/libebml-1.2.2 + >=media-libs/libmatroska-1.3.0 + >=dev-libs/boost-1.46.0 + dev-libs/pugixml + media-libs/flac + media-libs/libogg + media-libs/libvorbis + sys-apps/file + >=sys-devel/gcc-4.6 + sys-libs/zlib + bzip2? ( app-arch/bzip2 ) + lzo? ( dev-libs/lzo ) + + dev-qt/qtcore:4 + dev-qt/qtgui:4 + x11-libs/wxGTK:2.8[X] + ~media-video/mkvtoolnix-${PV}[-wxwidgets,-qt4] +" +DEPEND="${RDEPEND} + dev-lang/ruby + virtual/pkgconfig +" + +S=${WORKDIR}/${MY_P} + +pkg_setup() { + # http://bugs.gentoo.org/419257 + local ver=4.6 + local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support." + if ! version_is_at_least ${ver} $(gcc-version); then + eerror ${msg} + die ${msg} + fi +} + +src_prepare() { + sed -i -e '/^Exec/ s/mkvinfo/mkvinfo-gui/' \ + share/desktop/mkvinfo.desktop || die + + epatch "${FILESDIR}"/${MY_P}-system-pugixml.patch \ + "${FILESDIR}"/${MY_P}-boost-configure.patch + eautoreconf +} + +src_configure() { + local myconf + + use pch || myconf+=" --disable-precompiled-headers" + + #if use wxwidgets ; then + WX_GTK_VER="2.8" + need-wxwidgets unicode + myconf+=" --with-wx-config=${WX_CONFIG}" + #fi + + econf \ + $(use_enable bzip2 bz2) \ + $(use_enable debug) \ + $(use_enable lzo) \ + --enable-qt \ + --enable-wxwidgets \ + ${myconf} \ + --disable-optimization \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --with-boost="${EPREFIX}"/usr \ + --with-boost-libdir="${EPREFIX}"/usr/$(get_libdir) \ + --without-curl +} + +src_compile() { + ./drake V=1 -j$(makeopts_jobs) || die +} + +src_install() { + DESTDIR="${D}" ./drake -j$(makeopts_jobs) install || die + + dodoc AUTHORS ChangeLog README TODO + doman doc/man/*.1 + + #use wxwidgets + docompress -x /usr/share/doc/${PF}/guide + + find "${ED}usr/share/man" -not -name 'mmg.*' -type f -exec rm {} + + rm -r "${ED}usr/share/locale" || die + rm "${ED}usr/share/doc/${PF}/"{AUTHORS*,ChangeLog*,README*,TODO*} || die + rm "${ED}"usr/bin/{mkvextract,mkvmerge,mkvpropedit} || die + mv "${ED}usr/bin/mkvinfo" "${ED}usr/bin/mkvinfo-gui" || die +} diff --git a/media-video/mkvtoolnix-gui/mkvtoolnix-gui-6.2.0.ebuild b/media-video/mkvtoolnix-gui/mkvtoolnix-gui-6.2.0.ebuild new file mode 100644 index 00000000..e35b33e4 --- /dev/null +++ b/media-video/mkvtoolnix-gui/mkvtoolnix-gui-6.2.0.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=5 +inherit eutils multilib toolchain-funcs versionator wxwidgets multiprocessing autotools + +MY_P=${P/-gui} +DESCRIPTION="Tools to create, alter, and inspect Matroska files" +HOMEPAGE="http://www.bunkus.org/videotools/mkvtoolnix" +SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${MY_P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="debug pch" + +RDEPEND="~media-video/mkvtoolnix-${PV} + dev-qt/qtcore:4 + dev-qt/qtgui:4 + x11-libs/wxGTK:2.8[X] +" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +pkg_pretend() { + # http://bugs.gentoo.org/419257 + local ver=4.6 + local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support." + if ! version_is_at_least ${ver} $(gcc-version); then + eerror ${msg} + die ${msg} + fi +} + +src_prepare() { + epatch "${FILESDIR}"/${PN/-gui}-5.8.0-system-pugixml.patch \ + "${FILESDIR}"/${PN/-gui}-5.8.0-boost-configure.patch + eautoreconf +} + +src_configure() { + local myconf + + #if use wxwidgets ; then + WX_GTK_VER="2.8" + need-wxwidgets unicode + myconf="--with-wx-config=${WX_CONFIG}" + #fi + + econf \ + $(use_enable debug) \ + $(usex pch "" --disable-precompiled-headers) \ + ${myconf} \ + --enable-qt \ + --enable-wxwidgets \ + --disable-optimization \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --with-boost="${EPREFIX}"/usr \ + --with-boost-libdir="${EPREFIX}"/usr/$(get_libdir) \ + --without-curl +} + +src_compile() { + ./drake V=1 -j$(makeopts_jobs) || die +} + +src_install() { + DESTDIR="${D}" ./drake -j$(makeopts_jobs) install || die + + dodoc AUTHORS ChangeLog README TODO + doman doc/man/*.1 + + docompress -x /usr/share/doc/${PF}/guide + + find "${ED}usr/share/man" -not -name 'mmg.*' -type f -exec rm {} + + rm -r "${ED}usr/share/locale" || die + rm "${ED}usr/share/doc/${PF}/"{AUTHORS*,ChangeLog*,README*,TODO*} || die + rm "${ED}"usr/bin/{mkvextract,mkvmerge,mkvpropedit} || die + mv "${ED}usr/bin/mkvinfo" "${ED}usr/bin/mkvinfo-gui" || die +} |