diff options
author | Ben de Groot <yngwin@gentoo.org> | 2008-12-30 01:53:34 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2008-12-30 01:53:34 +0000 |
commit | 3763e1df4b6486ac7d378cc9c92313b04b54b018 (patch) | |
tree | f7cc69abd484c702dc2d7d8f62ed6a144abe8137 /media-video/smplayer | |
parent | Version bumped, bug #252771. (diff) | |
download | gentoo-2-3763e1df4b6486ac7d378cc9c92313b04b54b018.tar.gz gentoo-2-3763e1df4b6486ac7d378cc9c92313b04b54b018.tar.bz2 gentoo-2-3763e1df4b6486ac7d378cc9c92313b04b54b018.zip |
Version bump, bug 253033
(Portage version: 2.2_rc20/cvs/Linux 2.6.27-hh7 i686)
Diffstat (limited to 'media-video/smplayer')
-rw-r--r-- | media-video/smplayer/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-0.6.5.1.ebuild | 89 |
2 files changed, 95 insertions, 1 deletions
diff --git a/media-video/smplayer/ChangeLog b/media-video/smplayer/ChangeLog index d6839340a2cd..6c1f4fbcbbd0 100644 --- a/media-video/smplayer/ChangeLog +++ b/media-video/smplayer/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for media-video/smplayer # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.50 2008/12/18 07:44:50 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.51 2008/12/30 01:53:34 yngwin Exp $ + +*smplayer-0.6.5.1 (30 Dec 2008) + + 30 Dec 2008; Ben de Groot <yngwin@gentoo.org> +smplayer-0.6.5.1.ebuild: + Version bump 18 Dec 2008; Ben de Groot <yngwin@gentoo.org> smplayer-0.6.1-r1.ebuild, smplayer-0.6.2-r1.ebuild, -smplayer-0.6.5.ebuild: diff --git a/media-video/smplayer/smplayer-0.6.5.1.ebuild b/media-video/smplayer/smplayer-0.6.5.1.ebuild new file mode 100644 index 000000000000..dcd1ce8c3f3c --- /dev/null +++ b/media-video/smplayer/smplayer-0.6.5.1.ebuild @@ -0,0 +1,89 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/smplayer-0.6.5.1.ebuild,v 1.1 2008/12/30 01:53:34 yngwin Exp $ + +EAPI=2 +inherit eutils qt4 + +DESCRIPTION="Great Qt4 GUI front-end for mplayer" +HOMEPAGE="http://smplayer.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${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 + =x11-libs/qt-4.3* )" +RDEPEND="${DEPEND} + || ( >media-video/mplayer-1.0_rc1[png,srt] + >=media-video/mplayer-1.0_rc2_p28058[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 + +src_prepare() { + # Fix paths in Makefile and allow parallel building + sed -i -e "/^PREFIX=/s:/usr/local:/usr:" \ + -e "/^CONF_PREFIX=/s:\$(PREFIX)::" \ + -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: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 +} |