Files
guru/media-sound/loudgain/loudgain-0.6.8_p20240128-r3.ebuild
YOSHIOKA Takuma 063b3d6de7 media-sound/loudgain: add 0.6.8_p20240128-r3
Use v0.6.8 release archive and apply manually extracted patches instead
of downloading a commit archive from GitHub. This makes it possible to
share the source archive between 0.6.8-rN and 0.6.8_p20240128-rN.
I'm a not big fan of having lots of patches in files/ directory instead
of using an upstream commit archive, but loudgain repository (and a
commit archives as well) have prebuilt binary inside it, so it would be
beneficial to use fixed version of release archive. I feel that the
amount of patches are still acceptable.

Bump minimum required CMake version. See bug #951350.

Add a new rgbpm2 script, which is multi-processing version of rgbpm.
This was added to the upstream master branch after 0.6.8, but not yet
released.

I believe this ebuild can replace loudgain-0.6.8_p20240128-r2.ebuild
(and also loudgain-0.6.8-r2.ebuild), but considering the amount of
ebuild changes, I will keep those old ebuilds for a while.

Signed-off-by: YOSHIOKA Takuma <lo48576@hard-wi.red>
2025-11-19 09:06:39 +09:00

48 lines
1.3 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
MY_PV="$(ver_cut 1-3)"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="Versatile ReplayGain 2.0 loudness normalizer"
HOMEPAGE="https://github.com/Moonbase59/loudgain"
SRC_URI="https://github.com/Moonbase59/${PN}/archive/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
#REQUIRED_USE=""
COMMON_DEPEND="
media-video/ffmpeg:=
media-libs/libebur128
media-libs/taglib
"
RDEPEND="${COMMON_DEPEND}"
DEPEND="${COMMON_DEPEND}"
PATCHES=(
"${FILESDIR}/loudgain-0.6.8-github-20190906-manpage-ape.patch"
"${FILESDIR}/loudgain-0.6.8-github-20190918-taglib-1.12.patch"
"${FILESDIR}/loudgain-0.6.8-github-20190930-rgbpm2.patch"
"${FILESDIR}/loudgain-0.6.8-github-pr34-manpage.patch"
# Bug 922026
"${FILESDIR}/loudgain-0.6.8-github-pr50-ffmpeg6.patch"
"${FILESDIR}/loudgain-0.6.8-github-pr53-print-taglib-version.patch"
"${FILESDIR}/loudgain-0.6.8-github-pr65-ffmpeg6-gcc14.patch"
"${FILESDIR}/loudgain-0.6.8-github-pr66-ffmpeg7.patch"
"${FILESDIR}/loudgain-0.6.8-respect-build-flags.patch"
# Bug 951350
"${FILESDIR}/loudgain-0.6.8-cmake-4.patch"
)
src_install() {
cmake_src_install
dobin bin/rgbpm2
dodoc README.md
}