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/
Date: Sun, 29 Oct 2017 09:34:54
Message-Id: 1509269661.ef4acc928833734f894dff8713ca92e3bdeee100.asturm@gentoo
1 commit: ef4acc928833734f894dff8713ca92e3bdeee100
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 28 23:01:34 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 29 09:34:21 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef4acc92
7
8 media-libs/avidemux-core: Drop 2.6.20 (r0)
9
10 Package-Manager: Portage-2.3.13, Repoman-2.3.4
11
12 .../avidemux-core/avidemux-core-2.6.20.ebuild | 108 ---------------------
13 1 file changed, 108 deletions(-)
14
15 diff --git a/media-libs/avidemux-core/avidemux-core-2.6.20.ebuild b/media-libs/avidemux-core/avidemux-core-2.6.20.ebuild
16 deleted file mode 100644
17 index 3a7af781cc1..00000000000
18 --- a/media-libs/avidemux-core/avidemux-core-2.6.20.ebuild
19 +++ /dev/null
20 @@ -1,108 +0,0 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI="6"
25 -
26 -inherit cmake-utils
27 -
28 -DESCRIPTION="Core libraries for a video editor designed for simple cutting, filtering and encoding tasks"
29 -HOMEPAGE="http://fixounet.free.fr/avidemux"
30 -
31 -# Multiple licenses because of all the bundled stuff.
32 -LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
33 -SLOT="2.6"
34 -IUSE="debug nls nvenc sdl system-ffmpeg vaapi vdpau video_cards_fglrx xv"
35 -
36 -if [[ ${PV} == *9999* ]] ; then
37 - EGIT_REPO_URI="https://github.com/mean00/avidemux2.git"
38 - EGIT_CHECKOUT_DIR=${WORKDIR}
39 -
40 - inherit git-r3
41 -else
42 - MY_PN="${PN/-core/}"
43 - MY_P="${MY_PN}_${PV}"
44 - SRC_URI="mirror://sourceforge/${MY_PN}/${MY_PN}/${PV}/${MY_P}.tar.gz"
45 - KEYWORDS="~amd64 ~x86"
46 -fi
47 -
48 -# Trying to use virtual; ffmpeg misses aac,cpudetection USE flags now though, are they needed?
49 -DEPEND="
50 - !<media-video/avidemux-${PV}:${SLOT}
51 - dev-db/sqlite:3
52 - sdl? ( media-libs/libsdl:0 )
53 - system-ffmpeg? ( >=virtual/ffmpeg-9:0[mp3,theora] )
54 - xv? ( x11-libs/libXv:0 )
55 - vaapi? ( x11-libs/libva:0 )
56 - vdpau? ( x11-libs/libvdpau:0 )
57 - nvenc? ( media-video/nvidia_video_sdk )
58 - video_cards_fglrx? (
59 - || ( >=x11-drivers/ati-drivers-14.12-r3
60 - x11-libs/xvba-video:0 )
61 - )
62 -"
63 -RDEPEND="
64 - $DEPEND
65 - nls? ( virtual/libintl:0 )
66 -"
67 -DEPEND="
68 - $DEPEND
69 - virtual/pkgconfig
70 - nls? ( sys-devel/gettext )
71 - !system-ffmpeg? ( dev-lang/yasm[nls=] )
72 -"
73 -
74 -S="${WORKDIR}/${MY_P}"
75 -CMAKE_USE_DIR="${S}/${PN/-/_}"
76 -
77 -src_prepare() {
78 - cmake-utils_src_prepare
79 -
80 - if use system-ffmpeg ; then
81 - # Preparations to support the system ffmpeg. Currently fails because it depends on files the system ffmpeg doesn't install.
82 - local error="Failed to remove ffmpeg."
83 -
84 - rm -rf cmake/admFFmpeg* cmake/ffmpeg* avidemux_core/ffmpeg_package buildCore/ffmpeg || die "${error}"
85 - sed -i -e 's/include(admFFmpegUtil)//g' avidemux/commonCmakeApplication.cmake || die "${error}"
86 - sed -i -e '/registerFFmpeg/d' avidemux/commonCmakeApplication.cmake || die "${error}"
87 - sed -i -e 's/include(admFFmpegBuild)//g' avidemux_core/CMakeLists.txt || die "${error}"
88 - else
89 - # Avoid existing avidemux installations from making the build process fail, bug #461496.
90 - sed -i -e "s:getFfmpegLibNames(\"\${sourceDir}\"):getFfmpegLibNames(\"${WORKDIR}/${P}_build/ffmpeg/source/\"):g" cmake/admFFmpegUtil.cmake \
91 - || die "Failed to avoid existing avidemux installation from making the build fail."
92 - fi
93 -}
94 -
95 -src_configure() {
96 - # Add lax vector typing for PowerPC.
97 - if use ppc || use ppc64 ; then
98 - append-cflags -flax-vector-conversions
99 - fi
100 -
101 - # See bug 432322.
102 - use x86 && replace-flags -O0 -O1
103 -
104 - local mycmakeargs=(
105 - -DAVIDEMUX_SOURCE_DIR='${S}'
106 - -DGETTEXT="$(usex nls)"
107 - -DSDL="$(usex sdl)"
108 - -DLIBVA="$(usex vaapi)"
109 - -DVDPAU="$(usex vdpau)"
110 - -DXVBA="$(usex video_cards_fglrx)"
111 - -DXVIDEO="$(usex xv)"
112 - -DNVENC="$(usex nvenc)"
113 - )
114 -
115 - if use debug ; then
116 - mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 )
117 - fi
118 -
119 - cmake-utils_src_configure
120 -}
121 -
122 -src_compile() {
123 - cmake-utils_src_compile -j1
124 -}
125 -
126 -src_install() {
127 - cmake-utils_src_install -j1
128 -}