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-core: metadata.xml avidemux-core-2.6.3.ebuild ChangeLog
Date: Fri, 29 Mar 2013 15:10:17
Message-Id: 20130329151013.1729E2171D@flycatcher.gentoo.org
1 tomwij 13/03/29 15:10:13
2
3 Modified: metadata.xml ChangeLog
4 Added: avidemux-core-2.6.3.ebuild
5 Log:
6 Version bump to 2.6.3. Reworked USE flags to be more specific to each avidemux package, the way its meant to be; introduced additional support for some libraries through USE flags as a conseuence.
7
8 (Portage version: 2.1.11.59/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D)
9
10 Revision Changes Path
11 1.2 media-libs/avidemux-core/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/metadata.xml?rev=1.2&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/metadata.xml?rev=1.2&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/metadata.xml?r1=1.1&r2=1.2
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/metadata.xml,v
20 retrieving revision 1.1
21 retrieving revision 1.2
22 diff -u -r1.1 -r1.2
23 --- metadata.xml 16 Mar 2013 11:14:55 -0000 1.1
24 +++ metadata.xml 29 Mar 2013 15:10:12 -0000 1.2
25 @@ -7,8 +7,8 @@
26 </maintainer>
27 <herd>video</herd>
28 <use>
29 - <flag name="aften">Enable A/52 (AC-3) audio encoder support</flag>
30 - <flag name="amr">Enable Adaptive Multi-Rate format support via <pkg>media-libs/opencore-amr</pkg></flag>
31 + <flag name="aften">Enable A/52 (AC-3) audio encoder support.</flag>
32 + <flag name="amr">Enable Adaptive Multi-Rate format support via <pkg>media-libs/opencore-amr</pkg>.</flag>
33 <flag name="system-ffmpeg">Use the ffmpeg provided by the system.</flag>
34 </use>
35 </pkgmetadata>
36
37
38
39 1.3 media-libs/avidemux-core/ChangeLog
40
41 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/ChangeLog?rev=1.3&view=markup
42 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/ChangeLog?rev=1.3&content-type=text/plain
43 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/ChangeLog?r1=1.2&r2=1.3
44
45 Index: ChangeLog
46 ===================================================================
47 RCS file: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/ChangeLog,v
48 retrieving revision 1.2
49 retrieving revision 1.3
50 diff -u -r1.2 -r1.3
51 --- ChangeLog 16 Mar 2013 22:00:45 -0000 1.2
52 +++ ChangeLog 29 Mar 2013 15:10:12 -0000 1.3
53 @@ -1,6 +1,14 @@
54 # ChangeLog for media-libs/avidemux-core
55 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
56 -# $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/ChangeLog,v 1.2 2013/03/16 22:00:45 tomwij Exp $
57 +# $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/ChangeLog,v 1.3 2013/03/29 15:10:12 tomwij Exp $
58 +
59 +*avidemux-core-2.6.3 (29 Mar 2013)
60 +
61 + 29 Mar 2013; Tom Wijsman <TomWij@g.o> +avidemux-core-2.6.3.ebuild,
62 + metadata.xml:
63 + Version bump to 2.6.3. Reworked USE flags to be more specific to each avidemux
64 + package, the way its meant to be; introduced additional support for some
65 + libraries through USE flags as a conseuence.
66
67 16 Mar 2013; Tom Wijsman <TomWij@g.o> avidemux-core-2.6.2.ebuild:
68 Made avidemux-core block old versions of avidemux that had the core libraries,
69
70
71
72 1.1 media-libs/avidemux-core/avidemux-core-2.6.3.ebuild
73
74 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/avidemux-core-2.6.3.ebuild?rev=1.1&view=markup
75 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/avidemux-core-2.6.3.ebuild?rev=1.1&content-type=text/plain
76
77 Index: avidemux-core-2.6.3.ebuild
78 ===================================================================
79 # Copyright 1999-2013 Gentoo Foundation
80 # Distributed under the terms of the GNU General Public License v2
81 # $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/avidemux-core-2.6.3.ebuild,v 1.1 2013/03/29 15:10:12 tomwij Exp $
82
83 EAPI="5"
84
85 PLOCALES="ca cs de el es fr it ja pt_BR ru sr sr@latin tr"
86 inherit cmake-utils eutils flag-o-matic l10n toolchain-funcs
87
88 SLOT="2.6"
89 MY_PN="${PN/-core/}"
90 MY_P="${MY_PN}_${PV}"
91
92 DESCRIPTION="Core libraries for a video editor designed for simple cutting, filtering and encoding tasks."
93 HOMEPAGE="http://fixounet.free.fr/${MY_PN}"
94 SRC_URI="mirror://sourceforge/${MY_PN}/${PV}/${MY_P}.tar.gz"
95
96 # Multiple licenses because of all the bundled stuff.
97 LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
98 KEYWORDS="~amd64 ~x86"
99 IUSE="debug nls sdl system-ffmpeg vdpau xv"
100
101 DEPEND="
102 !<media-video/avidemux-${PV}
103 dev-db/sqlite
104 nls? ( sys-devel/gettext )
105 sdl? ( media-libs/libsdl )
106 system-ffmpeg? ( >=media-video/ffmpeg-1.0[aac,cpudetection,mp3,theora] )
107 xv? ( x11-libs/libXv )
108 vdpau? ( x11-libs/libvdpau )
109 "
110 RDEPEND="
111 $DEPEND
112 "
113 DEPEND="
114 $DEPEND
115 virtual/pkgconfig
116 "
117
118 S="${WORKDIR}/${MY_P}"
119
120 src_prepare() {
121 default
122
123 if use system-ffmpeg ; then
124 # Preparations to support the system ffmpeg. Currently fails because it depends on files the system ffmpeg doesn't install.
125 rm -rf cmake/admFFmpeg* cmake/ffmpeg* avidemux_core/ffmpeg_package buildCore/ffmpeg || die "Failed to remove ffmpeg."
126
127 sed -i -e 's/include(admFFmpegUtil)//g' avidemux/commonCmakeApplication.cmake || die "Failed to remove ffmpeg."
128 sed -i -e '/registerFFmpeg/d' avidemux/commonCmakeApplication.cmake || die "Failed to remove ffmpeg."
129 sed -i -e 's/include(admFFmpegBuild)//g' avidemux_core/CMakeLists.txt || die "Failed to remove ffmpeg."
130 else
131 # Avoid existing avidemux installations from making the build process fail, bug #461496.
132 sed -i -e "s:getFfmpegLibNames(\"\${sourceDir}\"):getFfmpegLibNames(\"${S}/buildCore/ffmpeg/source/\"):g" cmake/admFFmpegUtil.cmake || die "Failed to avoid existing avidemux installation from making the build fail."
133 fi
134
135 }
136
137 src_configure() {
138 local x mycmakeargs
139
140 mycmakeargs="
141 $(cmake-utils_use nls GETTEXT)
142 $(cmake-utils_use sdl SDL)
143 $(cmake-utils_use vdpau VDPAU)
144 $(cmake-utils_use xv XVIDEO)
145 "
146 use debug && POSTFIX="_debug" && mycmakeargs+="-DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug"
147
148 mkdir "${S}"/buildCore || die "Can't create build folder."
149 cd "${S}"/buildCore || die "Can't enter build folder."
150
151 cmake -DAVIDEMUX_SOURCE_DIR="${S}" \
152 -DCMAKE_INSTALL_PREFIX="/usr" \
153 ${mycmakeargs} -G "Unix Makefiles" ../"avidemux_core${POSTFIX}/" || die "cmake failed."
154 }
155
156 src_compile() {
157 # Add lax vector typing for PowerPC.
158 if use ppc || use ppc64 ; then
159 append-cflags -flax-vector-conversions
160 fi
161
162 # See bug 432322.
163 use x86 && replace-flags -O0 -O1
164
165 # TODO: Report -j1 problem upstream, seems to be within ffmpeg code.
166 cd "${S}"/buildCore || die "Can't enter build folder."
167 emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)"
168 }
169
170 src_install() {
171 # TODO: Report -j1 problem upstream, seems to be within ffmpeg code.
172 cd "${S}"/buildCore || die "Can't enter build folder."
173 emake DESTDIR="${ED}" -j1 install
174
175 dodoc "${S}"/{AUTHORS,README}
176 }