media-gfx/photoqt: Stabilize 4.7-r1 amd64, #948000
[gentoo/gentoo.git] / media-libs / liboggz / liboggz-1.1.1-r1.ebuild
blob57cf5b81055b66d4323186d2a33785d04fac0138
1 # Copyright 1999-2024 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=8
6 inherit autotools
8 DESCRIPTION="A simple programming interface for reading and writing Ogg files and streams"
9 HOMEPAGE="https://www.xiph.org/oggz/"
10 SRC_URI="https://downloads.xiph.org/releases/${PN}/${P}.tar.gz"
12 LICENSE="BSD"
13 SLOT="0"
14 KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 sparc x86"
15 IUSE="doc static-libs test"
16 RESTRICT="!test? ( test )"
18 DEPEND=">=media-libs/libogg-1.2.0"
19 RDEPEND="${DEPEND}"
20 BDEPEND="
21         virtual/pkgconfig
22         doc? ( app-text/doxygen )
23         test? ( app-text/docbook-sgml-utils )
26 PATCHES=( "${FILESDIR}/${P}-destdir.patch" )
28 src_prepare() {
29         default
31         if ! use doc; then
32                 sed -e '/AC_CHECK_PROG/s:doxygen:dIsAbLe&:' -i configure.ac || die
33         fi
35         AT_M4DIR="m4" eautoreconf
38 src_configure() {
39         econf \
40                 $(use_enable static-libs static)
43 src_install() {
44         default
45         mv "${ED}"/usr/share/doc/${PN} "${ED}"/usr/share/doc/${PF} || die # bug 808159
46         find "${D}" -type f -name '*.la' -delete || die