mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-11 07:44:12 +02:00
Closes: https://bugs.gentoo.org/943821 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Part-of: https://github.com/gentoo/gentoo/pull/41600 Closes: https://github.com/gentoo/gentoo/pull/41600 Signed-off-by: Sam James <sam@gentoo.org>
69 lines
1.4 KiB
Bash
69 lines
1.4 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools flag-o-matic
|
|
|
|
DESCRIPTION="Library for mp3splt to split mp3 and ogg files without decoding"
|
|
HOMEPAGE="https://mp3splt.sourceforge.net/mp3splt_page/home.php"
|
|
SRC_URI="https://downloads.sourceforge.net/${PN:3}/${P}.tar.gz"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
|
IUSE="doc flac pcre"
|
|
|
|
RDEPEND="
|
|
media-libs/libmad
|
|
media-libs/libid3tag:=
|
|
media-libs/libogg
|
|
media-libs/libvorbis
|
|
flac? ( media-libs/flac:= )
|
|
pcre? ( dev-libs/libpcre )
|
|
"
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
doc? (
|
|
>=app-text/doxygen-1.8.3.1
|
|
media-gfx/graphviz
|
|
)
|
|
"
|
|
|
|
DOCS=( AUTHORS ChangeLog LIMITS NEWS README TODO )
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-0.9.2-drop-libltdl.patch
|
|
"${FILESDIR}"/${PN}-0.9.2-fix-implicit-decl.patch
|
|
"${FILESDIR}"/CVE-2017-15185.patch
|
|
"${FILESDIR}"/${PN}-0.9.2-gcc15.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
# Breaks consumers like media-sound/libmp3splt otherwise
|
|
# bug #778476
|
|
append-libs -ldl
|
|
|
|
local myeconfargs=(
|
|
--disable-cutter # TODO package cutter <https://cutter.sourceforge.net/>
|
|
--disable-optimise
|
|
--disable-static
|
|
$(use_enable doc doxygen_doc)
|
|
$(use_enable flac)
|
|
$(use_enable pcre)
|
|
)
|
|
econf "${myeconfargs[@]}"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
use doc && docompress -x /usr/share/doc/${PF}/doxygen/${PN}_ico.svg
|
|
|
|
find "${ED}" -type f -name '*.la' -delete || die
|
|
}
|