media-libs/flac: Bump to version 1.3.3
authorLars Wendler <polynomial-c@gentoo.org>
Wed, 7 Aug 2019 13:44:02 +0000 (15:44 +0200)
committerLars Wendler <polynomial-c@gentoo.org>
Wed, 7 Aug 2019 13:44:16 +0000 (15:44 +0200)
Package-Manager: Portage-2.3.71, Repoman-2.3.17
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
media-libs/flac/Manifest
media-libs/flac/flac-1.3.3.ebuild [new file with mode: 0644]

index 64ea4e8e9c8943ab216ec84bbce61d6914879c39..21a5f90a300a2e64e0c8f00e5426f81c0311982b 100644 (file)
@@ -1 +1,2 @@
 DIST flac-1.3.2.tar.xz 776192 BLAKE2B ff09df3fc4f985a00fcf6d497be675ceeda85cc57ea73b4f8ad6679cd40a33640f8502adc80c0a571d01fa0a17b8fcb6bfd8df7474620099d4f34bbc073bc7a3 SHA512 63910e8ebbe508316d446ffc9eb6d02efbd5f47d29d2ea7864da9371843c8e671854db6e89ba043fe08aef1845b8ece70db80f1cce853f591ca30d56ef7c3a15
+DIST flac-1.3.3.tar.xz 1044472 BLAKE2B 14acf10e5bce54767a8e3c9bfd0b80c388011e35c7e6a814672f8048d5350b4e6f54c6df4f704e611fa4a796fcfcb6aca1ed798f542cd6abe181210f9f6e33f6 SHA512 d6417e14fab0c41b2df369e5e39ce62a5f588e491af4d465b0162f74e171e5549b2f061867f344bfbf8aaccd246bf5f2acd697e532a2c7901c920c69429b1a28
diff --git a/media-libs/flac/flac-1.3.3.ebuild b/media-libs/flac/flac-1.3.3.ebuild
new file mode 100644 (file)
index 0000000..77a1ef4
--- /dev/null
@@ -0,0 +1,58 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit multilib-minimal
+
+DESCRIPTION="free lossless audio encoder and decoder"
+HOMEPAGE="https://xiph.org/flac/"
+SRC_URI="https://downloads.xiph.org/releases/${PN}/${P}.tar.xz"
+
+LICENSE="BSD FDL-1.2 GPL-2 LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
+IUSE="altivec +cxx debug ogg cpu_flags_x86_sse static-libs"
+
+RDEPEND="ogg? ( >=media-libs/libogg-1.3.0[${MULTILIB_USEDEP}] )"
+DEPEND="${RDEPEND}
+       abi_x86_32? ( dev-lang/nasm )
+"
+BDEPEND="
+       app-arch/xz-utils
+       virtual/pkgconfig
+       !elibc_uclibc? ( sys-devel/gettext )
+"
+
+multilib_src_configure() {
+       local myeconfargs=(
+               --disable-doxygen-docs
+               --disable-examples
+               --disable-xmms-plugin
+               $([[ ${CHOST} == *-darwin* ]] && echo "--disable-asm-optimizations")
+               $(use_enable altivec)
+               $(use_enable cpu_flags_x86_sse sse)
+               $(use_enable cxx cpplibs)
+               $(use_enable debug)
+               $(use_enable ogg)
+               $(use_enable static-libs static)
+
+               # cross-compile fix (bug #521446)
+               # no effect if ogg support is disabled
+               --with-ogg
+       )
+       ECONF_SOURCE="${S}" econf "${myeconfargs[@]}"
+}
+
+multilib_src_test() {
+       if [[ ${UID} != 0 ]]; then
+               emake -j1 check
+       else
+               ewarn "Tests will fail if ran as root, skipping."
+       fi
+}
+
+multilib_src_install_all() {
+       einstalldocs
+       find "${ED}" -type f -name '*.la' -delete || die
+}