makemkv version bump

This commit is contained in:
2018-01-19 22:21:38 -08:00
committed by layman
parent 58f8535903
commit 77bb16dda0
5 changed files with 228 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
AUX makemkv-path.patch 2153 SHA256 daf69f09e936929e78c82ef8efdd6014a3b1bfdf776751f57cc86a8f50888022 SHA512 c7744f92ed7a5f09f0301c454afa32e4fce7251f276129917d2ce602b35f5961e629fa0328213f6e5a8d260b5964db099c44b1e870b209f7bb78712cf52b6e95 WHIRLPOOL baa98199b7735117d756d7458359f4dcc9b12b463d5707d7606fd7676fc157b1868a21e8da803da6c7fc7c577a09ae027fbfc4fd5f2eb0da528dbb545e550289
AUX makemkv-wget.patch 1013 SHA256 8153281145a2299c190e5b3453fa3f76c9451e1eb16006fde459e6665a7bad80 SHA512 09ece751d6765a93ff18e0eb8edbb7c413e1074676bc5c6fbc57bb1b8c2314f66198737c5077ecef18d286d724088d2db6731977885713bc095531281f104e0f WHIRLPOOL 453a619c70b8ef28e0d8ccfb80141109fe129879f7a4e31355d52d059d95a2abfebe74b16b05d14b033b0c63fa28a0f1567d4382c370937c63990d66d22a1b67
DIST makemkv-bin-1.10.10.tar.gz 9119354 SHA256 53f2c9930ecd38af76ac2492bb33ca0efb95077c5daa456c358b8517f5586bb4 SHA512 d070ccabbcfeaab1a72f5f52cb0efa98cbd6c4c1b7d8445971d76a76c89b487b6debf0f1183af13d877e41a2d7e7deaae355fe30194a783b80704395a2a03b8e WHIRLPOOL 1976d35b142550e206fe321112c897dcdd704a3e8a4428a5406a514fffbf41af8bbd607135fd92552fe6208fc4da8dd014e54ee05dcfb9caeac9690754b7a015
DIST makemkv-oss-1.10.10.tar.gz 4572400 SHA256 95f22f6d4fb33fd23b1aced0fbf391ca5cc4d16ec896a0636b01625caac19c7c SHA512 5c73044c7f6a522bd8410cf6454bf38e9829cbcf83a755916242aa242477befb248be8da962b070ec99950dfba7180486fb90c34c86fc62e87485baf9fa99b13 WHIRLPOOL e978d4b09da843961397e3250d1b9d19c6174390541ef4a9ef395747b2f4fc06a619c9751ef5bd2fd115214d192706477980ac2db79fac412e88ea40a4e146e0
EBUILD makemkv-1.10.10.ebuild 2910 SHA256 7a3bf0095f0b62f3e80f215c0720b7a40afd61b340427f4191b66cd8c0c3943d SHA512 9f72258fcce7878938b086613fd31d0197f4b1380d4a02ce5e3ef67356d0f2ade43e8e2066875bed76f8051539c646ccd401b9f292b73a70f7bb69cc0f437a46 WHIRLPOOL e093f3cee709d82f45e10938868552bc05aa51186f80e5ba43180496cd0e96d3ab82be65008753d129b532d92bfe32c0fc97d213dda246a9d317db091dde3316
MISC metadata.xml 1225 SHA256 e9d48724dfacb027750bd1b0aa0dac555d147c302626949d4c8431e416e7faa7 SHA512 b5730528c0efef8dc5d98248d0eaa85625b292e610cb7aa294d87f968fabdd45a6d240e66d7d2a4f0cdfc7642ad11dbaf36417b36b8895b8e50b307202ac1bb9 WHIRLPOOL c76afa77f854636c89f9bd76289c506b67903c1c607bcb25a22ee4a85e7b3eb38ef523569d81c85e5741e60353b30896944672dac0953c64fdc81c01375b1529

View File

