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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Sep 2 22:42:18 2012 UTC (5 years, 8 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha123-r1/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/mkvtoolnix/mkvtoolnix-5.6.0.ebuild,v 1.4 2012/06/04 00:21:14 ssuominen Exp $
4
5 EAPI=4
6 inherit eutils toolchain-funcs versionator wxwidgets
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.bz2"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="bzip2 debug lzo pch qt4 wxwidgets"
16
17 RDEPEND="
18 >=dev-libs/libebml-1.2.2
19 >=media-libs/libmatroska-1.3.0
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 bzip2? ( app-arch/bzip2 )
29 lzo? ( dev-libs/lzo )
30 qt4? (
31 x11-libs/qt-core:4
32 x11-libs/qt-gui:4
33 )
34 wxwidgets? ( x11-libs/wxGTK:2.8[X] )
35 "
36 DEPEND="${RDEPEND}
37 dev-ruby/rake
38 virtual/pkgconfig
39 "
40
41 pkg_setup() {
42 # http://bugs.gentoo.org/419257
43 local ver=4.6
44 local msg="You need at least GCC ${ver}.x for C++11 range-based 'for' and nullptr support."
45 if ! version_is_at_least ${ver} $(gcc-version); then
46 eerror ${msg}
47 die ${msg}
48 fi
49 }
50
51 src_prepare() {
52 epatch "${FILESDIR}"/${P}-system-pugixml.patch
53 }
54
55 src_configure() {
56 local myconf
57
58 use pch || myconf+=" --disable-precompiled-headers"
59
60 if use wxwidgets ; then
61 WX_GTK_VER="2.8"
62 need-wxwidgets unicode
63 myconf+=" --with-wx-config=${WX_CONFIG}"
64 fi
65
66 econf \
67 $(use_enable bzip2 bz2) \
68 $(use_enable debug) \
69 $(use_enable lzo) \
70 $(use_enable qt4 qt) \
71 $(use_enable wxwidgets) \
72 ${myconf} \
73 --docdir=/usr/share/doc/${PF} \
74 --with-boost-regex=boost_regex \
75 --with-boost-filesystem=boost_filesystem \
76 --with-boost-system=boost_system \
77 --without-curl
78 }
79
80 src_compile() {
81 rake || die "rake failed"
82 }
83
84 src_install() {
85 # Don't run strip while installing stuff, leave to portage the job.
86 DESTDIR="${D}" rake install || die
87
88 dodoc AUTHORS ChangeLog README TODO
89 doman doc/man/*.1
90
91 docompress -x /usr/share/doc/${PF}/guide
92 }

  ViewVC Help
Powered by ViewVC 1.1.20