Gentoo Archives: gentoo-commits

From: Alexis Ballier <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/x264/
Date: Fri, 15 Feb 2019 12:36:08
Message-Id: 1550234153.31758d0f0f39e32330321eb346e6c792b8903ea3.aballier@gentoo
1 commit: 31758d0f0f39e32330321eb346e6c792b8903ea3
2 Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 15 11:45:41 2019 +0000
4 Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 15 12:35:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=31758d0f
7
8 media-libs/x264: bump a new snapshot, api 157
9
10 Closes: https://bugs.gentoo.org/676596
11 Package-Manager: Portage-2.3.60, Repoman-2.3.12
12 Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>
13
14 media-libs/x264/Manifest | 1 +
15 media-libs/x264/x264-0.0.20190214.ebuild | 58 ++++++++++++++++++++++++++++++++
16 2 files changed, 59 insertions(+)
17
18 diff --git a/media-libs/x264/Manifest b/media-libs/x264/Manifest
19 index 0a6d8558016..ab3b20f2392 100644
20 --- a/media-libs/x264/Manifest
21 +++ b/media-libs/x264/Manifest
22 @@ -1 +1,2 @@
23 DIST x264-snapshot-20170701-2245.tar.bz2 750527 BLAKE2B ccf276da31383ab4b4a1ac48866bc49b4b2bc5913361c933fa2359de4d6e90cca091dd4aba781f3735a5b28d6ce006aa9d4e149ba48745b80cb971c2952ca867 SHA512 28fc9850c36ac385fced6dec9a0f68a5605a68805e1ef7b8cedcd78917eaa1ad6e47e57fe5a74fee0a6e482f3a33de6011f675e6c77b5db94c8fe01d5c5f3e9f
24 +DIST x264-snapshot-20190214-2245.tar.bz2 770462 BLAKE2B d90a3bafb88febe12526b225617616a62c32fa3d3eacf410267e1fbd7e0fafaadca7c146172c08fc525bce8791d81c7d87dc27b06d61a6a44bf2ad92f6c1def6 SHA512 c8b1b46d4e6c0ef653dab35083a454c635ebf72c6a5255ce30bbb5d9d6bb8e23fca0e6cc197ea99f3c702fbfec096587df6fa82dec338d8bd45e35fa89c43039
25
26 diff --git a/media-libs/x264/x264-0.0.20190214.ebuild b/media-libs/x264/x264-0.0.20190214.ebuild
27 new file mode 100644
28 index 00000000000..0128bcd158b
29 --- /dev/null
30 +++ b/media-libs/x264/x264-0.0.20190214.ebuild
31 @@ -0,0 +1,58 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit flag-o-matic multilib-minimal toolchain-funcs
38 +
39 +DESCRIPTION="A free library for encoding X264/AVC streams"
40 +HOMEPAGE="https://www.videolan.org/developers/x264.html"
41 +if [[ ${PV} == 9999 ]]; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://git.videolan.org/git/x264.git"
44 +else
45 + MY_P="x264-snapshot-$(ver_cut 3)-2245"
46 + SRC_URI="https://download.videolan.org/pub/videolan/x264/snapshots/${MY_P}.tar.bz2"
47 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
48 + S="${WORKDIR}/${MY_P}"
49 +fi
50 +
51 +SLOT="0/157" # SONAME
52 +
53 +LICENSE="GPL-2"
54 +IUSE="altivec +interlaced opencl pic static-libs cpu_flags_x86_sse +threads"
55 +
56 +ASM_DEP=">=dev-lang/nasm-2.13"
57 +DEPEND="abi_x86_32? ( ${ASM_DEP} )
58 + abi_x86_64? ( ${ASM_DEP} )
59 + opencl? ( dev-lang/perl )"
60 +RDEPEND="opencl? ( >=virtual/opencl-0-r3[${MULTILIB_USEDEP}] )"
61 +
62 +DOCS=( AUTHORS doc/{ratecontrol,regression_test,standards,threads,vui}.txt )
63 +
64 +multilib_src_configure() {
65 + tc-export CC
66 + local asm_conf=""
67 +
68 + if [[ ${ABI} == x86* ]] && { use pic || use !cpu_flags_x86_sse ; } || [[ ${ABI} == "x32" ]] || [[ ${CHOST} == armv5* ]] || [[ ${ABI} == ppc* ]] && { use !altivec ; }; then
69 + asm_conf=" --disable-asm"
70 + fi
71 +
72 + "${S}/configure" \
73 + --prefix="${EPREFIX}"/usr \
74 + --libdir="${EPREFIX}"/usr/$(get_libdir) \
75 + --disable-cli \
76 + --disable-avs \
77 + --disable-lavf \
78 + --disable-swscale \
79 + --disable-ffms \
80 + --disable-gpac \
81 + --enable-pic \
82 + --enable-shared \
83 + --host="${CHOST}" \
84 + $(usex interlaced "" "--disable-interlaced") \
85 + $(usex opencl "" "--disable-opencl") \
86 + $(usex static-libs "--enable-static" "") \
87 + $(usex threads "" "--disable-thread") \
88 + ${asm_conf} || die
89 +}