Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/h264enc/, media-video/h264enc/files/
Date: Fri, 24 Apr 2020 09:53:57
Message-Id: 1587721997.76999c3af402fc309fc4038d357012e5e3d0b635.juippis@gentoo
1 commit: 76999c3af402fc309fc4038d357012e5e3d0b635
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 24 09:48:00 2020 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 24 09:53:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76999c3a
7
8 media-video/h264enc: EAPI-7, fix aac support
9
10 Closes: https://github.com/gentoo/gentoo/pull/14027
11 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
12
13 .../files/h264enc-10.4.7-libaacplusenc.patch | 12 +++++++
14 media-video/h264enc/h264enc-10.4.7-r1.ebuild | 42 ++++++++++++++++++++++
15 2 files changed, 54 insertions(+)
16
17 diff --git a/media-video/h264enc/files/h264enc-10.4.7-libaacplusenc.patch b/media-video/h264enc/files/h264enc-10.4.7-libaacplusenc.patch
18 new file mode 100644
19 index 00000000000..993cbb1efd4
20 --- /dev/null
21 +++ b/media-video/h264enc/files/h264enc-10.4.7-libaacplusenc.patch
22 @@ -0,0 +1,12 @@
23 +diff -Naur a/h264enc b/h264enc
24 +--- a/h264enc 2016-01-19 20:15:59.000000000 +0100
25 ++++ b/h264enc 2019-12-17 14:14:45.321115770 +0100
26 +@@ -7525,7 +7525,7 @@
27 + MPL[i]="$MPLAYER \"$AUDINPUT\" $MPLAYEROPTS ${channels[i]} ${audfilters[i]} -really-quiet -vc dummy -vo null -nocache -ao pcm:fast:file=\"$AUDPIPE\""
28 + NERO[i]="$NEROAACENC -ignorelength ${neroaacbr[i]} -if \"$AUDPIPE\" -of \"$TEMPDIR/audio$i.aac\" &"
29 + FDKAAC[i]="$FDKAACENC ${fdkaacbr[i]} \"$AUDPIPE\" \"$TEMPDIR/audio$i.aac\" &"
30 +- AACPLUS[i]="$AACPLUSENC \"$AUDPIPE\" \"$TEMPDIR/audio$i.aac\" ${aacplusbr[i]} &"
31 ++ AACPLUS[i]="$AACPLUSENC \"$AUDPIPE\" \"$TEMPDIR/audio$i.aac\" $(( ${aacplusbr[i]} * 1000 )) s &"
32 + OGG[i]="$OGGENC ${vorbq[i]} \"$AUDPIPE\" -o \"$TEMPDIR/audio$i.ogg\" &"
33 + OPUS[i]="$OPUSENC ${opusopts[i]} \"$AUDPIPE\" \"$TEMPDIR/audio$i.opus\" &"
34 + FLACENC[i]="$FLAC ${flacq[i]} \"$AUDPIPE\" -o \"$TEMPDIR/audio$i.flac\" &"
35
36 diff --git a/media-video/h264enc/h264enc-10.4.7-r1.ebuild b/media-video/h264enc/h264enc-10.4.7-r1.ebuild
37 new file mode 100644
38 index 00000000000..51adbd9620c
39 --- /dev/null
40 +++ b/media-video/h264enc/h264enc-10.4.7-r1.ebuild
41 @@ -0,0 +1,42 @@
42 +# Copyright 2020 Gentoo Authors
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=7
46 +
47 +inherit eutils
48 +
49 +DESCRIPTION="Script to encode H.264/AVC/MPEG-4 Part 10 formats"
50 +HOMEPAGE="https://h264enc.sourceforge.net/"
51 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +KEYWORDS="~amd64 ~x86"
56 +
57 +RDEPEND="media-video/mplayer[encode,x264]
58 + sys-apps/coreutils
59 + sys-apps/pv
60 + sys-devel/bc
61 + sys-process/time"
62 +
63 +PATCHES=( "${FILESDIR}/${P}-libaacplusenc.patch" )
64 +
65 +src_install() {
66 + dobin ${PN}
67 + doman man/${PN}.1
68 + dodoc doc/*
69 + docinto matrices
70 + dodoc matrices/*
71 +}
72 +
73 +pkg_postinst() {
74 + elog "Optional encoders:"
75 + optfeature "aac support" "media-libs/faac media-libs/libaacplus"
76 + optfeature "dvd support" media-video/lsdvd
77 + optfeature "flac support" media-libs/flac
78 + optfeature "lame (mp3) support" media-sound/lame
79 + optfeature "matroska (mkv) support" media-video/mkvtoolnix
80 + optfeature "mp4 support" media-video/gpac[a52]
81 + optfeature "ogm support" media-sound/ogmtools
82 + optfeature "vorbis support" media-sound/vorbis-tools
83 +}