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: avidemux-core-2.6.5.ebuild ChangeLog
Date: Sun, 01 Sep 2013 11:53:15
Message-Id: 20130901115312.A44972004C@flycatcher.gentoo.org
1 tomwij 13/09/01 11:53:12
2
3 Modified: ChangeLog
4 Added: avidemux-core-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.15 media-libs/avidemux-core/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/ChangeLog?rev=1.15&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/ChangeLog?rev=1.15&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/ChangeLog?r1=1.14&r2=1.15
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/ChangeLog,v
20 retrieving revision 1.14
21 retrieving revision 1.15
22 diff -u -r1.14 -r1.15
23 --- ChangeLog 31 Aug 2013 09:29:52 -0000 1.14
24 +++ ChangeLog 1 Sep 2013 11:53:12 -0000 1.15
25 @@ -1,6 +1,11 @@
26 # ChangeLog for media-libs/avidemux-core
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/ChangeLog,v 1.14 2013/08/31 09:29:52 tomwij Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/media-libs/avidemux-core/ChangeLog,v 1.15 2013/09/01 11:53:12 tomwij Exp $
30 +
31 +*avidemux-core-2.6.5 (01 Sep 2013)
32 +
33 + 01 Sep 2013; Tom Wijsman <TomWij@g.o> +avidemux-core-2.6.5.ebuild:
34 + Version bump to 2.6.5.
35
36 31 Aug 2013; Tom Wijsman <TomWij@g.o> avidemux-core-9999.ebuild,
37 metadata.xml:
38
39
40
41 1.1 media-libs/avidemux-core/avidemux-core-2.6.5.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/avidemux-core-2.6.5.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/avidemux-core/avidemux-core-2.6.5.ebuild?rev=1.1&content-type=text/plain
45
46 Index: avidemux-core-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-core/avidemux-core-2.6.5.ebuild,v 1.1 2013/09/01 11:53:12 tomwij Exp $
51
52 EAPI="5"
53
54 inherit cmake-utils eutils flag-o-matic
55
56 SLOT="2.6"
57
58 DESCRIPTION="Core libraries for a video editor designed for simple cutting, filtering and encoding tasks."
59 HOMEPAGE="http://fixounet.free.fr/avidemux"
60
61 # Multiple licenses because of all the bundled stuff.
62 LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
63 IUSE="debug nls sdl system-ffmpeg vaapi vdpau video_cards_fglrx xv"
64 KEYWORDS="~amd64 ~x86"
65
66 MY_PN="${PN/-core/}"
67 if [[ ${PV} == *9999* ]] ; then
68 KEYWORDS=""
69 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"
70
71 inherit git-2
72 else
73 MY_P="${MY_PN}_${PV}"
74 SRC_URI="mirror://sourceforge/${MY_PN}/${PV}/${MY_P}.tar.gz"
75 fi
76
77 # Trying to use virtual; ffmpeg misses aac,cpudetection USE flags now though, are they needed?
78 DEPEND="
79 !<media-video/avidemux-${PV}:${SLOT}
80 dev-db/sqlite:3
81 nls? ( sys-devel/gettext:0 )
82 sdl? ( media-libs/libsdl:0 )
83 system-ffmpeg? ( >=virtual/ffmpeg-9:0[mp3,theora] )
84 xv? ( x11-libs/libXv:0 )
85 vaapi? ( x11-libs/libva:0 )
86 vdpau? ( x11-libs/libvdpau:0 )
87 video_cards_fglrx? ( x11-libs/xvba-video:0 )
88 "
89 RDEPEND="
90 $DEPEND
91 "
92 DEPEND="
93 $DEPEND
94 virtual/pkgconfig:0
95 !system-ffmpeg? ( dev-lang/yasm:0[nls=] )
96 "
97
98 S="${WORKDIR}/${MY_P}"
99 BUILD_DIR="${S}/buildCore"
100
101 DOCS=( AUTHORS README )
102
103 src_prepare() {
104 mkdir "${BUILD_DIR}" || die "Can't create build folder."
105
106 cmake-utils_src_prepare
107
108 if use system-ffmpeg ; then
109 # Preparations to support the system ffmpeg. Currently fails because it depends on files the system ffmpeg doesn't install.
110 local error="Failed to remove ffmpeg."
111
112 rm -rf cmake/admFFmpeg* cmake/ffmpeg* avidemux_core/ffmpeg_package buildCore/ffmpeg || die "${error}"
113 sed -i -e 's/include(admFFmpegUtil)//g' avidemux/commonCmakeApplication.cmake || die "${error}"
114 sed -i -e '/registerFFmpeg/d' avidemux/commonCmakeApplication.cmake || die "${error}"
115 sed -i -e 's/include(admFFmpegBuild)//g' avidemux_core/CMakeLists.txt || die "${error}"
116 else
117 # Avoid existing avidemux installations from making the build process fail, bug #461496.
118 sed -i -e "s:getFfmpegLibNames(\"\${sourceDir}\"):getFfmpegLibNames(\"${S}/buildCore/ffmpeg/source/\"):g" cmake/admFFmpegUtil.cmake \
119 || die "Failed to avoid existing avidemux installation from making the build fail."
120 fi
121
122 # Add lax vector typing for PowerPC.
123 if use ppc || use ppc64 ; then
124 append-cflags -flax-vector-conversions
125 fi
126
127 # See bug 432322.
128 use x86 && replace-flags -O0 -O1
129 }
130
131 src_configure() {
132 local mycmakeargs="
133 -DAVIDEMUX_SOURCE_DIR='${S}'
134 $(cmake-utils_use nls GETTEXT)
135 $(cmake-utils_use sdl SDL)
136 $(cmake-utils_use vaapi LIBVA)
137 $(cmake-utils_use vdpau VDPAU)
138 $(cmake-utils_use video_cards_fglrx XVBA)
139 $(cmake-utils_use xv XVIDEO)
140 "
141
142 if use debug ; then
143 mycmakeargs+=" -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1"
144 fi
145
146 CMAKE_USE_DIR="${S}"/avidemux_core cmake-utils_src_configure
147 }
148
149 src_compile() {
150 cmake-utils_src_compile -j1
151 }
152
153 src_install() {
154 cmake-utils_src_install -j1
155 }