/[gentoo-x86]/media-video/mkvtoolnix/mkvtoolnix-7.4.0.ebuild
Gentoo

Contents of /media-video/mkvtoolnix/mkvtoolnix-7.4.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Dec 15 00:28:33 2014 UTC (3 years, 10 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 4AB3E85B4F064CA3)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/mkvtoolnix/mkvtoolnix-7.4.0.ebuild,v 1.1 2014/12/13 05:04:43 radhermit Exp $
4
5 EAPI=5
6 WX_GTK_VER="3.0"
7 inherit eutils multilib toolchain-funcs versionator wxwidgets multiprocessing autotools
8
9 DESCRIPTION="Tools to create, alter, and inspect Matroska files"
10 HOMEPAGE="http://www.bunkus.org/videotools/mkvtoolnix"
11 SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${P}.tar.xz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
16 IUSE="debug pch qt5 wxwidgets"
17
18 ruby_atom() {
19 local ruby_slot=${1/ruby/}
20 ruby_slot="${ruby_slot:0:1}.${ruby_slot:1:2}"
21 echo "dev-lang/ruby:${ruby_slot}"
22 }
23
24 # hacks to avoid using the ruby eclasses since this requires something similar
25 # to the python-any-r1 eclass for ruby which currently doesn't exist
26 RUBY_IMPLS=( ruby19 ruby20 ruby21 )
27 RUBY_BDEPS="$(for ruby_impl in "${RUBY_IMPLS[@]}"; do echo $(ruby_atom ${ruby_impl}); done)"
28
29 RDEPEND="
30 >=dev-libs/libebml-1.3.0:=
31 >=media-libs/libmatroska-1.4.1:=
32 >=dev-libs/boost-1.46.0:=
33 dev-libs/pugixml
34 media-libs/flac
35 media-libs/libogg
36 media-libs/libvorbis
37 sys-apps/file
38 >=sys-devel/gcc-4.6
39 sys-libs/zlib
40 qt5? (
41 dev-qt/qtcore:5
42 dev-qt/qtgui:5
43 )
44 wxwidgets? ( x11-libs/wxGTK:${WX_GTK_VER}[X] )
45 "
46 DEPEND="${RDEPEND}
47 || ( ${RUBY_BDEPS} )
48 sys-devel/gettext
49 virtual/pkgconfig
50 "
51
52 pkg_pretend() {
53 # http://bugs.gentoo.org/419257
54 local ver=4.6
55 local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support."
56 if ! version_is_at_least ${ver} $(gcc-version); then
57 eerror ${msg}
58 die ${msg}
59 fi
60 }
61
62 src_prepare() {
63 local ruby_impl
64 for ruby_impl in "${RUBY_IMPLS[@]}"; do
65 if has_version "$(ruby_atom ${ruby_impl})"; then
66 export RUBY=${ruby_impl}
67 break
68 fi
69 done
70
71 [[ -z ${RUBY} ]] && die "No available ruby implementations to build with"
72
73 epatch "${FILESDIR}"/${PN}-5.8.0-boost-configure.patch
74 eautoreconf
75 }
76
77 src_configure() {
78 local myconf
79
80 if use wxwidgets ; then
81 need-wxwidgets unicode
82 myconf="--with-wx-config=${WX_CONFIG}"
83 fi
84
85 econf \
86 $(use_enable debug) \
87 $(use_enable qt5 qt) \
88 $(use_enable wxwidgets) \
89 $(usex pch "" --disable-precompiled-headers) \
90 ${myconf} \
91 --disable-optimization \
92 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
93 --with-boost="${EPREFIX}"/usr \
94 --with-boost-libdir="${EPREFIX}"/usr/$(get_libdir) \
95 --without-curl
96 }
97
98 src_compile() {
99 "${RUBY}" ./drake V=1 -j$(makeopts_jobs) || die
100 }
101
102 src_install() {
103 DESTDIR="${D}" "${RUBY}" ./drake -j$(makeopts_jobs) install || die
104
105 dodoc AUTHORS ChangeLog README.md TODO
106 doman doc/man/*.1
107
108 use wxwidgets && docompress -x /usr/share/doc/${PF}/guide
109 }

  ViewVC Help
Powered by ViewVC 1.1.20