Gentoo Archives: gentoo-commits

From: Pacho Ramos <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libcdio-paranoia/
Date: Thu, 11 Apr 2019 15:48:41
Message-Id: 1554997700.6967f088a35efa68a3628fc99b0942cab05e8105.pacho@gentoo
1 commit: 6967f088a35efa68a3628fc99b0942cab05e8105
2 Author: Pacho Ramos <pacho <AT> gentoo <DOT> org>
3 AuthorDate: Thu Apr 11 15:44:17 2019 +0000
4 Commit: Pacho Ramos <pacho <AT> gentoo <DOT> org>
5 CommitDate: Thu Apr 11 15:48:20 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6967f088
7
8 dev-libs/libcdio-paranoia: Needs subslot with soname version bumps
9
10 Closes: https://bugs.gentoo.org/603916
11 Package-Manager: Portage-2.3.62, Repoman-2.3.12
12 Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>
13
14 .../libcdio-paranoia-0.94_p2-r1.ebuild | 73 ++++++++++++++++++++++
15 1 file changed, 73 insertions(+)
16
17 diff --git a/dev-libs/libcdio-paranoia/libcdio-paranoia-0.94_p2-r1.ebuild b/dev-libs/libcdio-paranoia/libcdio-paranoia-0.94_p2-r1.ebuild
18 new file mode 100644
19 index 00000000000..85b83bfa513
20 --- /dev/null
21 +++ b/dev-libs/libcdio-paranoia/libcdio-paranoia-0.94_p2-r1.ebuild
22 @@ -0,0 +1,73 @@
23 +# Copyright 1999-2019 Gentoo Authors
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +
28 +MY_P=${PN}-10.2+${PV/_p/+}
29 +
30 +inherit autotools multilib-minimal flag-o-matic
31 +
32 +DESCRIPTION="an advanced CDDA reader with error correction"
33 +HOMEPAGE="https://www.gnu.org/software/libcdio/"
34 +SRC_URI="mirror://gnu/${PN%-*}/${MY_P}.tar.gz"
35 +
36 +# COPYING-GPL from cdparanoia says "2 or later"
37 +# COPYING-LGPL from cdparanoia says "2.1 or later" but 2 files are without the
38 +# clause "or later" so we use LGPL-2.1 without +
39 +LICENSE="GPL-3+ GPL-2+ LGPL-2.1"
40 +SLOT="0/2" # soname version
41 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
42 +IUSE="+cxx static-libs test"
43 +
44 +RDEPEND="app-eselect/eselect-cdparanoia
45 + >=dev-libs/libcdio-0.94:0=[${MULTILIB_USEDEP}]
46 + >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
47 +"
48 +
49 +DEPEND="${RDEPEND}
50 + sys-devel/gettext
51 + virtual/pkgconfig
52 + test? ( dev-lang/perl )"
53 +
54 +S="${WORKDIR}/${MY_P}"
55 +
56 +DOCS=( AUTHORS ChangeLog NEWS README.md THANKS )
57 +
58 +PATCHES=(
59 + "${FILESDIR}"/${PN}-0.90-oos-tests.patch
60 +)
61 +
62 +src_prepare() {
63 + default
64 + sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #466410
65 + eautoreconf
66 +
67 + [[ ${CC} == *clang* ]] && append-flags -std=gnu89
68 +}
69 +
70 +multilib_src_configure() {
71 + local myeconfargs=(
72 + --disable-maintainer-mode
73 + --disable-example-progs
74 + $(use_enable cxx)
75 + --disable-cpp-progs
76 + --with-cd-paranoia-name=libcdio-paranoia
77 + # upstream accidentally default-disabled it
78 + # reenable it to preserve ABI compat with previous versions
79 + # https://bugs.gentoo.org/616054
80 + # https://savannah.gnu.org/bugs/index.php?50978
81 + --enable-ld-version-script
82 + )
83 + # Darwin linker doesn't get this
84 + [[ ${CHOST} == *-darwin* ]] && myeconfargs+=( --disable-ld-version-script )
85 + ECONF_SOURCE="${S}" \
86 + econf "${myeconfargs[@]}"
87 +}
88 +
89 +pkg_postinst() {
90 + eselect cdparanoia update ifunset
91 +}
92 +
93 +pkg_postrm() {
94 + eselect cdparanoia update ifunset
95 +}