Gentoo Archives: gentoo-commits

From: "Tom Wijsman (tomwij)" <tomwij@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/avidemux-plugins: avidemux-plugins-2.6.5.ebuild ChangeLog
Date: Sun, 01 Sep 2013 11:53:31
Message-Id: 20130901115328.41C8C2004C@flycatcher.gentoo.org
1 tomwij 13/09/01 11:53:28
2
3 Modified: ChangeLog
4 Added: avidemux-plugins-2.6.5.ebuild
5 Log:
6 Version bump to 2.6.5.
7
8 (Portage version: 2.2.1/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.16 media-libs/avidemux-plugins/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-plugins/ChangeLog?rev=1.16&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-plugins/ChangeLog?rev=1.16&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-plugins/ChangeLog?r1=1.15&r2=1.16
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/avidemux-plugins/ChangeLog,v
20 retrieving revision 1.15
21 retrieving revision 1.16
22 diff -u -r1.15 -r1.16
23 --- ChangeLog 1 Sep 2013 11:51:16 -0000 1.15
24 +++ ChangeLog 1 Sep 2013 11:53:28 -0000 1.16
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/avidemux-plugins
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-plugins/ChangeLog,v 1.15 2013/09/01 11:51:16 tomwij Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-plugins/ChangeLog,v 1.16 2013/09/01 11:53:28 tomwij Exp $
30 +
31 +*avidemux-plugins-2.6.5 (01 Sep 2013)
32 +
33 + 01 Sep 2013; Tom Wijsman <TomWij@g.o> +avidemux-plugins-2.6.5.ebuild:
34 + Version bump to 2.6.5.
35
36 01 Sep 2013; Tom Wijsman <TomWij@g.o> avidemux-plugins-9999.ebuild:
37 Preparation for 2.6.5, make use of python-single-r1 and fix up shebangs, fixes
38
39
40
41 1.1 media-libs/avidemux-plugins/avidemux-plugins-2.6.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-plugins/avidemux-plugins-2.6.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-plugins/avidemux-plugins-2.6.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: avidemux-plugins-2.6.5.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-plugins/avidemux-plugins-2.6.5.ebuild,v 1.1 2013/09/01 11:53:28 tomwij Exp $
51
52 EAPI="5"
53
54 PYTHON_COMPAT=( python2_7 )
55
56 inherit cmake-utils eutils flag-o-matic python-single-r1
57
58 SLOT="2.6"
59
60 DESCRIPTION="Plugins for avidemux; a video editor designed for simple cutting, filtering and encoding tasks."
61 HOMEPAGE="http://fixounet.free.fr/avidemux"
62
63 # Multiple licenses because of all the bundled stuff.
64 LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
65 IUSE="aac aften a52 alsa amr debug dts fontconfig fribidi jack lame libsamplerate mmx opengl oss pulseaudio qt4 vorbis truetype twolame xv xvid x264 vpx"
66 KEYWORDS="~amd64 ~x86"
67
68 MY_PN="${PN/-plugins/}"
69 if [[ ${PV} == *9999* ]] ; then
70 KEYWORDS=""
71 EGIT_REPO_URI="git://gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git https://git.gitorious.org/${MY_PN}2-6/${MY_PN}2-6.git"
72
73 inherit git-2
74 else
75 MY_P="${MY_PN}_${PV}"
76 SRC_URI="mirror://sourceforge/${MY_PN}/${PV}/${MY_P}.tar.gz"
77 fi
78
79 DEPEND="
80 ~media-video/avidemux-${PV}:${SLOT}[opengl?,qt4?]
81 >=dev-lang/spidermonkey-1.5-r2:0=
82 dev-libs/libxml2:2
83 media-libs/libpng:0=
84 virtual/libiconv:0
85 aac? (
86 media-libs/faac:0
87 media-libs/faad2:0
88 )
89 aften? ( media-libs/aften:0 )
90 alsa? ( >=media-libs/alsa-lib-1.0.3b-r2:0 )
91 amr? ( media-libs/opencore-amr:0 )
92 dts? ( media-libs/libdca:0 )
93 fontconfig? ( media-libs/fontconfig:1.0 )
94 fribidi? ( dev-libs/fribidi:0 )
95 jack? (
96 media-sound/jack-audio-connection-kit:0
97 libsamplerate? ( media-libs/libsamplerate:0 )
98 )
99 lame? ( media-sound/lame:0 )
100 oss? ( virtual/os-headers:0 )
101 pulseaudio? ( media-sound/pulseaudio:0 )
102 truetype? ( media-libs/freetype:2 )
103 twolame? ( media-sound/twolame:0 )
104 x264? ( media-libs/x264:0= )
105 xv? (
106 x11-libs/libX11:0
107 x11-libs/libXext:0
108 x11-libs/libXv:0
109 )
110 xvid? ( media-libs/xvid:0 )
111 vorbis? ( media-libs/libvorbis:0 )
112 vpx? ( media-libs/libvpx:0 )
113 ${PYTHON_DEPS}
114 "
115 RDEPEND="$DEPEND"
116
117 S="${WORKDIR}/${MY_P}"
118
119 processes="buildPluginsCommon:avidemux_plugins
120 buildPluginsCLI:avidemux_plugins"
121 use qt4 && processes+=" buildPluginsQt4:avidemux_plugins"
122
123 PATCHES=( "${FILESDIR}"/${PN}-2.6.4-optional-pulse.patch )
124
125 src_configure() {
126 # Add lax vector typing for PowerPC.
127 if use ppc || use ppc64 ; then
128 append-cflags -flax-vector-conversions
129 fi
130
131 # See bug 432322.
132 use x86 && replace-flags -O0 -O1
133
134 for process in ${processes} ; do
135 local build="${process%%:*}"
136
137 local mycmakeargs="
138 -DAVIDEMUX_SOURCE_DIR='${S}'
139 -DPLUGIN_UI=$(echo ${build/buildPlugins/} | tr '[:lower:]' '[:upper:]')
140 $(cmake-utils_use aac FAAC)
141 $(cmake-utils_use aac FAAD)
142 $(cmake-utils_use alsa)
143 $(cmake-utils_use aften)
144 $(cmake-utils_use amr OPENCORE_AMRWB)
145 $(cmake-utils_use amr OPENCORE_AMRNB)
146 $(cmake-utils_use dts LIBDCA)
147 $(cmake-utils_use fontconfig)
148 $(cmake-utils_use jack)
149 $(cmake-utils_use lame)
150 $(cmake-utils_use oss)
151 $(cmake-utils_use pulseaudio PULSEAUDIOSIMPLE)
152 $(cmake-utils_use qt4)
153 $(cmake-utils_use truetype FREETYPE2)
154 $(cmake-utils_use twolame)
155 $(cmake-utils_use x264)
156 $(cmake-utils_use xv XVIDEO)
157 $(cmake-utils_use xvid)
158 $(cmake-utils_use vorbis)
159 $(cmake-utils_use vorbis LIBVORBIS)
160 $(cmake-utils_use vpx VPXDEC)
161 "
162
163 if use debug ; then
164 mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1"
165 fi
166
167 mkdir "${S}"/${build} || die "Can't create build folder."
168
169 CMAKE_USE_DIR="${S}"/${process#*:} BUILD_DIR="${S}"/${build} cmake-utils_src_configure
170 done
171 }
172
173 src_compile() {
174 for process in ${processes} ; do
175 BUILD_DIR="${S}/${process%%:*}" cmake-utils_src_compile
176 done
177 }
178
179 src_install() {
180 for process in ${processes} ; do
181 # cmake-utils_src_install doesn't respect BUILD_DIR
182 # and there sometimes is a preinstall phase present.
183 pushd "${S}/${process%%:*}" > /dev/null || die
184 grep '^preinstall/fast' Makefile && emake DESTDIR="${D}" preinstall/fast
185 grep '^install/fast' Makefile && emake DESTDIR="${D}" install/fast
186 popd > /dev/null || die
187 done
188
189 python_fix_shebang "${D}"
190 }