Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/avidemux-core/files/, media-libs/avidemux-core/
Date: Sun, 29 Oct 2017 09:34:54
Message-Id: 1509269660.a5d748fe480198bbef91213212d99fa36c4d0c08.asturm@gentoo
1 commit: a5d748fe480198bbef91213212d99fa36c4d0c08
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 28 22:58:26 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 29 09:34:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5d748fe
7
8 media-libs/avidemux-core: Drop 2.6.8
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.4
11
12 media-libs/avidemux-core/Manifest | 1 -
13 .../avidemux-core/avidemux-core-2.6.8.ebuild | 111 ---------------------
14 .../files/avidemux-core-2.6.8-gcc6.patch | 50 ----------
15 3 files changed, 162 deletions(-)
16
17 diff --git a/media-libs/avidemux-core/Manifest b/media-libs/avidemux-core/Manifest
18 index 6f017f59f92..4bf6be8c5b5 100644
19 --- a/media-libs/avidemux-core/Manifest
20 +++ b/media-libs/avidemux-core/Manifest
21 @@ -1,2 +1 @@
22 DIST avidemux_2.6.20.tar.gz 20172362 SHA256 03c6cb7fc9eb74688b4fcd5eb654ed7b9c4ffc717a72cc09b08a2d10cdc7ef9f SHA512 d01d0fc24a3004770bd3923c2debc4fa2752eb71df08cfe423746b9c44a2562ca01d82965ed2563b99572a4bed8034b79487199ce330208b51a3b7f87ccf7103 WHIRLPOOL 2e2dc21bed49eeb0cdfefe75fe51f6a84226e7e8e80b063bc0b3d8711a6b91db710611dc0ec06575be69ec8e24f2f9e5b5eb363b9c095267729e85e162a4ce38
23 -DIST avidemux_2.6.8.tar.gz 17380534 SHA256 02998c235a89894d184d745c94cac37b78bc20e9eb44b318ee2bb83f2507e682 SHA512 57a4042f1a9d46462850871d36950215c5ffb5b66ce2f2cde09d747e946c05adb7a550ac7763c96f4c1bcb2c39881407d9d88bc64c93053741091751495ba0b0 WHIRLPOOL 29f8a6039d82e686e8dfbfc7b23658921834238a4cc6c4de338afdfdc032a9a7cba1c8236789aa6dbcab318ec14c344c19563f153e6cbd63cd265c5fb15b44b6
24
25 diff --git a/media-libs/avidemux-core/avidemux-core-2.6.8.ebuild b/media-libs/avidemux-core/avidemux-core-2.6.8.ebuild
26 deleted file mode 100644
27 index c47717b8c3d..00000000000
28 --- a/media-libs/avidemux-core/avidemux-core-2.6.8.ebuild
29 +++ /dev/null
30 @@ -1,111 +0,0 @@
31 -# Copyright 1999-2017 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -
34 -EAPI="5"
35 -
36 -inherit cmake-utils eutils flag-o-matic
37 -
38 -SLOT="2.6"
39 -
40 -DESCRIPTION="Core libraries for a video editor designed for simple cutting, filtering and encoding tasks"
41 -HOMEPAGE="http://fixounet.free.fr/avidemux"
42 -
43 -# Multiple licenses because of all the bundled stuff.
44 -LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
45 -IUSE="debug nls sdl system-ffmpeg vaapi vdpau video_cards_fglrx xv"
46 -KEYWORDS="~amd64 ~x86"
47 -
48 -MY_PN="${PN/-core/}"
49 -if [[ ${PV} == *9999* ]] ; then
50 - KEYWORDS=""
51 - EGIT_REPO_URI="https://github.com/mean00/avidemux2.git"
52 -
53 - inherit git-2
54 -else
55 - MY_P="${MY_PN}_${PV}"
56 - SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}/${PV}/${MY_P}.tar.gz"
57 -fi
58 -
59 -# Trying to use virtual; ffmpeg misses aac,cpudetection USE flags now though, are they needed?
60 -DEPEND="
61 - !<media-video/avidemux-${PV}:${SLOT}
62 - dev-db/sqlite:3
63 - sdl? ( media-libs/libsdl:0 )
64 - system-ffmpeg? ( >=virtual/ffmpeg-9:0[mp3,theora] )
65 - xv? ( x11-libs/libXv:0 )
66 - vaapi? ( x11-libs/libva:0 )
67 - vdpau? ( x11-libs/libvdpau:0 )
68 - video_cards_fglrx? (
69 - || ( >=x11-drivers/ati-drivers-14.12-r3
70 - x11-libs/xvba-video:0 )
71 - )"
72 -RDEPEND="
73 - $DEPEND
74 - nls? ( virtual/libintl:0 )
75 -"
76 -DEPEND="
77 - $DEPEND
78 - virtual/pkgconfig
79 - nls? ( sys-devel/gettext )
80 - !system-ffmpeg? ( dev-lang/yasm[nls=] )
81 -"
82 -
83 -S="${WORKDIR}/${MY_P}"
84 -BUILD_DIR="${S}/buildCore"
85 -
86 -PATCHES=( "${FILESDIR}"/${P}-gcc6.patch )
87 -DOCS=( AUTHORS README )
88 -
89 -src_prepare() {
90 - mkdir "${BUILD_DIR}" || die "Can't create build folder."
91 -
92 - cmake-utils_src_prepare
93 -
94 - if use system-ffmpeg ; then
95 - # Preparations to support the system ffmpeg. Currently fails because it depends on files the system ffmpeg doesn't install.
96 - local error="Failed to remove ffmpeg."
97 -
98 - rm -rf cmake/admFFmpeg* cmake/ffmpeg* avidemux_core/ffmpeg_package buildCore/ffmpeg || die "${error}"
99 - sed -i -e 's/include(admFFmpegUtil)//g' avidemux/commonCmakeApplication.cmake || die "${error}"
100 - sed -i -e '/registerFFmpeg/d' avidemux/commonCmakeApplication.cmake || die "${error}"
101 - sed -i -e 's/include(admFFmpegBuild)//g' avidemux_core/CMakeLists.txt || die "${error}"
102 - else
103 - # Avoid existing avidemux installations from making the build process fail, bug #461496.
104 - sed -i -e "s:getFfmpegLibNames(\"\${sourceDir}\"):getFfmpegLibNames(\"${S}/buildCore/ffmpeg/source/\"):g" cmake/admFFmpegUtil.cmake \
105 - || die "Failed to avoid existing avidemux installation from making the build fail."
106 - fi
107 -
108 - # Add lax vector typing for PowerPC.
109 - if use ppc || use ppc64 ; then
110 - append-cflags -flax-vector-conversions
111 - fi
112 -
113 - # See bug 432322.
114 - use x86 && replace-flags -O0 -O1
115 -}
116 -
117 -src_configure() {
118 - local mycmakeargs=(
119 - -DAVIDEMUX_SOURCE_DIR='${S}'
120 - $(cmake-utils_use nls GETTEXT)
121 - $(cmake-utils_use sdl SDL)
122 - $(cmake-utils_use vaapi LIBVA)
123 - $(cmake-utils_use vdpau VDPAU)
124 - $(cmake-utils_use video_cards_fglrx XVBA)
125 - $(cmake-utils_use xv XVIDEO)
126 - )
127 -
128 - if use debug ; then
129 - mycmakeargs+=( -DVERBOSE=1 -DCMAKE_BUILD_TYPE=Debug -DADM_DEBUG=1 )
130 - fi
131 -
132 - CMAKE_USE_DIR="${S}"/avidemux_core cmake-utils_src_configure
133 -}
134 -
135 -src_compile() {
136 - cmake-utils_src_compile -j1
137 -}
138 -
139 -src_install() {
140 - cmake-utils_src_install -j1
141 -}
142
143 diff --git a/media-libs/avidemux-core/files/avidemux-core-2.6.8-gcc6.patch b/media-libs/avidemux-core/files/avidemux-core-2.6.8-gcc6.patch
144 deleted file mode 100644
145 index dbdf8ff93a8..00000000000
146 --- a/media-libs/avidemux-core/files/avidemux-core-2.6.8-gcc6.patch
147 +++ /dev/null
148 @@ -1,50 +0,0 @@
149 ---- a/avidemux_core/ADM_coreUtils/src/prefs.cpp
150 -+++ b/avidemux_core/ADM_coreUtils/src/prefs.cpp
151 -@@ -44,8 +44,8 @@
152 - const char *name2;
153 - ADM_paramType type;
154 - const char *defaultValue;
155 -- float min;
156 -- float max;
157 -+ double min;
158 -+ double max;
159 - }optionDesc;
160 -
161 - #include "prefs2_pref.h"
162 ---- a/avidemux_core/ADM_coreAudio/src/ADM_audioStreamBuffered.cpp
163 -+++ b/avidemux_core/ADM_coreAudio/src/ADM_audioStreamBuffered.cpp
164 -@@ -46,7 +46,7 @@
165 - // By construction, the error should be minimal
166 - if(newDts!=ADM_AUDIO_NO_DTS)
167 - {
168 -- if( abs(newDts-lastDts)>ADM_MAX_SKEW)
169 -+ if( labs((int64_t)newDts-lastDts)>ADM_MAX_SKEW)
170 - {
171 - printf("[AudioStream] Warning skew in dts =%"PRId64", \n",(int64_t)newDts-(uint64_t)lastDts);
172 - printf("[AudioStream] Warning skew lastDts=%s \n",ADM_us2plain(lastDts));
173 ---- a/avidemux_core/ADM_coreVideoCodec/src/ADM_ffmp43.cpp
174 -+++ b/avidemux_core/ADM_coreVideoCodec/src/ADM_ffmp43.cpp
175 -@@ -30,19 +30,19 @@
176 - #define WRAP_Open_Template(funcz,argz,display,codecid) \
177 - {\
178 - AVCodec *codec=funcz(argz);\
179 --if(!codec) {GUI_Error_HIG("Codec",QT_TR_NOOP("Internal error finding codec"display));ADM_assert(0);} \
180 -+if(!codec) {GUI_Error_HIG("Codec",QT_TR_NOOP("Internal error finding codec" display));ADM_assert(0);} \
181 - codecId=codecid; \
182 - _context->workaround_bugs=1*FF_BUG_AUTODETECT +0*FF_BUG_NO_PADDING; \
183 - _context->error_concealment=3; \
184 - if (avcodec_open(_context, codec) < 0) \
185 - { \
186 -- printf("[lavc] Decoder init: "display" video decoder failed!\n"); \
187 -- GUI_Error_HIG("Codec","Internal error opening "display); \
188 -+ printf("[lavc] Decoder init: " display " video decoder failed!\n"); \
189 -+ GUI_Error_HIG("Codec","Internal error opening " display); \
190 - ADM_assert(0); \
191 - } \
192 - else \
193 - { \
194 -- printf("[lavc] Decoder init: "display" video decoder initialized! (%s)\n",codec->long_name); \
195 -+ printf("[lavc] Decoder init: " display " video decoder initialized! (%s)\n",codec->long_name); \
196 - } \
197 - }
198 -