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/avidemux: ChangeLog avidemux-2.5.1_p5359.ebuild
Date: Wed, 30 Sep 2009 18:44:10
Message-Id: E1Mt49o-00058J-JV@stork.gentoo.org
1 yngwin 09/09/30 18:44:08
2
3 Modified: ChangeLog
4 Added: avidemux-2.5.1_p5359.ebuild
5 Log:
6 Adding snapshot from current 2.5 'gruntster' branch, which works with
7 newer x264 (bug 286801). Dropped a few patches which were applied upstream.
8 (Portage version: 2.2_rc42/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.155 media-video/avidemux/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/ChangeLog?rev=1.155&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/ChangeLog?rev=1.155&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/ChangeLog?r1=1.154&r2=1.155
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v
20 retrieving revision 1.154
21 retrieving revision 1.155
22 diff -u -r1.154 -r1.155
23 --- ChangeLog 30 Sep 2009 14:40:11 -0000 1.154
24 +++ ChangeLog 30 Sep 2009 18:44:08 -0000 1.155
25 @@ -1,6 +1,13 @@
26 # ChangeLog for media-video/avidemux
27 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.154 2009/09/30 14:40:11 yngwin Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/ChangeLog,v 1.155 2009/09/30 18:44:08 yngwin Exp $
30 +
31 +*avidemux-2.5.1_p5359 (30 Sep 2009)
32 +
33 + 30 Sep 2009; Ben de Groot <yngwin@g.o>
34 + +avidemux-2.5.1_p5359.ebuild:
35 + Adding snapshot from current 2.5 'gruntster' branch, which works with
36 + newer x264 (bug 286801). Dropped a few patches which were applied upstream.
37
38 *avidemux-2.5.1-r2 (30 Sep 2009)
39
40
41
42
43 1.1 media-video/avidemux/avidemux-2.5.1_p5359.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/avidemux-2.5.1_p5359.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/avidemux/avidemux-2.5.1_p5359.ebuild?rev=1.1&content-type=text/plain
47
48 Index: avidemux-2.5.1_p5359.ebuild
49 ===================================================================
50 # Copyright 1999-2009 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/media-video/avidemux/avidemux-2.5.1_p5359.ebuild,v 1.1 2009/09/30 18:44:08 yngwin Exp $
53
54 EAPI="2"
55
56 inherit cmake-utils
57
58 MY_P=${PN}-2.5-r5359
59
60 DESCRIPTION="Video editor designed for simple cutting, filtering and encoding tasks"
61 HOMEPAGE="http://fixounet.free.fr/avidemux"
62 SRC_URI="mirror://gentoo/${MY_P}.tar.bz2
63 mirror://gentoo/${P%_*}-patches-1.tar.bz2"
64
65 LICENSE="GPL-2"
66 SLOT="2"
67 KEYWORDS="~amd64 ~ppc ~x86"
68 IUSE="+aac +aften +alsa amr +dts esd jack libsamplerate +mp3 nls oss
69 pulseaudio +sdl +truetype +vorbis +x264 +xv +xvid gtk +qt4"
70
71 RDEPEND="dev-libs/libxml2
72 aac? ( media-libs/faac
73 media-libs/faad2 )
74 aften? ( media-libs/aften )
75 alsa? ( media-libs/alsa-lib )
76 amr? ( media-libs/opencore-amr )
77 dts? ( media-libs/libdca )
78 mp3? ( media-sound/lame )
79 esd? ( media-sound/esound )
80 jack? ( media-sound/jack-audio-connection-kit )
81 libsamplerate? ( media-libs/libsamplerate )
82 oss? ( media-libs/alsa-oss )
83 pulseaudio? ( media-sound/pulseaudio )
84 sdl? ( media-libs/libsdl )
85 truetype? ( media-libs/freetype:2
86 media-libs/fontconfig )
87 vorbis? ( media-libs/libvorbis )
88 x264? ( >=media-libs/x264-0.0.20090908 )
89 xv? ( x11-libs/libXv )
90 xvid? ( media-libs/xvid )
91 gtk? ( x11-libs/gtk+:2 )
92 qt4? ( >=x11-libs/qt-gui-4.5.1:4 )"
93 DEPEND="${RDEPEND}
94 nls? ( sys-devel/gettext )
95 dev-util/pkgconfig
96 >=dev-util/cmake-2.6.4"
97
98 S=${WORKDIR}/${MY_P}
99
100 AVIDEMUX_LANGS="bg ca cs de el es fr it ja pt_BR ru sr sr@latin tr zh_TW"
101 for L in ${AVIDEMUX_LANGS}; do
102 IUSE="${IUSE} linguas_${L}"
103 done
104
105 PATCHES=( "${WORKDIR}/patches/${PV%_*}-i18n.patch"
106 "${WORKDIR}/patches/${PV%_*}-coreImage-parallel-build.patch" )
107
108 src_prepare() {
109 base_src_prepare
110
111 local po_files=
112 local qt_ts_files=
113 local avidemux_ts_files=
114 for lingua in ${LINGUAS}; do
115 if has ${lingua} ${AVIDEMUX_LANGS}; then
116 if [[ -e ${S}/po/${lingua}.po ]]; then
117 po_files="${po_files} \${po_subdir}/${lingua}.po"
118 fi
119 if [[ -e ${S}/po/qt_${lingua}.ts ]]; then
120 qt_ts_files="${qt_ts_files} \${ts_subdir}/qt_${lingua}.ts"
121 fi
122 if [[ -e ${S}/po/${PN}_${lingua}.ts ]]; then
123 avidemux_ts_files="${avidemux_ts_files} \${ts_subdir}/${PN}_${lingua}.ts"
124 fi
125 fi
126 done
127
128 sed -i -e "s!FILE(GLOB po_files .*)!SET(po_files ${po_files})!" \
129 "${S}/cmake/Po.cmake" || die "sed failed"
130 sed -i -e "s!FILE(GLOB.*qt.*)!SET(ts_files ${qt_ts_files})!" \
131 -e "s!FILE(GLOB.*avidemux.*)!SET(ts_files ${avidemux_ts_files})!" \
132 "${S}/cmake/Ts.cmake" || die "sed failed"
133 }
134
135 src_configure() {
136 mycmakeargs="${mycmakeargs}
137 -DAVIDEMUX_SOURCE_DIR='${S}'
138 -DAVIDEMUX_INSTALL_PREFIX='${S}_build'
139 -DAVIDEMUX_CORECONFIG_DIR='${S}_build/config'"
140
141 # CMakeLists.txt
142 use gtk || mycmakeargs="${mycmakeargs} -DGTK=0"
143 use qt4 || mycmakeargs="${mycmakeargs} -DQT4=0"
144
145 # cmake/admCheckMiscLibs.cmake
146 use nls || mycmakeargs="${mycmakeargs} -DGETTEXT=0"
147 use sdl || mycmakeargs="${mycmakeargs} -DSDL=0"
148 use xv || mycmakeargs="${mycmakeargs} -DXVIDEO=0"
149
150 # cmake/admCheckAudioDeviceLibs.cmake
151 use alsa || mycmakeargs="${mycmakeargs} -DALSA=0"
152 use esd || mycmakeargs="${mycmakeargs} -DESD=0"
153 use jack || mycmakeargs="${mycmakeargs} -DJACK=0"
154 use oss || mycmakeargs="${mycmakeargs} -DOSS=0"
155 use pulseaudio || mycmakeargs="${mycmakeargs} -DPULSEAUDIOSIMPLE=0"
156
157 # cmake/admCheckAudioEncoderLibs.cmake
158 use aften || mycmakeargs="${mycmakeargs} -DAFTEN=0"
159 use mp3 || mycmakeargs="${mycmakeargs} -DLAME=0"
160 use aac || mycmakeargs="${mycmakeargs} -DFAAC=0"
161 use vorbis || mycmakeargs="${mycmakeargs} -DVORBIS=0"
162
163 # plugins/ADM_audioDecoders
164 use aac || mycmakeargs="${mycmakeargs} -DFAAD=0"
165 use dts || mycmakeargs="${mycmakeargs} -DLIBDCA=0"
166
167 # opencore
168 use amr || mycmakeargs="${mycmakeargs} -DOPENCORE_AMRNB=0 -DOPENCORE_AMRWB=0"
169
170 # plugins/ADM_videoFilters
171 use truetype || mycmakeargs="${mycmakeargs} -DFREETYPE2=0 -DFONTCONFIG=0"
172
173 # plugins/ADM_videoEncoder
174 use xvid || mycmakeargs="${mycmakeargs} -DXVID=0"
175 use x264 || mycmakeargs="${mycmakeargs} -DX264=0"
176
177 cmake-utils_src_configure
178 }
179
180 src_compile() {
181 # first build the application
182 cmake-utils_src_compile
183 # and then go on with plugins
184 emake -C "${CMAKE_BUILD_DIR}/plugins" || die "building plugins failed"
185 }
186
187 src_install() {
188 # install the application
189 cmake-utils_src_install
190 # install plugins
191 emake -C "${CMAKE_BUILD_DIR}/plugins" DESTDIR="${D}" install \
192 || die "installing plugins failed"
193
194 dodoc AUTHORS || die "dodoc failed"
195 newicon ${PN}_icon.png ${PN}.png || die "installing icon failed"
196
197 if use qt4; then
198 sed -i "s/\(${PN}2_\)gtk/\1qt4/" ${PN}2.desktop || die "sed failed"
199 domenu ${PN}2.desktop || die "installing desktop file failed"
200 fi
201
202 if use gtk; then
203 domenu ${PN}2-gtk.desktop || die "installing desktop file failed"
204 fi
205 }