Gentoo Archives: gentoo-commits

From: "Ben de Groot (yngwin)" <yngwin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/smplayer: smplayer-0.6.9.ebuild ChangeLog
Date: Wed, 24 Feb 2010 16:39:31
Message-Id: E1NkKGn-0006Zl-HA@stork.gentoo.org
1 yngwin 10/02/24 16:39:29
2
3 Modified: ChangeLog
4 Added: smplayer-0.6.9.ebuild
5 Log:
6 Version bump
7 (Portage version: 2.2_rc62/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.83 media-video/smplayer/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/smplayer/ChangeLog?rev=1.83&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/smplayer/ChangeLog?rev=1.83&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/smplayer/ChangeLog?r1=1.82&r2=1.83
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v
19 retrieving revision 1.82
20 retrieving revision 1.83
21 diff -u -r1.82 -r1.83
22 --- ChangeLog 5 Jan 2010 19:36:41 -0000 1.82
23 +++ ChangeLog 24 Feb 2010 16:39:28 -0000 1.83
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-video/smplayer
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.82 2010/01/05 19:36:41 nixnut Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/ChangeLog,v 1.83 2010/02/24 16:39:28 yngwin Exp $
29 +
30 +*smplayer-0.6.9 (24 Feb 2010)
31 +
32 + 24 Feb 2010; Ben de Groot <yngwin@g.o> +smplayer-0.6.9.ebuild:
33 + Version bump
34
35 05 Jan 2010; nixnut <nixnut@g.o> smplayer-0.6.8.ebuild:
36 ppc stable #291025
37
38
39
40 1.1 media-video/smplayer/smplayer-0.6.9.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/smplayer/smplayer-0.6.9.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/smplayer/smplayer-0.6.9.ebuild?rev=1.1&content-type=text/plain
44
45 Index: smplayer-0.6.9.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-video/smplayer/smplayer-0.6.9.ebuild,v 1.1 2010/02/24 16:39:28 yngwin Exp $
50
51 EAPI="2"
52
53 inherit eutils qt4
54
55 MY_PV=${PV##*_p}
56 if [[ "${MY_PV}" != "${PV}" ]]; then
57 # svn snapshot
58 MY_PV=r${MY_PV}
59 MY_P=${PN}-${MY_PV}
60 S="${WORKDIR}/${MY_P}"
61 SRC_URI="mirror://gentoo/${MY_P}.tar.bz2"
62 else
63 # regular upstream release
64 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
65 fi
66
67 DESCRIPTION="Great Qt4 GUI front-end for mplayer"
68 HOMEPAGE="http://smplayer.sourceforge.net/"
69 LICENSE="GPL-2"
70 SLOT="0"
71 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
72 IUSE="debug"
73
74 DEPEND="x11-libs/qt-gui:4"
75 RDEPEND="${DEPEND}
76 media-video/mplayer[ass,png]"
77
78 LANGS="bg ca cs de en_US es et eu fi fr gl hu it ja ka ko ku mk nl pl pt_BR
79 pt sk sr sv tr zh_CN zh_TW"
80 # langs with long notation in pkg, but no long notation in portage:
81 NOLONGLANGS="ar_SY el_GR ro_RO ru_RU sl_SI uk_UA vi_VN"
82 for X in ${LANGS}; do
83 IUSE="${IUSE} linguas_${X}"
84 done
85 for X in ${NOLONGLANGS}; do
86 IUSE="${IUSE} linguas_${X%_*}"
87 done
88
89 src_prepare() {
90 # Force Ctrl+Q as default quit shortcut
91 epatch "${FILESDIR}/${PN}-0.6.8-quit.patch"
92
93 # Upstream Makefile sucks
94 sed -i -e "/^PREFIX=/s:/usr/local:/usr:" \
95 -e "/^DOC_PATH=/s:packages/smplayer:${PF}:" \
96 -e '/\.\/get_svn_revision\.sh/,+2c\
97 cd src && $(DEFS) $(MAKE)' \
98 "${S}"/Makefile || die "sed failed"
99
100 # Turn debug message flooding off
101 if ! use debug ; then
102 sed -i 's:#\(DEFINES += NO_DEBUG_ON_CONSOLE\):\1:' \
103 "${S}"/src/smplayer.pro || die "sed failed"
104 fi
105 }
106
107 src_configure() {
108 cd "${S}"/src
109 echo "#define SVN_REVISION \"SVN-${MY_PV} (Gentoo)\"" > svn_revision.h
110 eqmake4
111 }
112
113 gen_translation() {
114 ebegin "Generating $1 translation"
115 lrelease ${PN}_${1}.ts
116 eend $? || die "failed to generate $1 translation"
117 }
118
119 src_compile() {
120 emake || die "emake failed"
121
122 # Generate translations
123 cd "${S}"/src/translations
124 local lang= nolangs= x=
125 for lang in ${LINGUAS}; do
126 if has ${lang} ${LANGS}; then
127 gen_translation ${lang}
128 continue
129 elif [[ " ${NOLONGLANGS} " == *" ${lang}_"* ]]; then
130 for x in ${NOLONGLANGS}; do
131 if [[ "${lang}" == "${x%_*}" ]]; then
132 gen_translation ${x}
133 continue 2
134 fi
135 done
136 fi
137 nolangs="${nolangs} ${lang}"
138 done
139 [[ -n ${nolangs} ]] && ewarn "Sorry, but ${PN} does not support the LINGUAS:" ${nolangs}
140 # install fails when no translation is present (bug 244370)
141 [[ -z $(ls *.qm 2>/dev/null) ]] && gen_translation en_US
142 }
143
144 src_install() {
145 # remove unneeded copies of GPL
146 rm -f Copying.txt docs/{cs,en,ja,ru}/gpl.html
147 rm -rf docs/{de,es,nl,ro}
148
149 # remove windows-only files
150 rm "${S}"/*.bat
151
152 emake DESTDIR="${D}" install || die "emake install failed"
153 prepalldocs
154 }