summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2009-03-13 19:08:20 +0000
committerBen de Groot <yngwin@gentoo.org>2009-03-13 19:08:20 +0000
commit68c3dedbec93859270061b313f660c224a2f291e (patch)
tree83e118c6d5dd1635335c07ad82ccd018857c0850 /media-video
parentstable amd64, bug 262119 (diff)
downloadgentoo-2-68c3dedbec93859270061b313f660c224a2f291e.tar.gz
gentoo-2-68c3dedbec93859270061b313f660c224a2f291e.tar.bz2
gentoo-2-68c3dedbec93859270061b313f660c224a2f291e.zip
Version bump. Again we needed a post-release svn snapshot to work with Qt 4.5.
(Portage version: 2.2_rc24/cvs/Linux x86_64, RepoMan options: --force)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/smplayer/ChangeLog9
-rw-r--r--media-video/smplayer/smplayer-0.6.7_p2872.ebuild85
2 files changed, 93 insertions, 1 deletions
diff --git a/media-video/smplayer/ChangeLog b/media-video/smplayer/ChangeLog
index 4ce0ab5fccc1..a9f8711c1448 100644
--- a/media-video/smplayer/ChangeLog
+++ b/media-video/smplayer/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-video/smplayer
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.65 2009/03/12 15:05:38 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.66 2009/03/13 19:08:20 yngwin Exp $
+
+*smplayer-0.6.7_p2872 (13 Mar 2009)
+
+ 13 Mar 2009; Ben de Groot <yngwin@gentoo.org>
+ +smplayer-0.6.7_p2872.ebuild:
+ Version bump. Again we needed a post-release svn snapshot to work with Qt
+ 4.5.
12 Mar 2009; Brent Baude <ranger@gentoo.org> smplayer-0.6.6.ebuild:
Marking smplayer-0.6.6 ppc64 for bug 257852
diff --git a/media-video/smplayer/smplayer-0.6.7_p2872.ebuild b/media-video/smplayer/smplayer-0.6.7_p2872.ebuild
new file mode 100644
index 000000000000..99a53c5ab844
--- /dev/null
+++ b/media-video/smplayer/smplayer-0.6.7_p2872.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/smplayer-0.6.7_p2872.ebuild,v 1.1 2009/03/13 19:08:20 yngwin Exp $
+
+EAPI=2
+inherit eutils qt4
+
+MY_P=${PN}-r${PV##*p}
+
+DESCRIPTION="Great Qt4 GUI front-end for mplayer"
+HOMEPAGE="http://smplayer.sourceforge.net"
+SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="debug"
+
+DEPEND="x11-libs/qt-gui:4"
+RDEPEND="${DEPEND}
+ media-video/mplayer[ass,png]"
+
+LANGS="bg ca cs de en_US es eu fi fr gl hu it ja ka ko ku mk nl pl pt_BR pt_PT sk sr sv tr zh_CN zh_TW"
+NOLONGLANGS="ar_SY el_GR ro_RO ru_RU sl_SI uk_UA"
+for X in ${LANGS}; do
+ IUSE="${IUSE} linguas_${X}"
+done
+for X in ${NOLONGLANGS}; do
+ IUSE="${IUSE} linguas_${X%_*}"
+done
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ # Turn debug message flooding off
+ if ! use debug ; then
+ sed -i "s:#DEFINES += NO_DEBUG_ON_CONSOLE:DEFINES += NO_DEBUG_ON_CONSOLE:" \
+ "${S}"/src/smplayer.pro || die "sed failed"
+ fi
+}
+
+src_configure() {
+ eqmake4 src/${PN}.pro -o src/Makefile
+}
+
+src_compile() {
+ emake || die "emake failed"
+
+ # Generate translations
+ cd "${S}"/src/translations
+ local LANG=
+ for LANG in ${LINGUAS}; do
+ if has ${LANG} ${LANGS}; then
+ einfo "Generating ${LANG} translation ..."
+ lrelease ${PN}_${LANG}.ts || die "Failed to generate ${LANG} translation!"
+ continue
+ elif [[ " ${NOLONGLANGS} " == *" ${LANG}_"* ]]; then
+ local X=
+ for X in ${NOLONGLANGS}; do
+ if [[ "${LANG}" == "${X%_*}" ]]; then
+ einfo "Generating ${X} translation ..."
+ lrelease ${PN}_${X}.ts || die "Failed to generate ${X} translation!"
+ continue 2
+ fi
+ done
+ fi
+ ewarn "Sorry, but ${PN} does not support the ${LANG} LINGUA."
+ done
+ # install fails when no translation is present (bug 244370)
+ [[ -f *.qm ]] || lrelease ${PN}_en_US.ts
+}
+
+src_install() {
+ # remove unneeded copies of GPL
+ rm Copying.txt docs/en/gpl.html docs/ru/gpl.html
+ for i in de es ja nl ro ; do
+ rm -rf docs/$i
+ done
+
+ # remove windows-only files
+ rm "${S}"/*.bat
+
+ emake DESTDIR="${D}" install || die "emake install failed"
+ prepalldocs
+}