summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavide Pesavento <pesa@gentoo.org>2012-04-08 23:01:26 +0000
committerDavide Pesavento <pesa@gentoo.org>2012-04-08 23:01:26 +0000
commit42ecdeddeb63f5e9dbef5901dc58a2ee6f773ad0 (patch)
tree04dee2f20c789f93bc2614c0803f14b2be7aa2d1 /media-video/smplayer
parentmarked x86 per bug 406183 (diff)
downloadgentoo-2-42ecdeddeb63f5e9dbef5901dc58a2ee6f773ad0.tar.gz
gentoo-2-42ecdeddeb63f5e9dbef5901dc58a2ee6f773ad0.tar.bz2
gentoo-2-42ecdeddeb63f5e9dbef5901dc58a2ee6f773ad0.zip
Version bump, bug 411025 by Ben de Groot <yngwin@gmail.com>.
(Portage version: 2.2.0_alpha100/cvs/Linux x86_64)
Diffstat (limited to 'media-video/smplayer')
-rw-r--r--media-video/smplayer/ChangeLog8
-rw-r--r--media-video/smplayer/files/smplayer-0.8.0-quazip.patch90
-rw-r--r--media-video/smplayer/smplayer-0.8.0.ebuild102
3 files changed, 199 insertions, 1 deletions
diff --git a/media-video/smplayer/ChangeLog b/media-video/smplayer/ChangeLog
index 4db19ef456f3..3be7e0f775bf 100644
--- a/media-video/smplayer/ChangeLog
+++ b/media-video/smplayer/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/smplayer
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.108 2012/04/05 09:25:55 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.109 2012/04/08 23:01:26 pesa Exp $
+
+*smplayer-0.8.0 (08 Apr 2012)
+
+ 08 Apr 2012; Davide Pesavento <pesa@gentoo.org>
+ +files/smplayer-0.8.0-quazip.patch, +smplayer-0.8.0.ebuild:
+ Version bump, bug 411025 by Ben de Groot <yngwin@gmail.com>.
05 Apr 2012; Agostino Sarubbo <ago@gentoo.org> smplayer-0.7.1.ebuild:
Stable for amd64, wrt bug #410731
diff --git a/media-video/smplayer/files/smplayer-0.8.0-quazip.patch b/media-video/smplayer/files/smplayer-0.8.0-quazip.patch
new file mode 100644
index 000000000000..18ff7f85da41
--- /dev/null
+++ b/media-video/smplayer/files/smplayer-0.8.0-quazip.patch
@@ -0,0 +1,90 @@
+diff -burN ./smplayer-0.8.0.orig/src/findsubtitles/findsubtitles.pro ./smplayer-0.8.0/src/findsubtitles/findsubtitles.pro
+--- ./smplayer-0.8.0.orig/src/findsubtitles/findsubtitles.pro 2012-03-31 20:46:16.000000000 +0800
++++ ./smplayer-0.8.0/src/findsubtitles/findsubtitles.pro 2012-04-07 15:27:47.114937446 +0800
+@@ -34,31 +34,15 @@
+ DEFINES += NO_SMPLAYER_SUPPORT DOWNLOAD_SUBS
+
+ contains( DEFINES, DOWNLOAD_SUBS ) {
+- INCLUDEPATH += filedownloader quazip
+- DEPENDPATH += filedownloader quazip
++ INCLUDEPATH += filedownloader
++ DEPENDPATH += filedownloader
+
+ HEADERS += filedownloader.h subchooserdialog.h
+ SOURCES += filedownloader.cpp subchooserdialog.cpp
+
+ FORMS += subchooserdialog.ui
+
+- HEADERS += crypt.h \
+- ioapi.h \
+- quazip.h \
+- quazipfile.h \
+- quazipfileinfo.h \
+- quazipnewinfo.h \
+- unzip.h \
+- zip.h
+-
+- SOURCES += ioapi.c \
+- quazip.cpp \
+- quazipfile.cpp \
+- quazipnewinfo.cpp \
+- unzip.c \
+- zip.c
+-
+- LIBS += -lz
++ LIBS += -lquazip -lz
+
+ win32 {
+ INCLUDEPATH += c:\development\zlib-1.2.3
+diff -burN ./smplayer-0.8.0.orig/src/findsubtitles/findsubtitleswindow.cpp ./smplayer-0.8.0/src/findsubtitles/findsubtitleswindow.cpp
+--- ./smplayer-0.8.0.orig/src/findsubtitles/findsubtitleswindow.cpp 2012-04-02 16:55:25.000000000 +0800
++++ ./smplayer-0.8.0/src/findsubtitles/findsubtitleswindow.cpp 2012-04-07 15:25:41.809593788 +0800
+@@ -37,8 +37,8 @@
+ #ifdef DOWNLOAD_SUBS
+ #include "filedownloader.h"
+ #include "subchooserdialog.h"
+-#include "quazip.h"
+-#include "quazipfile.h"
++#include <quazip/quazip.h>
++#include <quazip/quazipfile.h>
+ #include "fixsubs.h"
+ #include <QTemporaryFile>
+ #include <QBuffer>
+diff -burN ./smplayer-0.8.0.orig/src/smplayer.pro ./smplayer-0.8.0/src/smplayer.pro
+--- ./smplayer-0.8.0.orig/src/smplayer.pro 2012-04-02 17:09:38.000000000 +0800
++++ ./smplayer-0.8.0/src/smplayer.pro 2012-04-07 15:22:53.440501860 +0800
+@@ -258,31 +258,15 @@
+
+ # Download subtitles
+ contains( DEFINES, DOWNLOAD_SUBS ) {
+- INCLUDEPATH += findsubtitles/filedownloader findsubtitles/quazip
+- DEPENDPATH += findsubtitles/filedownloader findsubtitles/quazip
++ INCLUDEPATH += findsubtitles/filedownloader
++ DEPENDPATH += findsubtitles/filedownloader
+
+ HEADERS += filedownloader.h subchooserdialog.h fixsubs.h
+ SOURCES += filedownloader.cpp subchooserdialog.cpp fixsubs.cpp
+
+ FORMS += subchooserdialog.ui
+
+- HEADERS += crypt.h \
+- ioapi.h \
+- quazip.h \
+- quazipfile.h \
+- quazipfileinfo.h \
+- quazipnewinfo.h \
+- unzip.h \
+- zip.h
+-
+- SOURCES += ioapi.c \
+- quazip.cpp \
+- quazipfile.cpp \
+- quazipnewinfo.cpp \
+- unzip.c \
+- zip.c
+-
+- LIBS += -lz
++ LIBS += -lquazip -lz
+
+ win32 {
+ INCLUDEPATH += ..\\zlib-1.2.6
diff --git a/media-video/smplayer/smplayer-0.8.0.ebuild b/media-video/smplayer/smplayer-0.8.0.ebuild
new file mode 100644
index 000000000000..f28b43880312
--- /dev/null
+++ b/media-video/smplayer/smplayer-0.8.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/smplayer-0.8.0.ebuild,v 1.1 2012/04/08 23:01:26 pesa Exp $
+
+EAPI=4
+LANGS="bg ca cs da de en_US es et eu fi fr gl hr hu it ja ka ko ku lt mk nl pl
+pt_BR pt sk sr sv tr zh_CN zh_TW"
+LANGSLONG="ar_SY el_GR ro_RO ru_RU sl_SI uk_UA vi_VN"
+
+inherit eutils qt4-r2
+
+MY_PV=${PV##*_p}
+if [[ "${MY_PV}" != "${PV}" ]]; then
+ # svn snapshot
+ MY_PV=r${MY_PV}
+ MY_P=${PN}-${MY_PV}
+ S="${WORKDIR}/${MY_P}"
+ SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
+else
+ # regular upstream release
+ SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+fi
+
+DESCRIPTION="Great Qt4 GUI front-end for mplayer"
+HOMEPAGE="http://smplayer.sourceforge.net/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~x86 ~x86-fbsd"
+IUSE="debug"
+
+DEPEND="x11-libs/qt-gui:4
+ dev-libs/quazip"
+MPLAYER_USE="[ass,png,X]"
+RDEPEND="${DEPEND}
+ || ( media-video/mplayer${MPLAYER_USE} media-video/mplayer2${MPLAYER_USE} )"
+
+src_prepare() {
+ # Unbundle dev-libs/quazip
+ rm -R src/findsubtitles/quazip/ || die
+ epatch "${FILESDIR}"/${PN}-0.8.0-quazip.patch
+
+ # Upstream Makefile sucks
+ sed -i -e "/^PREFIX=/s:/usr/local:/usr:" \
+ -e "/^DOC_PATH=/s:packages/smplayer:${PF}:" \
+ -e '/\.\/get_svn_revision\.sh/,+2c\
+ cd src && $(DEFS) $(MAKE)' \
+ "${S}"/Makefile || die "sed failed"
+
+ # Turn debug message flooding off
+ if ! use debug ; then
+ sed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' \
+ "${S}"/src/smplayer.pro || die "sed failed"
+ fi
+}
+
+src_configure() {
+ cd "${S}"/src
+ echo "#define SVN_REVISION \"SVN-${MY_PV} (Gentoo)\"" > svn_revision.h
+ eqmake4
+}
+
+gen_translation() {
+ ebegin "Generating $1 translation"
+ lrelease ${PN}_${1}.ts
+ eend $? || die "failed to generate $1 translation"
+}
+
+src_compile() {
+ emake
+
+ # Generate translations
+ cd "${S}"/src/translations
+ local lang= nolangs= x=
+ for lang in ${LINGUAS}; do
+ if has ${lang} ${LANGS}; then
+ gen_translation ${lang}
+ continue
+ elif [[ " ${LANGSLONG} " == *" ${lang}_"* ]]; then
+ for x in ${LANGSLONG}; do
+ if [[ "${lang}" == "${x%_*}" ]]; then
+ gen_translation ${x}
+ continue 2
+ fi
+ done
+ fi
+ nolangs="${nolangs} ${lang}"
+ done
+ [[ -n ${nolangs} ]] && ewarn "Sorry, but ${PN} does not support the LINGUAS:" ${nolangs}
+ # install fails when no translation is present (bug 244370)
+ [[ -z $(ls *.qm 2>/dev/null) ]] && gen_translation en_US
+}
+
+src_install() {
+ # remove unneeded copies of GPL
+ rm -f Copying.txt docs/{cs,en,hu,it,ja,pt,ru,zh_CN}/gpl.html || die
+ rm -rf docs/{de,es,nl,ro} || die
+
+ # remove windows-only files
+ rm "${S}"/*.bat || die
+
+ emake DESTDIR="${D}" install
+}