blob: 5404ca5efe1de451bf012228ca94ea0a75633100 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit toolchain-funcs
DESCRIPTION="library for extracting audio from DVD-Audio discs"
HOMEPAGE="https://sourceforge.net/projects/libdvd-audio/"
SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz"
LICENSE="GPL-2 LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="doc static-libs"
PATCHES=( "${FILESDIR}"/${P}-makefile.patch )
BDEPEND="doc? ( dev-python/sphinx )"
src_configure() {
tc-export CC AR
}
src_compile() {
emake
use doc && emake -C docs man
}
src_install() {
emake DESTDIR="${ED}" PREFIX=/usr LIB_DIR=/usr/$(get_libdir) install
use doc && doman docs/build/man/*
use static-libs || { find "${ED}/usr" -name '*.a' -delete || die; }
}
|