diff options
Diffstat (limited to 'media-video/smplayer')
-rw-r--r-- | media-video/smplayer/ChangeLog | 9 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-0.6.0.ebuild | 4 | ||||
-rw-r--r-- | media-video/smplayer/smplayer-0.6.1.ebuild | 87 |
3 files changed, 97 insertions, 3 deletions
diff --git a/media-video/smplayer/ChangeLog b/media-video/smplayer/ChangeLog index d231bc8630cc..58ac8572b749 100644 --- a/media-video/smplayer/ChangeLog +++ b/media-video/smplayer/ChangeLog @@ -1,6 +1,13 @@ # 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.20 2008/05/18 23:09:20 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.21 2008/05/28 12:00:58 yngwin Exp $ + +*smplayer-0.6.1 (28 May 2008) + + 28 May 2008; Ben de Groot <yngwin@gentoo.org> smplayer-0.6.0.ebuild, + +smplayer-0.6.1.ebuild: + Version bump to 0.6.1. Inluded new Catalan translation option. Fixed svn + revision in 0.6.0 ebuild. 18 May 2008; Jeroen Roovers <jer@gentoo.org> smplayer-0.6.0_rc4.ebuild: Stable for HPPA. diff --git a/media-video/smplayer/smplayer-0.6.0.ebuild b/media-video/smplayer/smplayer-0.6.0.ebuild index 69c59b751ede..0745ab5e7bac 100644 --- a/media-video/smplayer/smplayer-0.6.0.ebuild +++ b/media-video/smplayer/smplayer-0.6.0.ebuild @@ -1,6 +1,6 @@ # 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.0.ebuild,v 1.1 2008/05/14 15:45:51 yngwin Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/smplayer-0.6.0.ebuild,v 1.2 2008/05/28 12:00:58 yngwin Exp $ EAPI="1" inherit eutils qt4 @@ -30,7 +30,7 @@ done S=${WORKDIR}/${MY_P} src_compile() { - local MY_SVNREV="26450" + local MY_SVNREV="1247" echo "SVN-r${MY_SVNREV}" > svn_revision.txt echo "#define SVN_REVISION \"SVN-r${MY_SVNREV}\"" > src/svn_revision.h diff --git a/media-video/smplayer/smplayer-0.6.1.ebuild b/media-video/smplayer/smplayer-0.6.1.ebuild new file mode 100644 index 000000000000..45e83cdcee3d --- /dev/null +++ b/media-video/smplayer/smplayer-0.6.1.ebuild @@ -0,0 +1,87 @@ +# 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.1.ebuild,v 1.1 2008/05/28 12:00:58 yngwin Exp $ + +EAPI="1" +inherit eutils qt4 + +DESCRIPTION="Great front-end for mplayer written in Qt4" +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="" +DEPEND="|| ( x11-libs/qt-gui:4 + >=x11-libs/qt-4.3:4 )" +RDEPEND="${DEPEND} + >media-video/mplayer-1.0_rc1" + +LANGS="bg ca cs de en_US es eu fi fr hu it ja ka ko mk nl pl pt_BR pt_PT sk sr sv tr zh_CN zh_TW" +NOLONGLANGS="el_GR ro_RO ru_RU uk_UA" +for X in ${LANGS}; do + IUSE="${IUSE} linguas_${X}" +done +for X in ${NOLONGLANGS}; do + IUSE="${IUSE} linguas_${X%_*}" +done + +src_compile() { + local MY_SVNREV="1304" + echo "SVN-r${MY_SVNREV}" > svn_revision.txt + echo "#define SVN_REVISION \"SVN-r${MY_SVNREV}\"" > src/svn_revision.h + + # 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" + + eqmake4 src/${PN}.pro -o src/Makefile + 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 ro ; do + rm -rf docs/$i + done + + emake DESTDIR="${D}" install || die "emake install failed" + prepalldocs +} + +pkg_postinst() { + if ! built_with_use media-video/mplayer png; then + echo + ewarn "SMPlayer needs the media-video/mplayer package built with USE=png." + ewarn "To prevent crashes, please rebuild mplayer with png support, or" + ewarn "alternatively, clear the Folder for storing screenshots field in" + ewarn "the Preferences dialog." + echo + fi +} |