Gentoo Archives: gentoo-commits

From: "Michal Gorny (mgorny)" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/makemkv: makemkv-1.8.13-r1.ebuild ChangeLog
Date: Sun, 01 Feb 2015 23:11:52
Message-Id: 20150201231148.45ED210DAB@oystercatcher.gentoo.org
1 mgorny 15/02/01 23:11:48
2
3 Modified: ChangeLog
4 Added: makemkv-1.8.13-r1.ebuild
5 Log:
6 Introduce USE=libav to control the preferred implementation. Add subslot op to force rebuilds on ABI change.
7
8 (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
9
10 Revision Changes Path
11 1.48 media-video/makemkv/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/makemkv/ChangeLog?rev=1.48&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/makemkv/ChangeLog?rev=1.48&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/makemkv/ChangeLog?r1=1.47&r2=1.48
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/makemkv/ChangeLog,v
20 retrieving revision 1.47
21 retrieving revision 1.48
22 diff -u -r1.47 -r1.48
23 --- ChangeLog 20 Oct 2014 14:39:06 -0000 1.47
24 +++ ChangeLog 1 Feb 2015 23:11:48 -0000 1.48
25 @@ -1,6 +1,12 @@
26 # ChangeLog for media-video/makemkv
27 -# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/makemkv/ChangeLog,v 1.47 2014/10/20 14:39:06 mattm Exp $
29 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/media-video/makemkv/ChangeLog,v 1.48 2015/02/01 23:11:48 mgorny Exp $
31 +
32 +*makemkv-1.8.13-r1 (01 Feb 2015)
33 +
34 + 01 Feb 2015; Michał Górny <mgorny@g.o> +makemkv-1.8.13-r1.ebuild:
35 + Introduce USE=libav to control the preferred implementation. Add subslot op to
36 + force rebuilds on ABI change.
37
38 20 Oct 2014; Matthew Marlowe <mattm@g.o>
39 +files/makemkv-1.8.13-makefile.linux.patch:
40
41
42
43 1.1 media-video/makemkv/makemkv-1.8.13-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/makemkv/makemkv-1.8.13-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/makemkv/makemkv-1.8.13-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: makemkv-1.8.13-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2015 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-video/makemkv/makemkv-1.8.13-r1.ebuild,v 1.1 2015/02/01 23:11:48 mgorny Exp $
53
54 EAPI=5
55 inherit eutils gnome2-utils multilib flag-o-matic
56
57 MY_P=makemkv-oss-${PV}
58 MY_PB=makemkv-bin-${PV}
59
60 DESCRIPTION="Tool for ripping Blu-Ray, HD-DVD and DVD discs and copying content to a Matroska container"
61 HOMEPAGE="http://www.makemkv.com/"
62 SRC_URI="http://www.makemkv.com/download/${MY_P}.tar.gz
63 http://www.makemkv.com/download/${MY_PB}.tar.gz"
64
65 LICENSE="LGPL-2.1 MPL-1.1 MakeMKV-EULA openssl"
66 SLOT="0"
67 KEYWORDS="~amd64 ~x86"
68 IUSE="libav multilib qt4"
69
70 QA_PREBUILT="opt/bin/makemkvcon opt/bin/mmdtsdec"
71
72 RDEPEND="
73 sys-libs/glibc[multilib?]
74 dev-libs/expat
75 dev-libs/openssl:0
76 sys-libs/zlib
77 qt4? (
78 virtual/opengl
79 dev-qt/qtcore:4
80 dev-qt/qtdbus:4
81 dev-qt/qtgui:4
82 )
83 !libav? ( >=media-video/ffmpeg-1.0.0:0= )
84 libav? ( >=media-video/libav-0.8.9:0= )
85 "
86 DEPEND="${RDEPEND}"
87
88 S=${WORKDIR}/makemkv-oss-${PV}
89
90 src_prepare() {
91 epatch "${FILESDIR}"/${P}-makefile.linux.patch
92 }
93
94 src_configure() {
95 replace-flags -O* -Os
96 local args=""
97 use qt4 || args="--disable-gui"
98 if [[ -x ${ECONF_SOURCE:-.}/configure ]] ; then
99 econf $args
100 fi
101 }
102
103 src_compile() {
104 emake GCC="$(tc-getCC) ${CFLAGS} ${LDFLAGS}" || die "Make failed!"
105 }
106
107 src_install() {
108 # install oss package
109 dolib.so out/libdriveio.so.0
110 dolib.so out/libmakemkv.so.1
111 dolib.so out/libmmbd.so.0
112 dosym libdriveio.so.0 /usr/$(get_libdir)/libdriveio.so.0.${PV}
113 dosym libdriveio.so.0 /usr/$(get_libdir)/libdriveio.so
114 dosym libmakemkv.so.1 /usr/$(get_libdir)/libmakemkv.so.1.${PV}
115 dosym libmakemkv.so.1 /usr/$(get_libdir)/libmakemkv.so
116 dosym libmmbd.so.0 /usr/$(get_libdir)/libmmbd.so
117 dosym libmmbd.so.0 /usr/$(get_libdir)/libmmbd.so.0.${PV}
118 into /opt
119
120 if use qt4; then
121 dobin out/makemkv
122
123 local res
124 for res in 16 22 32 64 128; do
125 newicon -s ${res} makemkvgui/share/icons/${res}x${res}/makemkv.png ${PN}.png
126 done
127
128 make_desktop_entry ${PN} MakeMKV ${PN} 'Qt;AudioVideo;Video'
129 fi
130
131 # install bin package
132 pushd "${WORKDIR}"/${MY_PB}/bin >/dev/null
133 if use x86; then
134 dobin i386/{makemkvcon,mmdtsdec}
135 elif use amd64; then
136 dobin amd64/makemkvcon
137 use multilib && dobin i386/mmdtsdec
138 fi
139 popd >/dev/null
140
141 # install license and default profile
142 pushd "${WORKDIR}"/${MY_PB}/src/share >/dev/null
143 insinto /usr/share/MakeMKV
144 doins *.{gz,xml}
145 popd >/dev/null
146 }
147
148 pkg_preinst() { gnome2_icon_savelist; }
149
150 pkg_postinst() {
151 gnome2_icon_cache_update
152
153 elog "While MakeMKV is in beta mode, upstream has provided a license"
154 elog "to use if you do not want to purchase one."
155 elog ""
156 elog "See this forum thread for more information, including the key:"
157 elog "http://www.makemkv.com/forum2/viewtopic.php?f=5&t=1053"
158 elog ""
159 elog "Note that beta license may have an expiration date and you will"
160 elog "need to check for newer licenses/releases. "
161 elog ""
162 elog "If this is a new install, remember to copy the default profile"
163 elog "to the config directory:"
164 elog "cp /usr/share/MakeMKV/default.mmcp.xml ~/.MakeMKV/"
165 }
166
167 pkg_postrm() { gnome2_icon_cache_update; }