Gentoo Archives: gentoo-commits

From: Stefan Strogin <steils@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/avidemux-core/
Date: Sun, 25 Aug 2019 20:52:17
Message-Id: 1566766254.91dcea3172562b6c0d2e0194ab2f2b0d83033777.steils@gentoo
1 commit: 91dcea3172562b6c0d2e0194ab2f2b0d83033777
2 Author: Stefan Strogin <steils <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 25 20:18:10 2019 +0000
4 Commit: Stefan Strogin <steils <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 25 20:50:54 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91dcea31
7
8 media-libs/avidemux-core: bump version to 2.7.4
9
10 Package-Manager: Portage-2.3.73, Repoman-2.3.17
11 Signed-off-by: Stefan Strogin <steils <AT> gentoo.org>
12
13 media-libs/avidemux-core/Manifest | 1 +
14 .../avidemux-core/avidemux-core-2.7.4.ebuild | 84 ++++++++++++++++++++++
15 2 files changed, 85 insertions(+)
16
17 diff --git a/media-libs/avidemux-core/Manifest b/media-libs/avidemux-core/Manifest
18 index 7e55a202857..4113f7cd25d 100644
19 --- a/media-libs/avidemux-core/Manifest
20 +++ b/media-libs/avidemux-core/Manifest
21 @@ -1,2 +1,3 @@
22 DIST avidemux-2.7.3.tar.gz 23772654 BLAKE2B f946c267140bc8aebda2ce027ed8cb7c84a98a401255d3e0cdaf7498680e8bd9c78a33c122cb177d397ed2dd6bc3c29d7508578028c2964c2897279bf860b62d SHA512 d7761de1c40de1b824efbcf24173ea738a2e0ba7fa41cefa09e7bac3ec97f3af4b04201e36f9de50ade2b09e394aa99ed1d4907f90bb132f9896e8f1b5e82d7a
23 +DIST avidemux-2.7.4.tar.gz 23815808 BLAKE2B 3a7206f04f568f28dd4d5116c580dd780b057a59e94dd61a2abe5dadfa557291a0c50f917ad1926f9f9a82d01af065c06138f954320e2d9c174fda7583a6b265 SHA512 36d857837cd6a74039a414df16367cd8cbf615173bcc531e57dc0dbfc2e002b1c0c4a80cef73a0d8f25d305deca809af0b5cbcdbad8c311324fa2e64381fd10b
24 DIST avidemux_2.7.0.tar.gz 21474504 BLAKE2B c6e55a0b5220d6d3746fa06162bf11253145fd28f2f6f744702d5e0342fba85e546a28883eb847139eadd34c94037ebc7d68f5576e7505a85288556468d14b96 SHA512 7c92213d3bd2849dbdb5a1aff2acd6da231fd76c561b756fbf4a1d5a41e9705d609d7a35b6ca6b77ceb3bf5138f861cd24ed16d8fcec4fd713f09a2ff07e9015
25
26 diff --git a/media-libs/avidemux-core/avidemux-core-2.7.4.ebuild b/media-libs/avidemux-core/avidemux-core-2.7.4.ebuild
27 new file mode 100644
28 index 00000000000..b47c3bc0164
29 --- /dev/null
30 +++ b/media-libs/avidemux-core/avidemux-core-2.7.4.ebuild
31 @@ -0,0 +1,84 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +CMAKE_MAKEFILE_GENERATOR="emake"
38 +
39 +inherit cmake-utils
40 +
41 +DESCRIPTION="Core libraries for simple video cutting, filtering and encoding tasks"
42 +HOMEPAGE="http://fixounet.free.fr/avidemux"
43 +SRC_URI="https://github.com/mean00/avidemux2/archive/${PV}.tar.gz -> avidemux-${PV}.tar.gz"
44 +
45 +# Multiple licenses because of all the bundled stuff.
46 +LICENSE="GPL-1 GPL-2 MIT PSF-2 public-domain"
47 +SLOT="2.7"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="debug nls nvenc sdl system-ffmpeg vaapi vdpau xv"
50 +
51 +# Trying to use virtual; ffmpeg misses aac,cpudetection USE flags now though, are they needed?
52 +DEPEND="dev-db/sqlite:3
53 + nvenc? ( media-video/nvidia_video_sdk )
54 + sdl? ( media-libs/libsdl:0 )
55 + system-ffmpeg? ( >=virtual/ffmpeg-9:0[mp3,theora] )
56 + vaapi? ( x11-libs/libva:0= )
57 + vdpau? ( x11-libs/libvdpau:0 )
58 + xv? ( x11-libs/libXv:0 )
59 +"
60 +RDEPEND="${DEPEND}
61 + !<media-libs/avidemux-core-${PV}
62 + !<media-video/avidemux-${PV}
63 + nls? ( virtual/libintl:0 )
64 +"
65 +BDEPEND="virtual/pkgconfig
66 + nls? ( sys-devel/gettext )
67 + !system-ffmpeg? ( dev-lang/yasm[nls=] )
68 +"
69 +
70 +S="${WORKDIR}/avidemux2-${PV}"
71 +CMAKE_USE_DIR="${S}/${PN/-/_}"
72 +
73 +src_prepare() {
74 + cmake-utils_src_prepare
75 +
76 + if use system-ffmpeg ; then
77 + # Preparations to support the system ffmpeg. Currently fails because
78 + # it depends on files the system ffmpeg doesn't install.
79 + local error="Failed to remove bundled ffmpeg."
80 +
81 + rm -r cmake/admFFmpeg* cmake/ffmpeg* avidemux_core/ffmpeg_package \
82 + buildCore/ffmpeg || die "${error}"
83 + sed -e 's/include(admFFmpegUtil)//g' -e '/registerFFmpeg/d' \
84 + -i avidemux/commonCmakeApplication.cmake || die "${error}"
85 + sed -e 's/include(admFFmpegBuild)//g' \
86 + -i avidemux_core/CMakeLists.txt || die "${error}"
87 + fi
88 +}
89 +
90 +src_configure() {
91 + # See bug 432322.
92 + use x86 && replace-flags -O0 -O1
93 +
94 + local mycmakeargs=(
95 + -DAVIDEMUX_SOURCE_DIR='${S}'
96 + -DGETTEXT="$(usex nls)"
97 + -DNVENC="$(usex nvenc)"
98 + -DSDL="$(usex sdl)"
99 + -DLIBVA="$(usex vaapi)"
100 + -DVDPAU="$(usex vdpau)"
101 + -DXVIDEO="$(usex xv)"
102 + )
103 +
104 + use debug && mycmakeargs+=( -DVERBOSE=1 -DADM_DEBUG=1 )
105 +
106 + cmake-utils_src_configure
107 +}
108 +
109 +src_compile() {
110 + cmake-utils_src_compile
111 +}
112 +
113 +src_install() {
114 + cmake-utils_src_install
115 +}