summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-02-03 10:15:40 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-02-03 10:15:40 +0000
commit0a7e4c4864f816e055a373038045b311b6a3b0d2 (patch)
tree6443038b2a9f9365aa42211964256652fc915d3a /media-video
parentLast rites for dev-java/cryptix* (diff)
downloadgentoo-2-0a7e4c4864f816e055a373038045b311b6a3b0d2.tar.gz
gentoo-2-0a7e4c4864f816e055a373038045b311b6a3b0d2.tar.bz2
gentoo-2-0a7e4c4864f816e055a373038045b311b6a3b0d2.zip
version bump
(Portage version: 2.1.4.1)
Diffstat (limited to 'media-video')
-rw-r--r--media-video/smplayer/ChangeLog8
-rw-r--r--media-video/smplayer/smplayer-0.6.0_rc1.ebuild76
2 files changed, 83 insertions, 1 deletions
diff --git a/media-video/smplayer/ChangeLog b/media-video/smplayer/ChangeLog
index c3d56b4b7b08..cc39edd3dc87 100644
--- a/media-video/smplayer/ChangeLog
+++ b/media-video/smplayer/ChangeLog
@@ -1,6 +1,12 @@
# 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.2 2008/02/01 09:03:04 opfer Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.3 2008/02/03 10:15:40 aballier Exp $
+
+*smplayer-0.6.0_rc1 (03 Feb 2008)
+
+ 03 Feb 2008; Alexis Ballier <aballier@gentoo.org>
+ +smplayer-0.6.0_rc1.ebuild:
+ version bump
01 Feb 2008; Christian Faulhammer <opfer@gentoo.org>
smplayer-0.5.62.ebuild:
diff --git a/media-video/smplayer/smplayer-0.6.0_rc1.ebuild b/media-video/smplayer/smplayer-0.6.0_rc1.ebuild
new file mode 100644
index 000000000000..cbabfb316ad7
--- /dev/null
+++ b/media-video/smplayer/smplayer-0.6.0_rc1.ebuild
@@ -0,0 +1,76 @@
+# 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_rc1.ebuild,v 1.1 2008/02/03 10:15:40 aballier Exp $
+
+inherit eutils qt4
+
+MY_P=${P/_rc/rc}
+
+DESCRIPTION="Great front-end for mplayer written in Qt4"
+HOMEPAGE="http://smplayer.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="$(qt4_min_version 4.2)"
+RDEPEND="${DEPEND}
+ >media-video/mplayer-1.0_rc1"
+
+LANGS="bg cs de en_US es fi fr hu it ja ka ko 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
+
+QT4_BUILT_WITH_USE_CHECK="qt3support"
+
+S=${WORKDIR}/${MY_P}
+
+src_compile() {
+ local MY_SVNREV="UNKNOWN"
+ 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() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ prepalldocs
+}