@@ -0,0 +1,59 @@
diff -Naur makemkv-oss-1.9.10.orig/libabi/src/httplinux.cpp makemkv-oss-1.9.10/libabi/src/httplinux.cpp
--- makemkv-oss-1.9.10.orig/libabi/src/httplinux.cpp 2016-04-15 21:35:36.000000000 +0100
+++ makemkv-oss-1.9.10/libabi/src/httplinux.cpp 2016-05-08 10:52:42.481501963 +0100
@@ -45,7 +45,7 @@
lurl = (char*)alloca(strlen(Url)+1);
strcpy(lurl,Url);
- strcpy(argv0,"/usr/bin/wget"); argv[0]=argv0;
+ strcpy(argv0,"wget"); argv[0]=argv0;
strcpy(argv1,"-q"); argv[1]=argv1;
strcpy(argv2,"-O"); argv[2]=argv2;
strcpy(argv3,"-"); argv[3]=argv3;
diff -Naur makemkv-oss-1.9.10.orig/makemkvgui/src/api_posix.cpp makemkv-oss-1.9.10/makemkvgui/src/api_posix.cpp
--- makemkv-oss-1.9.10.orig/makemkvgui/src/api_posix.cpp 2016-04-15 21:35:36.000000000 +0100
+++ makemkv-oss-1.9.10/makemkvgui/src/api_posix.cpp 2016-05-08 13:51:48.761885862 +0100
@@ -54,8 +54,6 @@
if (AppName[0]==':')
{
- bool app_found = false;
- const char* const* app_locations = ApGetAppLocations();
const char* p_env = getenv("MAKEMKVCON");
AppName++;
@@ -63,6 +61,13 @@
if (p_env!=NULL)
{
strcpy(app_path,p_env);
+ } else {
+ strcpy(app_path,AppName);
+ }
+ } else {
+ strcpy(app_path,AppName);
+ }
+/*
app_found = true;
} else {
for (size_t i=0;app_locations[i]!=NULL;i++)
@@ -105,7 +110,7 @@
}
strcpy(p,AppName);
}
-
+*/
strcpy(str_guiserver,"guiserver");
strcpy(str_apver,verstr);
diff -Naur makemkv-oss-1.9.10.orig/makemkvgui/src/spawn_posix.cpp makemkv-oss-1.9.10/makemkvgui/src/spawn_posix.cpp
--- makemkv-oss-1.9.10.orig/makemkvgui/src/spawn_posix.cpp 2016-04-15 21:35:36.000000000 +0100
+++ makemkv-oss-1.9.10/makemkvgui/src/spawn_posix.cpp 2016-05-08 10:52:37.137598384 +0100
@@ -70,7 +70,7 @@
}
}
- err = posix_spawn(&pid,argv[0],&spawn_actions,&spawn_attr,argv,envp);
+ err = posix_spawnp(&pid,argv[0],&spawn_actions,&spawn_attr,argv,envp);
posix_spawn_file_actions_destroy(&spawn_actions);
posix_spawnattr_destroy(&spawn_attr);

View File

