Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/makemkv/
Date: Sun, 25 Dec 2016 23:34:54
Message-Id: 1482708811.d9d3d8f5daa2a86e68d710399e16d4b3612d743b.chewi@gentoo
1 commit: d9d3d8f5daa2a86e68d710399e16d4b3612d743b
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 25 23:33:31 2016 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 25 23:33:31 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9d3d8f5
7
8 media-video/makemkv: Version bump to 1.10.4
9
10 My new patches were not included this time but upstream has said they
11 should go in for next time.
12
13 Package-Manager: portage-2.3.3
14
15 media-video/makemkv/Manifest | 2 +
16 media-video/makemkv/makemkv-1.10.4.ebuild | 129 ++++++++++++++++++++++++++++++
17 2 files changed, 131 insertions(+)
18
19 diff --git a/media-video/makemkv/Manifest b/media-video/makemkv/Manifest
20 index e337340..4614dbb 100644
21 --- a/media-video/makemkv/Manifest
22 +++ b/media-video/makemkv/Manifest
23 @@ -1,2 +1,4 @@
24 DIST makemkv-bin-1.10.3.tar.gz 8296526 SHA256 5c860fabd58e5d923c1e0f4c336751a9ba61a7874de320169a3988cda33d6cfb SHA512 93cca2516b51794af87dc997aee98e1fa99f75933e49b9ca4eb1bc3896464f3a2de251ddaa430a751f0233493ecc5948e39daaffe4b5b0d884ce47a38c27647f WHIRLPOOL 978cc0cd2eacdc495a39d5b070c7dfe48f2e88ac8644c39e5025c76b702af211c2420cf4204c3fcb5d0d656e704f3d1341c59f66a337c0701fa15adfaaf6e9dc
25 +DIST makemkv-bin-1.10.4.tar.gz 8315649 SHA256 bc6f66897c09b0b756b352cc02a092c5b3a9547e4c129b3472ae4c605eff94aa SHA512 00482428a6374e37912e0537c1e876b478a5eb9e0a26476b01f74f93c0605ed7aa3547599287211f17dd2d511e5bebf60605e05d0064f501816fdfccd964b98c WHIRLPOOL 29dfa3dcc1f36511bd153ae1c43ca54b6fb2d8cfa8d62960e7605ca460a182d4d1feec05baa9d01dfba5f80734cae4c085b8b9f0ac5d0b0910c58fa766e351f8
26 DIST makemkv-oss-1.10.3.tar.gz 4419732 SHA256 b89069294c27b298d35be86353baf9c3da8d7e18b6bce53d4ad2ee3a46785760 SHA512 f380aaccd930659f80d937699f82bf39a51631fe67161f81adc7a3380d28ecc107c2921d82c42a7995a9eabdbbf78d289384dca09e84855044eef4cea9c2f0c9 WHIRLPOOL 272b25f17ad221dd408f921221390566ec97e6a7e7a1729731ba5d75ff2c097919d46235f1b271db1b2be037053b3c05629690a696fe8e9723f4abe8fe203cd9
27 +DIST makemkv-oss-1.10.4.tar.gz 4421220 SHA256 bacbd6a27ebd67f2e6f6c4356cafb92918d54a8bb15872f694232043039f63c4 SHA512 6a792703ae4ab978ebe7a71e9d9f2c298e230168c2701fd2f7fab724f31a1c83388bae408c253a75504c73b9e25f9fb0ba48d5697cfa1f7ae39df133444983c4 WHIRLPOOL 099f0d5d76ec97e3bf3bfa0a0e1ffceb5c539584ca05f9d204b241960d579f9eaabb8dfc8df2a35feec253fa597d9c97ed28c7cef95928f699a6a74bed146bee
28
29 diff --git a/media-video/makemkv/makemkv-1.10.4.ebuild b/media-video/makemkv/makemkv-1.10.4.ebuild
30 new file mode 100644
31 index 00000000..fd12203
32 --- /dev/null
33 +++ b/media-video/makemkv/makemkv-1.10.4.ebuild
34 @@ -0,0 +1,129 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=6
40 +
41 +inherit eutils gnome2-utils multilib flag-o-matic
42 +
43 +MY_P=makemkv-oss-${PV}
44 +MY_PB=makemkv-bin-${PV}
45 +
46 +DESCRIPTION="Tool for ripping and streaming Blu-ray, HD-DVD and DVD discs"
47 +HOMEPAGE="http://www.makemkv.com/"
48 +SRC_URI="http://www.makemkv.com/download/${MY_P}.tar.gz
49 + http://www.makemkv.com/download/${MY_PB}.tar.gz"
50 +
51 +LICENSE="LGPL-2.1 MPL-1.1 MakeMKV-EULA openssl"
52 +SLOT="0"
53 +KEYWORDS="~amd64 ~x86"
54 +IUSE="libav multilib qt4 qt5"
55 +
56 +QA_PREBUILT="usr/bin/makemkvcon usr/bin/mmdtsdec"
57 +
58 +DEPEND="
59 + sys-libs/glibc[multilib?]
60 + dev-libs/expat
61 + dev-libs/openssl:0
62 + sys-libs/zlib
63 + qt5? (
64 + dev-qt/qtcore:5
65 + dev-qt/qtdbus:5
66 + dev-qt/qtgui:5
67 + dev-qt/qtwidgets:5
68 + )
69 + !qt5? ( qt4? (
70 + dev-qt/qtcore:4
71 + dev-qt/qtdbus:4
72 + dev-qt/qtgui:4
73 + ) )
74 + !libav? ( >=media-video/ffmpeg-1.0.0:0= )
75 + libav? ( >=media-video/libav-0.8.9:0= )
76 +"
77 +RDEPEND="${DEPEND}
78 + net-misc/wget"
79 +
80 +S="${WORKDIR}/makemkv-oss-${PV}"
81 +
82 +src_prepare() {
83 + PATCHES+=( "${FILESDIR}"/${PN}-{makefile,path,sysmacros,flags}.patch )
84 +
85 + # Qt5 always trumps Qt4 if it is available. There are no configure
86 + # options or variables to control this and there is no publicly
87 + # available configure.ac either.
88 + if use qt5; then
89 + PATCHES+=( "${FILESDIR}"/${PN}-qt5.patch )
90 + elif use qt4; then
91 + PATCHES+=( "${FILESDIR}"/${PN}-qt4.patch )
92 + fi
93 +
94 + default
95 +}
96 +
97 +src_configure() {
98 + # See bug #439380.
99 + replace-flags -O* -Os
100 +
101 + local econf_args=()
102 +
103 + if use qt5 || use qt4; then
104 + econf_args+=( '--enable-gui' )
105 + else
106 + econf_args+=( '--disable-gui' )
107 + fi
108 +
109 + econf "${econf_args[@]}"
110 +}
111 +
112 +src_install() {
113 + default
114 +
115 + # add missing symlinks for QA
116 + dosym libdriveio.so.0 /usr/$(get_libdir)/libdriveio.so.0.${PV}
117 + dosym libdriveio.so.0 /usr/$(get_libdir)/libdriveio.so
118 + dosym libmakemkv.so.1 /usr/$(get_libdir)/libmakemkv.so.1.${PV}
119 + dosym libmakemkv.so.1 /usr/$(get_libdir)/libmakemkv.so
120 + dosym libmmbd.so.0 /usr/$(get_libdir)/libmmbd.so
121 + dosym libmmbd.so.0 /usr/$(get_libdir)/libmmbd.so.0.${PV}
122 +
123 + cd "${WORKDIR}"/${MY_PB} || die
124 +
125 + # install prebuilt bins
126 + if use x86; then
127 + dobin bin/i386/{makemkvcon,mmdtsdec}
128 + elif use amd64; then
129 + dobin bin/amd64/makemkvcon
130 + use multilib && dobin bin/i386/mmdtsdec
131 + fi
132 +
133 + # install profiles and locales
134 + insinto /usr/share/MakeMKV
135 + doins src/share/*.{mo.gz,xml}
136 +}
137 +
138 +pkg_preinst() { gnome2_icon_savelist; }
139 +
140 +pkg_postinst() {
141 + gnome2_icon_cache_update
142 +
143 + elog "While MakeMKV is in beta mode, upstream has provided a license"
144 + elog "to use if you do not want to purchase one."
145 + elog ""
146 + elog "See this forum thread for more information, including the key:"
147 + elog "http://www.makemkv.com/forum2/viewtopic.php?f=5&t=1053"
148 + elog ""
149 + elog "Note that beta license may have an expiration date and you will"
150 + elog "need to check for newer licenses/releases. "
151 + elog ""
152 + elog "We previously said to copy default.mmcp.xml to ~/.MakeMKV/. This"
153 + elog "is no longer necessary and you should delete it from there to"
154 + elog "avoid warning messages."
155 + elog ""
156 + elog "MakeMKV can also act as a drop-in replacement for libaacs and"
157 + elog "libbdplus, allowing transparent decryption of a wider range of"
158 + elog "titles under players like VLC and mplayer. To enable this, set"
159 + elog "the following variables when launching the player:"
160 + elog "LIBAACS_PATH=libmmbd LIBBDPLUS_PATH=libmmbd"
161 +}
162 +
163 +pkg_postrm() { gnome2_icon_cache_update; }