1 |
commit: e321b3c63b3091cbf61d43cebe0d1fe737071197 |
2 |
Author: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 21 10:12:51 2022 +0000 |
4 |
Commit: Miroslav Šulc <fordfrog <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 21 10:12:56 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e321b3c6 |
7 |
|
8 |
media-libs/flac: bump to 1.3.4 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org> |
12 |
|
13 |
media-libs/flac/Manifest | 1 + |
14 |
media-libs/flac/flac-1.3.4.ebuild | 57 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/media-libs/flac/Manifest b/media-libs/flac/Manifest |
18 |
index c1191ab04643..7f50cb5c17e8 100644 |
19 |
--- a/media-libs/flac/Manifest |
20 |
+++ b/media-libs/flac/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST flac-1.3.3.tar.xz 1044472 BLAKE2B 14acf10e5bce54767a8e3c9bfd0b80c388011e35c7e6a814672f8048d5350b4e6f54c6df4f704e611fa4a796fcfcb6aca1ed798f542cd6abe181210f9f6e33f6 SHA512 d6417e14fab0c41b2df369e5e39ce62a5f588e491af4d465b0162f74e171e5549b2f061867f344bfbf8aaccd246bf5f2acd697e532a2c7901c920c69429b1a28 |
23 |
+DIST flac-1.3.4.tar.xz 1038356 BLAKE2B 0553cd42705f31d6a98d10e8b73953265e97c6b1e46bb59c7d97d12ec1b4aae4c3d6f5e85b9e5d1513f7efac82a65ea9dc59d89d8df0254ff3ab1188039c55c5 SHA512 4a626e8a1bd126e234c0e5061e3b46f3a27c2065fdfa228fd8cf00d3c7fa2c05fafb5cec36acce7bfce4914bfd7db0b2a27ee15decf2d8c4caad630f62d44ec9 |
24 |
|
25 |
diff --git a/media-libs/flac/flac-1.3.4.ebuild b/media-libs/flac/flac-1.3.4.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..9ff56224f24f |
28 |
--- /dev/null |
29 |
+++ b/media-libs/flac/flac-1.3.4.ebuild |
30 |
@@ -0,0 +1,57 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+inherit multilib-minimal |
37 |
+ |
38 |
+DESCRIPTION="free lossless audio encoder and decoder" |
39 |
+HOMEPAGE="https://xiph.org/flac/" |
40 |
+SRC_URI="https://downloads.xiph.org/releases/${PN}/${P}.tar.xz" |
41 |
+ |
42 |
+LICENSE="BSD FDL-1.2 GPL-2 LGPL-2.1" |
43 |
+SLOT="0" |
44 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
45 |
+IUSE="+cxx debug ogg cpu_flags_ppc_altivec cpu_flags_ppc_vsx cpu_flags_x86_sse static-libs" |
46 |
+ |
47 |
+RDEPEND="ogg? ( media-libs/libogg[${MULTILIB_USEDEP}] )" |
48 |
+DEPEND="${RDEPEND}" |
49 |
+BDEPEND=" |
50 |
+ app-arch/xz-utils |
51 |
+ sys-devel/gettext |
52 |
+ virtual/pkgconfig |
53 |
+ abi_x86_32? ( dev-lang/nasm )" |
54 |
+ |
55 |
+multilib_src_configure() { |
56 |
+ local myeconfargs=( |
57 |
+ --disable-doxygen-docs |
58 |
+ --disable-examples |
59 |
+ --disable-xmms-plugin |
60 |
+ $([[ ${CHOST} == *-darwin* ]] && echo "--disable-asm-optimizations") |
61 |
+ $(use_enable cpu_flags_ppc_altivec altivec) |
62 |
+ $(use_enable cpu_flags_ppc_vsx vsx) |
63 |
+ $(use_enable cpu_flags_x86_sse sse) |
64 |
+ $(use_enable cxx cpplibs) |
65 |
+ $(use_enable debug) |
66 |
+ $(use_enable ogg) |
67 |
+ $(use_enable static-libs static) |
68 |
+ |
69 |
+ # cross-compile fix (bug #521446) |
70 |
+ # no effect if ogg support is disabled |
71 |
+ --with-ogg |
72 |
+ ) |
73 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
74 |
+} |
75 |
+ |
76 |
+multilib_src_test() { |
77 |
+ if [[ ${UID} != 0 ]]; then |
78 |
+ emake -j1 check |
79 |
+ else |
80 |
+ ewarn "Tests will fail if ran as root, skipping." |
81 |
+ fi |
82 |
+} |
83 |
+ |
84 |
+multilib_src_install_all() { |
85 |
+ einstalldocs |
86 |
+ find "${ED}" -type f -name '*.la' -delete || die |
87 |
+} |