gentoo-ebuilds/media-libs/libdvbpsi/libdvbpsi-1.3.3-r1.ebuild
orbea 51f35f9d5f
media-libs/libdvbpsi: fix for slibtool
* Fixes the build system for slibtool
* update EAPI 7 -> 8
* Removes pointless sed

The patch was rebased for the 1.3.3 version.

-O2 is not used if $CFLAGS is set, -O6 is not used anywhere in the build
system and -Werror is only for --enable-debug which Gentoo doesn't use.

Closes: https://bugs.gentoo.org/956827
Upstream-PR: https://code.videolan.org/videolan/libdvbpsi/-/merge_requests/14
Signed-off-by: orbea <orbea@riseup.net>
Part-of: https://github.com/gentoo/gentoo/pull/42407
Closes: https://github.com/gentoo/gentoo/pull/42407
Signed-off-by: Sam James <sam@gentoo.org>
2025-06-02 22:33:59 +01:00

51 lines
978 B
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="Library for MPEG TS/DVB PSI tables decoding and generation"
HOMEPAGE="https://www.videolan.org/libdvbpsi"
SRC_URI="https://download.videolan.org/pub/${PN}/${PV}/${P}.tar.bz2"
LICENSE="LGPL-2.1"
# Sublot == libdvbpsi.so major
SLOT="0/10"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="doc static-libs"
BDEPEND="
doc? (
app-text/doxygen
>=media-gfx/graphviz-2.26
)"
DOCS=( AUTHORS ChangeLog NEWS README )
PATCHES=(
# https://bugs.gentoo.org/956827
"${FILESDIR}"/${PN}-1.3.3-slibtool.patch
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
$(use_enable static-libs static) \
--enable-release
}
src_compile() {
default
use doc && emake doc
}
src_install() {
use doc && local HTML_DOCS=( doc/doxygen/html/. )
default
find "${ED}" -name '*.la' -delete || die
}