commit: 1dc7dbdc6db67d8db6f011ebcce9837d26398185 Author: Philipp Rösner <rndxelement <AT> protonmail <DOT> com> AuthorDate: Sun Apr 13 13:18:09 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed May 21 21:53:08 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dc7dbdc
media-sound/alacenc: add 0.4.1 - remove uint fix from patch, as it was fixed upstream Signed-off-by: Philipp Rösner <rndxelement <AT> protonmail.com> Part-of: https://github.com/gentoo/gentoo/pull/41571 Closes: https://github.com/gentoo/gentoo/pull/41571 Signed-off-by: Sam James <sam <AT> gentoo.org> media-sound/alacenc/Manifest | 1 + media-sound/alacenc/alacenc-0.4.1.ebuild | 25 ++++++++++++++++++++++ media-sound/alacenc/files/alacenc-0.4.1-musl.patch | 17 +++++++++++++++ 3 files changed, 43 insertions(+) diff --git a/media-sound/alacenc/Manifest b/media-sound/alacenc/Manifest index 39da1dfe285c..4a82f054d2a5 100644 --- a/media-sound/alacenc/Manifest +++ b/media-sound/alacenc/Manifest @@ -1 +1,2 @@ DIST alacenc-0.4.0.tar.gz 114463 BLAKE2B 6682a77d1df90f22969bbdf82b3ad273cac8855f245ff533b90e81a02952c9dc3f9f14f4e7ec23059ebe7ba9e3a7fff51f009dbe7ee945fca5a9a04d1f2fb8c9 SHA512 2a95725b6aa4ef3f42b2c8d379cd8a83dbf46d69faa0bd6a03bec4d0b56665b3d0716c76e9c7183096a0761d36a282a559f2e5c70f0a9aa1a9808587db004727 +DIST alacenc-0.4.1.tar.gz 114586 BLAKE2B 1c2e2fd8f299b57ccb3c5efa7e1abddc21a576b25ec17cd49ae088239dc71b19cb11f22a252959ff5c78ef972271123ecaf141b1b6c4b7b52407ceb4b733f381 SHA512 f71a61157a8e58be844248780d58556cc90fb7682c39a9da492605319cabd2838182b04729c4dadd008f61dfdb8fcf1b3bae1b13da0a98684dbffb0e486ac97f diff --git a/media-sound/alacenc/alacenc-0.4.1.ebuild b/media-sound/alacenc/alacenc-0.4.1.ebuild new file mode 100644 index 000000000000..028dd7bc48cb --- /dev/null +++ b/media-sound/alacenc/alacenc-0.4.1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Encodes audio into the Apple Lossless Audio Codec (ALAC) format" +HOMEPAGE="https://github.com/flacon/alacenc" +SRC_URI="https://github.com/flacon/alacenc/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-musl.patch" +) + +src_install() { + dobin "${BUILD_DIR}/alacenc" + einstalldocs +} diff --git a/media-sound/alacenc/files/alacenc-0.4.1-musl.patch b/media-sound/alacenc/files/alacenc-0.4.1-musl.patch new file mode 100644 index 000000000000..4cc2d9707edf --- /dev/null +++ b/media-sound/alacenc/files/alacenc-0.4.1-musl.patch @@ -0,0 +1,17 @@ +# Include endian.h because otherwise constants like BYTE_ORDER, +# LITTLE_ENDIAN or BIG_ENDIAN as well as functions like +# toBigEndian are missing when building with musl. +# On glibc these symbols are present without including +# endian.h, however including it anyway is fine. +# +# Related bug: https://bugs.gentoo.org/927902 +--- a/types.h ++++ b/types.h +@@ -40,6 +40,7 @@ + #include <fstream> + #include <array> + #include <cstdint> ++#include <endian.h> + + class Error : public std::runtime_error + {
