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