@@ -0,0 +1,29 @@
https://www.makemkv.com/forum2/viewtopic.php?f=3&t=15885
diff -Naur a/libabi/src/httplinux.cpp b/libabi/src/httplinux.cpp
--- a/libabi/src/httplinux.cpp 2017-03-26 16:33:04.000000000 +0100
+++ b/libabi/src/httplinux.cpp 2017-03-26 20:31:04.630357491 +0100
@@ -29,8 +29,8 @@
int HTTP_Download(const char* Url,const char* Agent,void* Buffer,uint32_t* Size)
{
int pipe_fd[2],err;
- char* argv[10];
- char argv0[16],argv1[4],argv2[4],argv3[4],argv4[4],argv5[4],argv6[4];
+ char* argv[12];
+ char argv0[16],argv1[4],argv2[4],argv3[4],argv4[4],argv5[4],argv6[4],argv8[4],argv9[16];
char *lagent,*lurl;
ssize_t rd;
@@ -53,8 +53,10 @@
strcpy(argv5,"20"); argv[5]=argv5;
strcpy(argv6,"-U"); argv[6]=argv6;
argv[7]=lagent;
- argv[8]=lurl;
- argv[9]=NULL;
+ strcpy(argv8,"-o"); argv[8]=argv8;
+ strcpy(argv9,"/dev/null"); argv[9]=argv9;
+ argv[10]=lurl;
+ argv[11]=NULL;
err = SYS_posix_launch(argv,0,pipe_fd[1],0,SYS_posix_envp());

View File

@@ -0,0 +1,106 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit gnome2-utils flag-o-matic
MY_P=makemkv-oss-${PV}
MY_PB=makemkv-bin-${PV}
DESCRIPTION="Tool for ripping and streaming Blu-ray, HD-DVD and DVD discs"
HOMEPAGE="http://www.makemkv.com/"
SRC_URI="http://www.makemkv.com/download/${MY_P}.tar.gz
http://www.makemkv.com/download/${MY_PB}.tar.gz"
LICENSE="LGPL-2.1 MPL-1.1 MakeMKV-EULA openssl"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="+gui libav multilib"
QA_PREBUILT="usr/bin/makemkvcon usr/bin/mmdtsdec"
DEPEND="
sys-libs/glibc[multilib?]
dev-libs/expat
dev-libs/openssl:0[-bindist(-)]
sys-libs/zlib
gui? (
dev-qt/qtcore:5
dev-qt/qtdbus:5
dev-qt/qtgui:5
dev-qt/qtwidgets:5
)
!libav? ( >=media-video/ffmpeg-1.0.0:0= )
libav? ( >=media-video/libav-0.8.9:0= )
"
RDEPEND="${DEPEND}
net-misc/wget"
S="${WORKDIR}/makemkv-oss-${PV}"
PATCHES=( "${FILESDIR}"/${PN}-{wget,path}.patch )
src_configure() {
# See bug #439380.
replace-flags -O* -Os
econf \
--enable-debug \
--disable-noec \
--disable-qt4 \
$(use_enable gui) \
$(use_enable gui qt5)
}
src_install() {
default
# add missing symlinks for QA
dosym libdriveio.so.0 /usr/$(get_libdir)/libdriveio.so.0.${PV}
dosym libdriveio.so.0 /usr/$(get_libdir)/libdriveio.so
dosym libmakemkv.so.1 /usr/$(get_libdir)/libmakemkv.so.1.${PV}
dosym libmakemkv.so.1 /usr/$(get_libdir)/libmakemkv.so
dosym libmmbd.so.0 /usr/$(get_libdir)/libmmbd.so
dosym libmmbd.so.0 /usr/$(get_libdir)/libmmbd.so.0.${PV}
cd "${WORKDIR}"/${MY_PB} || die
# install prebuilt bins
if use x86; then
dobin bin/i386/{makemkvcon,mmdtsdec}
elif use amd64; then
dobin bin/amd64/makemkvcon
use multilib && dobin bin/i386/mmdtsdec
fi
# install profiles and locales
insinto /usr/share/MakeMKV
doins src/share/*.{mo.gz,xml}
}
pkg_preinst() { gnome2_icon_savelist; }
pkg_postinst() {
gnome2_icon_cache_update
elog "While MakeMKV is in beta mode, upstream has provided a license"
elog "to use if you do not want to purchase one."
elog ""
elog "See this forum thread for more information, including the key:"
elog "http://www.makemkv.com/forum2/viewtopic.php?f=5&t=1053"
elog ""
elog "Note that beta license may have an expiration date and you will"
elog "need to check for newer licenses/releases. "
elog ""
elog "We previously said to copy default.mmcp.xml to ~/.MakeMKV/. This"
elog "is no longer necessary and you should delete it from there to"
elog "avoid warning messages."
elog ""
elog "MakeMKV can also act as a drop-in replacement for libaacs and"
elog "libbdplus, allowing transparent decryption of a wider range of"
elog "titles under players like VLC and mplayer. To enable this, set"
elog "the following variables when launching the player:"
elog "LIBAACS_PATH=libmmbd LIBBDPLUS_PATH=libmmbd"
}
pkg_postrm() { gnome2_icon_cache_update; }

View File

@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>chewi@gentoo.org</email>
<name>James Le Cuirot</name>
</maintainer>
<longdescription>
MakeMKV is your one-click solution to convert video that you own
into free and patents-unencumbered format that can be played
everywhere. MakeMKV is a format converter, otherwise called
transcoder. It converts the video clips from proprietary (and
usually encrypted) disc into a set of MKV files, preserving most
information but not changing it in any way. The MKV format can
store multiple video/audio tracks with all meta-information and
preserve chapters. There are many players that can play MKV
files nearly on all platforms, and there are tools to convert
MKV files to many formats, including DVD and Blu-ray discs.
Additionally MakeMKV can instantly stream decrypted video
without intermediate conversion to wide range of players, so you
may watch Blu-ray and DVD discs with your favorite player on
your favorite OS or on your favorite device.
</longdescription>
<use>
<flag name="gui">Build the Qt5 GUI</flag>
</use>
</pkgmetadata>