Browse files

Added a patched smplayer ebuild

  • Loading branch information...
1 parent a22f3db commit 6ed4e0ab89c4ed5c0f319afd2801f9570b80ecb5 @gbin committed Sep 7, 2012
View
30 media-video/smplayer2/ChangeLog
@@ -0,0 +1,30 @@
+# ChangeLog for media-video/smplayer2
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer2/ChangeLog,v 1.3 2012/06/17 05:48:42 yngwin Exp $
+
+*smplayer2-0.7.1_p20120301-r1 (07 Sep 2012)
+
+ 07 Sep 2012;
+ +smplayer2-0.7.1_p20120301-r1.ebuild:
+ Patch for the compilation breakage with gcc 4.7 see https://github.com/lachs0r/SMPlayer2/issues/37
+
+ 17 Jun 2012; Ben de Groot <yngwin@gentoo.org>
+ smplayer2-0.7.0_pre20111120.ebuild, smplayer2-0.7.1_p20120301.ebuild,
+ smplayer2-9999.ebuild:
+ Use the new global libass useflag (bug #328245)
+
+
+
+*smplayer2-0.7.1_p20120301 (24 Mar 2012)
+
+ 24 Mar 2012; Markos Chandras <hwoarang@gentoo.org>
+ +smplayer2-0.7.1_p20120301.ebuild:
+ New snapshot. Bug #409453. Nikoli <nikoli@lavabit.com>
+
+*smplayer2-9999 (01 Dec 2011)
+*smplayer2-0.7.0_pre20111120 (01 Dec 2011)
+
+ 01 Dec 2011; Maxim Koltsov <maksbotan@gentoo.org>
+ +smplayer2-0.7.0_pre20111120.ebuild, +smplayer2-9999.ebuild, +metadata.xml:
+ Added smplayer2, bug 391191. Thanks to Nikoli
+
View
5 media-video/smplayer2/Manifest
@@ -0,0 +1,5 @@
+AUX prid64-fix.patch 1351 SHA256 b954417f7bab78c4303546776a248a910a2d26198aa961cf03558e82a1343d1b SHA512 1b9e8f517ab5f116f2b977acb204ff1a0da3f59a894830e4659d50ece822cf62e73e30074b22487da6dfa121e07a4435fa9cfb8e6b48507582fee84de54ce3a9 WHIRLPOOL e81ed919e9933bfa9931972004c7452a731adc930b10658bb1a64fe566bf8b0e617233a53bdce162a06e9172ca647d26a5f80a2ce70f4f475742fde03634125d
+DIST smplayer2-0.7.1_p20120301.tar.xz 1039036 SHA256 fb1b09f62f6f06e3544cbc64444bb5ea9484a3a973d445949f95fd3695686dbe SHA512 c1a3f00895144fdd0c2ba419ada2329bd4e5aaa20c50a13b90bd70df4a1c80193ff9706e29a25d5934d2453b5d3476dd32ce4cc0f8679fb1e1ec9a512add3735 WHIRLPOOL fcba691681cf889fe69fcb7a9e43c82957d75d7dcde65bcd4b3029663dc24605b6d466749981d89008931f732389648ae47cc623e14df748ea8b4aaaf90f615c
+EBUILD smplayer2-0.7.1_p20120301-r1.ebuild 1338 SHA256 c075c86ff72c8df977e51c3e08ff16b19bd881ac2604c22e70acaab46778d1cc SHA512 ed2a9cf3136b32843c6f7456ebeb75272ea87ba38348e9db84595a434c79ac13248c6fa607aa1c554731462a602e2eaf3236eade0de1205edda2a514d32097a3 WHIRLPOOL 711a2d15a0a8f72ffe40774106242bb35543b2a043c238ba5939aefd739b139e52548f4d3c88868346906f95bff89abdf0222164586b0025e79df0814bdefdbf
+MISC ChangeLog 854 SHA256 1bc25e6ff77374d407fdd6f4eef403afdc09caa000a9e485eb975720cf9d7823 SHA512 826025996093b11801eb2cbac32ba8bf973f284b04e9ccf536b94614e632ac1f3b6690c30866fe6afb3a5d1fcbe7709d8350b28656f74beb5723428ecc07903d WHIRLPOOL 8d6dd38183fb0b2dc78e250038d8cd4b890a515cfa3a7a170e515b470a7cac43c37b33e1d8b8e39cc3cbd635fc226cc2f8c7a27ee6b404b6aee7d007b3339d11
+MISC metadata.xml 450 SHA256 71db0f73a5c68b0c249a1ae3c3bc12e31bf6ad51af8451706b0327c5d515e7c7 SHA512 3b25ad488f4dc4eb94732c0f7c6a44ad9bdcf11da40a41a61d213d7b825f87f5e3ffab8079a7dc0c220e98e1bea76e91344160222a2e1b361cfe31e248aaebc9 WHIRLPOOL 0d6e84c81632f338296421b778d7be4cb7bf61c3f9a0e95abbfa114737b3c0816b52f8c1ed9271a914d7b10bc4e5e443d7c6cec1aa3bee6375cd2bcc3d86688e
View
25 media-video/smplayer2/files/prid64-fix.patch
@@ -0,0 +1,25 @@
+diff --git a/src/mplayerprocess.cpp b/src/mplayerprocess.cpp
+index 3060b48..0821e72 100644
+--- a/src/mplayerprocess.cpp
++++ b/src/mplayerprocess.cpp
+@@ -513,7 +513,7 @@ void MplayerProcess::parseLine(QByteArray ba)
+ if (rx_mkvchapters_timestamp.indexIn(line) > -1) {
+ int id = rx_mkvchapters_timestamp.cap(1).toInt();
+ int64_t timestamp = rx_mkvchapters_timestamp.cap(2).toLongLong();
+- qDebug("MplayerProcess::parseLine: mkv chapters: ID %d, START %"PRId64, id, timestamp);
++ qDebug("MplayerProcess::parseLine: mkv chapters: ID %d, START %" PRId64, id, timestamp);
+
+ if (!md.chapters_timestamp.contains(id))
+ md.chapters_timestamp.insert(id, timestamp);
+diff --git a/src/myprocess.cpp b/src/myprocess.cpp
+index e365a9f..4b68080 100644
+--- a/src/myprocess.cpp
++++ b/src/myprocess.cpp
+@@ -172,7 +172,7 @@ void MyProcess::procFinished()
+ qDebug("MyProcess::procFinished");
+
+ #if !USE_TEMP_FILE
+- qDebug("MyProcess::procFinished: Bytes available: %"PRId64, (int64_t)bytesAvailable());
++ qDebug("MyProcess::procFinished: Bytes available: %" PRId64, (int64_t)bytesAvailable());
+
+ if (bytesAvailable() > 0) readStdOut();
View
16 media-video/smplayer2/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>nikoli@lavabit.com</email>
+ <name>Nikoli</name>
+ </maintainer>
+ <maintainer>
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+ </maintainer>
+ <use>
+ <flag name="download-subs">Enable subtitle downloader (requires QuaZip)</flag>
+ </use>
+</pkgmetadata>
View
53 media-video/smplayer2/smplayer2-0.7.1_p20120301-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer2/smplayer2-0.7.1_p20120301.ebuild,v 1.2 2012/06/17 05:48:42 yngwin Exp $
+
+EAPI="4"
+LANGS="bg ca cs da de en_US es et eu fi fr gl hu it ja ka ko ku lt mk nl pl pt pt_BR sk sr sv tr zh_CN zh_TW"
+LANGSLONG="ar_SY el_GR ro_RO ru_RU sl_SI uk_UA vi_VN"
+
+inherit cmake-utils
+
+DESCRIPTION="Qt4 GUI front-end for mplayer2"
+HOMEPAGE="https://github.com/lachs0r/SMPlayer2"
+SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~x86"
+IUSE="debug +download-subs"
+for x in ${LANGS}; do
+ IUSE="${IUSE} linguas_${x}"
+done
+for x in ${LANGSLONG}; do
+ IUSE="${IUSE} linguas_${x%_*}"
+done
+
+DEPEND="
+ x11-libs/qt-gui:4
+ download-subs? ( dev-libs/quazip )
+"
+RDEPEND="${DEPEND}
+ media-video/mplayer2[libass,png]
+"
+src_prepare() {
+ epatch "${FILESDIR}/prid64-fix.patch"
+}
+
+src_configure() {
+ # linguas
+ local langs x
+ for x in ${LANGS}; do
+ use linguas_${x} && langs+=" ${x}"
+ done
+ for x in ${LANGSLONG}; do
+ use linguas_${x%_*} && langs+=" ${x}"
+ done
+
+ local mycmakeargs=(
+ -DLINGUAS="${langs}"
+ "$(cmake-utils_use debug DEBUG_OUTPUT)"
+ "$(cmake-utils_use download-subs ENABLE_DOWNLOAD_SUBS)"
+ )
+ cmake-utils_src_configure
+}

0 comments on commit 6ed4e0a

Please sign in to comment.