From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2B94C13829C for ; Wed, 8 Jun 2016 10:36:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 106D225402C; Wed, 8 Jun 2016 10:36:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 881BE25402C for ; Wed, 8 Jun 2016 10:36:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id E650B340D01 for ; Wed, 8 Jun 2016 10:36:54 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7FA4AAA2 for ; Wed, 8 Jun 2016 10:36:51 +0000 (UTC) From: "Alexis Ballier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alexis Ballier" Message-ID: <1465382205.b4872d87bbe452ab24f0fc3cdc280521c757b8b2.aballier@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/mkvtoolnix/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-video/mkvtoolnix/Manifest media-video/mkvtoolnix/mkvtoolnix-9.2.0.ebuild X-VCS-Directories: media-video/mkvtoolnix/ X-VCS-Committer: aballier X-VCS-Committer-Name: Alexis Ballier X-VCS-Revision: b4872d87bbe452ab24f0fc3cdc280521c757b8b2 X-VCS-Branch: master Date: Wed, 8 Jun 2016 10:36:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6e56bdfe-59f3-43a7-b2d0-7da9d9c35ac5 X-Archives-Hash: 8362e8b94f3c7e6d96f07740ec38649a commit: b4872d87bbe452ab24f0fc3cdc280521c757b8b2 Author: Alexis Ballier gentoo org> AuthorDate: Wed Jun 8 10:36:41 2016 +0000 Commit: Alexis Ballier gentoo org> CommitDate: Wed Jun 8 10:36:45 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4872d87 media-video/mkvtoolnix: bump to 9.2.0 Package-Manager: portage-2.3.0_rc1 media-video/mkvtoolnix/Manifest | 1 + media-video/mkvtoolnix/mkvtoolnix-9.2.0.ebuild | 115 +++++++++++++++++++++++++ 2 files changed, 116 insertions(+) diff --git a/media-video/mkvtoolnix/Manifest b/media-video/mkvtoolnix/Manifest index 71582fc..97ccd36 100644 --- a/media-video/mkvtoolnix/Manifest +++ b/media-video/mkvtoolnix/Manifest @@ -5,3 +5,4 @@ DIST mkvtoolnix-8.8.0.tar.xz 3544868 SHA256 912de8148d21f38c9100de61dfcac0041d11 DIST mkvtoolnix-8.9.0.tar.xz 3605716 SHA256 3208b2849339a8617b12922749c9325eb87c3755a943f88731605e3729aaa0d4 SHA512 fcc965ce7457fcab7f7ff58e3c4d2fdb2ff330585480a8cd15eb59dba37b188e76f4ca04e668a379ac3b6453c5c465b75ac38b91123807b96f4328da92aeda4c WHIRLPOOL ee85a942d229183e017cc4b63d6cf1783cdf763b96f023b8d62ddf8c43c29bc6795059a07b9064da926851b185ce7f1d2885dbbff5b837e704144667873ef19f DIST mkvtoolnix-9.0.1.tar.xz 3682892 SHA256 292504633d714c42f73f08474137e462827f6d8d570292005bbaebb8fee8e52e SHA512 49870d0d3051655394e43bf868ed590403bd2b3ddf3862988754f8482e879aaded13b045f5aa1b6e1468847c7ce575932cae8419788f011b6092f1e152c34908 WHIRLPOOL 87cda90557c7c9df77e73dd7675f056cef0e777592b523d42a05e7b3b87086535237e88b58ca662d112754c0102042a2a034128ab571bdbe6e33bf447814b560 DIST mkvtoolnix-9.1.0.tar.xz 3702480 SHA256 1471370251ff8414f3c02a0e21ec41c644f9d54bf4f1f5253d0cd9406281ce60 SHA512 6a5cb169ddce95e8e525df23c2e84075ec8cdcbcd72755214c40744856378f02b98b313a01b2456f6eeac83d2ba5125aee42c63104113e7c736e7b48442c591e WHIRLPOOL 74d5c7ed36ad702b758ed4a3037915a4034c1528b084d07d47d76ee4e68ec2824c4297568c3beb215895ddb67d7aec1fd03c417c231804bfbbf6f2ac645cfe6d +DIST mkvtoolnix-9.2.0.tar.xz 3706756 SHA256 2c2a6b905acfede9eebfe58652b06c88501169d3b9a3c70af78774733ded8b01 SHA512 f1ccf7520c76576b60f1b88a1b85b93dbaa828946f8510db2a963b63037bdf3f4d810592e928c7e6ed6c1bb48b7872516cbad7db36534e30609d8327cd39ea59 WHIRLPOOL 7f5c29279db55f014e73465c37070770fa0d5593c357ecaf99e4519a68b24990f1badba30afbfe31c4b6f0945eae6ca82c7de2906e320a3b267cc1a156e63a16 diff --git a/media-video/mkvtoolnix/mkvtoolnix-9.2.0.ebuild b/media-video/mkvtoolnix/mkvtoolnix-9.2.0.ebuild new file mode 100644 index 0000000..1a140d8 --- /dev/null +++ b/media-video/mkvtoolnix/mkvtoolnix-9.2.0.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +inherit eutils multilib toolchain-funcs versionator multiprocessing autotools + +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/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux" +IUSE="curl debug pch test qt5" + +ruby_atom() { + local ruby_slot=${1/ruby/} + ruby_slot="${ruby_slot:0:1}.${ruby_slot:1:2}" + echo "dev-lang/ruby:${ruby_slot}" +} + +# hacks to avoid using the ruby eclasses since this requires something similar +# to the python-any-r1 eclass for ruby which currently doesn't exist +RUBY_IMPLS=( ruby23 ruby22 ruby21 ruby20 ) +RUBY_BDEPS="$(for ruby_impl in "${RUBY_IMPLS[@]}"; do + echo "( $(ruby_atom ${ruby_impl}) virtual/rubygems[ruby_targets_${ruby_impl}] )"; done)" + +RDEPEND=" + >=dev-libs/boost-1.46.0:= + >=dev-libs/libebml-1.3.3:= + dev-libs/pugixml + media-libs/flac + >=media-libs/libmatroska-1.4.4:= + media-libs/libogg + media-libs/libvorbis + sys-apps/file + sys-libs/zlib + qt5? ( + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + ) +" +DEPEND="${RDEPEND} + || ( ${RUBY_BDEPS} ) + sys-devel/gettext + virtual/pkgconfig + test? ( dev-cpp/gtest ) +" + +pkg_pretend() { + # https://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() { + local ruby_impl + for ruby_impl in "${RUBY_IMPLS[@]}"; do + if has_version "$(ruby_atom ${ruby_impl})"; then + export RUBY=${ruby_impl} + break + fi + done + [[ -z ${RUBY} ]] && die "No available ruby implementations to build with" + + epatch_user + eautoreconf +} + +src_configure() { + local myconf + + if use qt5 ; then + # ac/qt5.m4 finds default Qt version set by qtchooser, bug #532600 + myconf+=( + --with-moc=/usr/$(get_libdir)/qt5/bin/moc + --with-uic=/usr/$(get_libdir)/qt5/bin/uic + --with-rcc=/usr/$(get_libdir)/qt5/bin/rcc + ) + fi + + econf \ + $(use_enable debug) \ + $(use_enable qt5 qt) \ + $(use_with curl) \ + $(usex pch "" --disable-precompiled-headers) \ + "${myconf[@]}" \ + --disable-optimization \ + --docdir="${EPREFIX}"/usr/share/doc/${PF} \ + --with-boost="${EPREFIX}"/usr \ + --with-boost-libdir="${EPREFIX}"/usr/$(get_libdir) +} + +src_compile() { + "${RUBY}" ./drake V=1 -j$(makeopts_jobs) || die +} + +src_test() { + "${RUBY}" ./drake V=1 -j$(makeopts_jobs) tests:unit || die + "${RUBY}" ./drake V=1 -j$(makeopts_jobs) tests:run_unit || die +} + +src_install() { + DESTDIR="${D}" "${RUBY}" ./drake -j$(makeopts_jobs) install || die + + dodoc AUTHORS ChangeLog README.md + doman doc/man/*.1 +}