1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 MY_P=${PN}-10.2+${PV/_p/+}
8 inherit autotools flag-o-matic multilib-minimal
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.gz"
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"
19 KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
20 IUSE="+cxx static-libs test"
22 RDEPEND="app-eselect/eselect-cdparanoia
23 >=dev-libs/libcdio-0.93[${MULTILIB_USEDEP}]
24 >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
30 test? ( dev-lang/perl )"
32 RESTRICT="!test? ( test )"
34 S="${WORKDIR}/${MY_P}"
36 DOCS=( AUTHORS ChangeLog NEWS README THANKS )
39 "${FILESDIR}"/${PN}-0.90-oos-tests.patch
44 sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #466410
47 [[ ${CC} == *clang* ]] && append-flags -std=gnu89
50 multilib_src_configure() {
52 --disable-maintainer-mode
53 --disable-example-progs
56 --with-cd-paranoia-name=libcdio-paranoia
57 $(use_enable static-libs static)
59 # Darwin linker doesn't get this
60 [[ ${CHOST} == *-darwin* ]] && myeconfargs+=( --without-versioned-libs )
62 econf "${myeconfargs[@]}"
65 multilib_src_install_all() {
67 find "${D}" -type f -name '*.la' -delete || die
71 eselect cdparanoia update ifunset
75 eselect cdparanoia update ifunset