blob: 4a5d130489a54b5bc4b110269d407a4fc564a9cd (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools libtool toolchain-funcs multilib-minimal
MY_P="${PN}-III-$(ver_cut 2-3)"
DESCRIPTION="An advanced CDDA reader with error correction"
HOMEPAGE="https://www.xiph.org/paranoia"
SRC_URI="
https://downloads.xiph.org/releases/${PN}/${MY_P}.src.tgz
https://dev.gentoo.org/~pacho/${PN}/${P}-patches.tar.xz
"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
IUSE="static-libs"
IDEPEND="app-eselect/eselect-cdparanoia"
PATCHES=(
# Patches from previous patchset + Fedora + Debian
"${WORKDIR}"/patches
# bug #713740
"${FILESDIR}"/${PN}-missing-sys_types_h.patch
"${FILESDIR}"/cdparanoia-pkgconfig.patch
)
src_prepare() {
default
mv configure.guess config.guess || die
mv configure.sub config.sub || die
sed -i -e '/configure.\(guess\|sub\)/d' configure.in || die
mv configure.{in,ac} || die
eautoconf
elibtoolize
multilib_copy_sources
}
multilib_src_configure() {
tc-export AR CC RANLIB
econf
}
multilib_src_compile() {
emake OPT="${CFLAGS} -I${S}/interface"
use static-libs && emake lib OPT="${CFLAGS} -I${S}/interface"
}
multilib_src_install_all() {
einstalldocs
mv "${ED}"/usr/bin/${PN}{,-paranoia} || die
}
pkg_postinst() {
eselect ${PN} update ifunset
}
pkg_postrm() {
eselect ${PN} update ifunset
}
|