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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Apr 18 21:06:54 2014 UTC (4 years, 1 month ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

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

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/mkvtoolnix/mkvtoolnix-6.5.0.ebuild,v 1.1 2013/10/20 19:24:41 radhermit Exp $
4
5 EAPI=5
6 inherit eutils multilib toolchain-funcs versionator wxwidgets multiprocessing autotools
7
8 DESCRIPTION="Tools to create, alter, and inspect Matroska files"
9 HOMEPAGE="http://www.bunkus.org/videotools/mkvtoolnix"
10 SRC_URI="http://www.bunkus.org/videotools/mkvtoolnix/sources/${P}.tar.xz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~amd64-linux ~x86-linux"
15 IUSE="debug pch qt4 wxwidgets"
16
17 RDEPEND="
18 >=dev-libs/libebml-1.3.0:=
19 >=media-libs/libmatroska-1.4.1:=
20 >=dev-libs/boost-1.46.0:=
21 dev-libs/pugixml
22 media-libs/flac
23 media-libs/libogg
24 media-libs/libvorbis
25 sys-apps/file
26 >=sys-devel/gcc-4.6
27 sys-libs/zlib
28 qt4? (
29 dev-qt/qtcore:4
30 dev-qt/qtgui:4
31 )
32 wxwidgets? ( x11-libs/wxGTK:2.8[X] )
33 "
34 DEPEND="${RDEPEND}
35 dev-lang/ruby
36 virtual/pkgconfig
37 "
38
39 pkg_pretend() {
40 # http://bugs.gentoo.org/419257
41 local ver=4.6
42 local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support."
43 if ! version_is_at_least ${ver} $(gcc-version); then
44 eerror ${msg}
45 die ${msg}
46 fi
47 }
48
49 src_prepare() {
50 epatch "${FILESDIR}"/${PN}-5.8.0-system-pugixml.patch \
51 "${FILESDIR}"/${PN}-5.8.0-boost-configure.patch
52 eautoreconf
53 }
54
55 src_configure() {
56 local myconf
57
58 if use wxwidgets ; then
59 WX_GTK_VER="2.8"
60 need-wxwidgets unicode
61 myconf="--with-wx-config=${WX_CONFIG}"
62 fi
63
64 econf \
65 $(use_enable debug) \
66 $(use_enable qt4 qt) \
67 $(use_enable wxwidgets) \
68 $(usex pch "" --disable-precompiled-headers) \
69 ${myconf} \
70 --disable-optimization \
71 --docdir="${EPREFIX}"/usr/share/doc/${PF} \
72 --with-boost="${EPREFIX}"/usr \
73 --with-boost-libdir="${EPREFIX}"/usr/$(get_libdir) \
74 --without-curl
75 }
76
77 src_compile() {
78 ./drake V=1 -j$(makeopts_jobs) || die
79 }
80
81 src_install() {
82 DESTDIR="${D}" ./drake -j$(makeopts_jobs) install || die
83
84 dodoc AUTHORS ChangeLog README TODO
85 doman doc/man/*.1
86
87 use wxwidgets && docompress -x /usr/share/doc/${PF}/guide
88 }

  ViewVC Help
Powered by ViewVC 1.1.20