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