diff options
author | Ben de Groot <yngwin@gentoo.org> | 2008-10-25 12:27:28 +0000 |
---|---|---|
committer | Ben de Groot <yngwin@gentoo.org> | 2008-10-25 12:27:28 +0000 |
commit | 9d7d99a7adc6a468b5abc706b93e55c75a9a507a (patch) | |
tree | d453f98793461e6396ce9d3384420b4ac5599507 /media-video/smplayer | |
parent | Keyworded ~ppc. Closes bug #244176 (diff) | |
download | gentoo-2-9d7d99a7adc6a468b5abc706b93e55c75a9a507a.tar.gz gentoo-2-9d7d99a7adc6a468b5abc706b93e55c75a9a507a.tar.bz2 gentoo-2-9d7d99a7adc6a468b5abc706b93e55c75a9a507a.zip |
Version bump
(Portage version: 2.2_rc12_p11688/cvs/Linux 2.6.26-hh3 i686)
Diffstat (limited to 'media-video/smplayer')
-rw-r--r-- | media-video/smplayer/ChangeLog | 7 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-0.6.4.ebuild | 86 |
2 files changed, 92 insertions, 1 deletions
diff --git a/media-video/smplayer/ChangeLog b/media-video/smplayer/ChangeLog index f60da7183c5e..4fba139fdef4 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.44 2008/10/15 17:06:02 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.45 2008/10/25 12:27:28 yngwin Exp $ + +*smplayer-0.6.4 (25 Oct 2008) + + 25 Oct 2008; Ben de Groot <yngwin@gentoo.org> +smplayer-0.6.4.ebuild: + Version bump 15 Oct 2008; Ben de Groot <yngwin@gentoo.org> smplayer-0.6.3.ebuild: Turn off console message flooding unless USE=debug, as suggested by diff --git a/media-video/smplayer/smplayer-0.6.4.ebuild b/media-video/smplayer/smplayer-0.6.4.ebuild new file mode 100644 index 000000000000..f854136198c2 --- /dev/null +++ b/media-video/smplayer/smplayer-0.6.4.ebuild @@ -0,0 +1,86 @@ +# 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.4.ebuild,v 1.1 2008/10/25 12:27:28 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]" + +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 +} + +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 +} |