Gentoo Archives: gentoo-commits

From: "Markos Chandras (hwoarang)" <hwoarang@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/avidemux: ChangeLog avidemux-2.5.3-r2.ebuild
Date: Sun, 01 Aug 2010 11:03:27
Message-Id: 20100801102752.A0FD92CF37@corvid.gentoo.org
1 hwoarang 10/08/01 10:27:52
2
3 Modified: ChangeLog
4 Added: avidemux-2.5.3-r2.ebuild
5 Log:
6 Patch to fix pulseaudio automagic dependency. Bug #327555. Thanks to Mike Gilbert <floppymaster@×××××.com>
7 (Portage version: 2.2_rc67/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.168 media-video/avidemux/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/ChangeLog?rev=1.168&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/ChangeLog?rev=1.168&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/ChangeLog?r1=1.167&r2=1.168
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v
19 retrieving revision 1.167
20 retrieving revision 1.168
21 diff -u -r1.167 -r1.168
22 --- ChangeLog 18 Jun 2010 22:23:43 -0000 1.167
23 +++ ChangeLog 1 Aug 2010 10:27:52 -0000 1.168
24 @@ -1,6 +1,13 @@
25 # ChangeLog for media-video/avidemux
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.167 2010/06/18 22:23:43 hwoarang Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.168 2010/08/01 10:27:52 hwoarang Exp $
29 +
30 +*avidemux-2.5.3-r2 (01 Aug 2010)
31 +
32 + 01 Aug 2010; Markos Chandras <hwoarang@g.o>
33 + +avidemux-2.5.3-r2.ebuild, +files/avidemux-pulseaudiosimple.patch:
34 + Apply patch to fix pulseaudio automagic dependency. Fixes bug #327555.
35 + Thanks to Mike Gilbert <floppymaster@×××××.com> for the patch
36
37 18 Jun 2010; Markos Chandras <hwoarang@g.o> avidemux-2.5.2.ebuild:
38 Apply gcc-4.5 patch to previous ebuild
39
40
41
42 1.1 media-video/avidemux/avidemux-2.5.3-r2.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/avidemux-2.5.3-r2.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/avidemux/avidemux-2.5.3-r2.ebuild?rev=1.1&content-type=text/plain
46
47 Index: avidemux-2.5.3-r2.ebuild
48 ===================================================================
49 # Copyright 1999-2010 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/avidemux-2.5.3-r2.ebuild,v 1.1 2010/08/01 10:27:52 hwoarang Exp $
52
53 EAPI="2"
54
55 inherit cmake-utils flag-o-matic
56
57 MY_P=${PN}_${PV}
58
59 DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks"
60 HOMEPAGE="http://fixounet.free.fr/avidemux"
61 SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="2"
65 KEYWORDS="~amd64 ~ppc ~x86"
66 IUSE="+aac +aften +alsa amr +dts esd jack libsamplerate +mp3 nls oss
67 pulseaudio +sdl +truetype +vorbis +x264 +xv +xvid gtk +qt4"
68
69 RDEPEND="dev-libs/libxml2
70 aac? ( media-libs/faac
71 media-libs/faad2 )
72 aften? ( media-libs/aften )
73 alsa? ( media-libs/alsa-lib )
74 amr? ( media-libs/opencore-amr )
75 dts? ( media-libs/libdca )
76 mp3? ( media-sound/lame )
77 esd? ( media-sound/esound )
78 jack? ( media-sound/jack-audio-connection-kit )
79 libsamplerate? ( media-libs/libsamplerate )
80 oss? ( media-libs/alsa-oss )
81 pulseaudio? ( media-sound/pulseaudio )
82 sdl? ( media-libs/libsdl )
83 truetype? ( media-libs/freetype:2
84 media-libs/fontconfig )
85 vorbis? ( media-libs/libvorbis )
86 x264? ( media-libs/x264 )
87 xv? ( x11-libs/libXv )
88 xvid? ( media-libs/xvid )
89 gtk? ( x11-libs/gtk+:2 )
90 qt4? ( x11-libs/qt-gui:4 )"
91 DEPEND="${RDEPEND}
92 nls? ( sys-devel/gettext )
93 dev-util/pkgconfig
94 dev-util/cmake"
95
96 S=${WORKDIR}/${MY_P}
97
98 AVIDEMUX_LANGS="bg ca cs de el es fr it ja pt_BR ru sr sr@latin tr zh_TW"
99 for L in ${AVIDEMUX_LANGS}; do
100 IUSE="${IUSE} linguas_${L}"
101 done
102
103 PATCHES=(
104 "${FILESDIR}/${PV}_field_asm_fix.diff"
105 "${FILESDIR}/${P}-build-plugins-fix.patch"
106 #bug 327555. Pulseaudio automagic dependency
107 "${FILESDIR}/${PN}-pulseaudiosimple.patch"
108 )
109
110 src_prepare() {
111 base_src_prepare
112
113 local po_files=
114 local qt_ts_files=
115 local avidemux_ts_files=
116 for lingua in ${LINGUAS}; do
117 if has ${lingua} ${AVIDEMUX_LANGS}; then
118 if [[ -e ${S}/po/${lingua}.po ]]; then
119 po_files="${po_files} \${po_subdir}/${lingua}.po"
120 fi
121 if [[ -e ${S}/po/qt_${lingua}.ts ]]; then
122 qt_ts_files="${qt_ts_files} \${ts_subdir}/qt_${lingua}.ts"
123 fi
124 if [[ -e ${S}/po/${PN}_${lingua}.ts ]]; then
125 avidemux_ts_files="${avidemux_ts_files} \${ts_subdir}/${PN}_${lingua}.ts"
126 fi
127 fi
128 done
129
130 sed -i -e "s!FILE(GLOB po_files .*)!SET(po_files ${po_files})!" \
131 "${S}/cmake/Po.cmake" || die "sed failed"
132 sed -i -e "s!FILE(GLOB.*qt.*)!SET(ts_files ${qt_ts_files})!" \
133 -e "s!FILE(GLOB.*avidemux.*)!SET(ts_files ${avidemux_ts_files})!" \
134 "${S}/cmake/Ts.cmake" || die "sed failed"
135 #fix exec command wrt bug #316599 and #291453
136 sed -i "/Exec/s:\[\$e\]::" ${PN}2-gtk.desktop
137 }
138
139 src_configure() {
140 ### Add lax vector typing for PowerPC
141 if use ppc || use ppc64; then
142 append-cflags "-flax-vector-conversions"
143 fi
144
145 mycmakeargs="${mycmakeargs}
146 -DAVIDEMUX_SOURCE_DIR='${S}'
147 -DAVIDEMUX_INSTALL_PREFIX='${S}_build'
148 -DAVIDEMUX_CORECONFIG_DIR='${S}_build/config'"
149
150 # CMakeLists.txt
151 use gtk || mycmakeargs="${mycmakeargs} -DGTK=0"
152 use qt4 || mycmakeargs="${mycmakeargs} -DQT4=0"
153
154 # cmake/admCheckMiscLibs.cmake
155 use nls || mycmakeargs="${mycmakeargs} -DGETTEXT=0"
156 use sdl || mycmakeargs="${mycmakeargs} -DSDL=0"
157 use xv || mycmakeargs="${mycmakeargs} -DXVIDEO=0"
158
159 # cmake/admCheckAudioDeviceLibs.cmake
160 use alsa || mycmakeargs="${mycmakeargs} -DALSA=0"
161 use esd || mycmakeargs="${mycmakeargs} -DESD=0"
162 use jack || mycmakeargs="${mycmakeargs} -DJACK=0"
163 use oss || mycmakeargs="${mycmakeargs} -DOSS=0"
164 use pulseaudio || mycmakeargs="${mycmakeargs} -DPULSEAUDIOSIMPLE=0"
165
166 # cmake/admCheckAudioEncoderLibs.cmake
167 use aften || mycmakeargs="${mycmakeargs} -DAFTEN=0"
168 use mp3 || mycmakeargs="${mycmakeargs} -DLAME=0"
169 use aac || mycmakeargs="${mycmakeargs} -DFAAC=0"
170 use vorbis || mycmakeargs="${mycmakeargs} -DVORBIS=0"
171
172 # plugins/ADM_audioDecoders
173 use aac || mycmakeargs="${mycmakeargs} -DFAAD=0"
174 use dts || mycmakeargs="${mycmakeargs} -DLIBDCA=0"
175
176 # opencore
177 use amr || mycmakeargs="${mycmakeargs} -DOPENCORE_AMRNB=0 -DOPENCORE_AMRWB=0"
178
179 # plugins/ADM_videoFilters
180 use truetype || mycmakeargs="${mycmakeargs} -DFREETYPE2=0 -DFONTCONFIG=0"
181
182 # plugins/ADM_videoEncoder
183 use xvid || mycmakeargs="${mycmakeargs} -DXVID=0"
184 use x264 || mycmakeargs="${mycmakeargs} -DX264=0"
185
186 cmake-utils_src_configure
187 }
188
189 src_compile() {
190 # first build the application
191 cmake-utils_src_compile
192 # and then go on with plugins
193 emake -C "${CMAKE_BUILD_DIR}/plugins" || die "building plugins failed"
194 }
195
196 src_install() {
197 # install the application
198 cmake-utils_src_install
199 # install plugins
200 emake -C "${CMAKE_BUILD_DIR}/plugins" DESTDIR="${D}" install \
201 || die "installing plugins failed"
202
203 dodoc AUTHORS || die "dodoc failed"
204 newicon ${PN}_icon.png ${PN}.png || die "installing icon failed"
205
206 if use qt4; then
207 sed -i "s/\(${PN}2_\)gtk/\1qt4/" ${PN}2.desktop || die "sed failed"
208 domenu ${PN}2.desktop || die "installing desktop file failed"
209 fi
210
211 if use gtk; then
212 domenu ${PN}2-gtk.desktop || die "installing desktop file failed"
213 fi
214 }