Line 0
Link Here
|
0 |
- |
1 |
# Copyright 1999-2021 Gentoo Authors |
|
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
|
4 |
EAPI=8 |
5 |
|
6 |
MY_P=${PN}-10.2+${PV/_p/+} |
7 |
|
8 |
inherit autotools multilib-minimal |
9 |
|
10 |
DESCRIPTION="an advanced CDDA reader with error correction" |
11 |
HOMEPAGE="https://www.gnu.org/software/libcdio/" |
12 |
SRC_URI="mirror://gnu/${PN%-*}/${MY_P}.tar.bz2" |
13 |
|
14 |
# COPYING-GPL from cdparanoia says "2 or later" |
15 |
# COPYING-LGPL from cdparanoia says "2.1 or later" but 2 files are without the |
16 |
# clause "or later" so we use LGPL-2.1 without + |
17 |
LICENSE="GPL-3+ GPL-2+ LGPL-2.1" |
18 |
SLOT="0/2" # soname version |
19 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~x86-solaris" |
20 |
IUSE="+cxx static-libs test" |
21 |
|
22 |
RDEPEND=" |
23 |
>=dev-libs/libcdio-0.94:0=[${MULTILIB_USEDEP}] |
24 |
>=virtual/libiconv-0-r1[${MULTILIB_USEDEP}] |
25 |
" |
26 |
|
27 |
DEPEND="${RDEPEND}" |
28 |
|
29 |
BDEPEND=" |
30 |
sys-devel/gettext |
31 |
virtual/pkgconfig |
32 |
test? ( dev-lang/perl ) |
33 |
" |
34 |
|
35 |
IDEPEND="app-eselect/eselect-cdparanoia" |
36 |
|
37 |
RESTRICT="!test? ( test )" |
38 |
|
39 |
S="${WORKDIR}/${MY_P}" |
40 |
|
41 |
PATCHES=( "${FILESDIR}"/${PN}-2.0.1-pass-NM.patch ) |
42 |
DOCS=( AUTHORS ChangeLog NEWS.md README.md THANKS ) |
43 |
|
44 |
src_prepare() { |
45 |
default |
46 |
#sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #466410 |
47 |
eautoreconf |
48 |
} |
49 |
|
50 |
multilib_src_configure() { |
51 |
local myeconfargs=( |
52 |
#--disable-maintainer-mode |
53 |
--disable-example-progs |
54 |
$(use_enable cxx) |
55 |
--disable-cpp-progs |
56 |
--with-cd-paranoia-name=libcdio-paranoia |
57 |
$(use_enable static-libs static) |
58 |
) |
59 |
# Darwin linker doesn't get this |
60 |
[[ ${CHOST} == *-darwin* ]] && myeconfargs+=( --disable-ld-version-script ) |
61 |
|
62 |
ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
63 |
} |
64 |
|
65 |
multilib_src_install_all() { |
66 |
einstalldocs |
67 |
find "${ED}" -type f -name '*.la' -delete || die |
68 |
} |
69 |
|
70 |
pkg_postinst() { |
71 |
eselect cdparanoia update ifunset |
72 |
} |
73 |
|
74 |
pkg_postrm() { |
75 |
eselect cdparanoia update ifunset |
76 |
} |