Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libcdio-paranoia/
Date: Wed, 26 Oct 2016 17:02:43
Message-Id: 1477501354.4c06ef8e54b850bac8b45ef64b140b0758136af4.polynomial-c@gentoo
1 commit: 4c06ef8e54b850bac8b45ef64b140b0758136af4
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 26 17:00:32 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 26 17:02:34 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c06ef8e
7
8 dev-libs/libcdio-paranoia: Revbump to make use of dev-libs/libcdio sub-slot.
9
10 Bumped ebuild to EAPI-6.
11
12 Package-Manager: portage-2.3.2
13 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
14
15 .../libcdio-paranoia-0.93_p1-r1.ebuild | 64 ++++++++++++++++++++++
16 1 file changed, 64 insertions(+)
17
18 diff --git a/dev-libs/libcdio-paranoia/libcdio-paranoia-0.93_p1-r1.ebuild b/dev-libs/libcdio-paranoia/libcdio-paranoia-0.93_p1-r1.ebuild
19 new file mode 100644
20 index 00000000..202d22e
21 --- /dev/null
22 +++ b/dev-libs/libcdio-paranoia/libcdio-paranoia-0.93_p1-r1.ebuild
23 @@ -0,0 +1,64 @@
24 +# Copyright 1999-2016 Gentoo Foundation
25 +# Distributed under the terms of the GNU General Public License v2
26 +# $Id$
27 +
28 +EAPI=6
29 +MY_P=${PN}-10.2+${PV/_p/+}
30 +
31 +inherit eutils autotools multilib-minimal flag-o-matic
32 +
33 +DESCRIPTION="an advanced CDDA reader with error correction"
34 +HOMEPAGE="https://www.gnu.org/software/libcdio/"
35 +SRC_URI="mirror://gnu/${PN%-*}/${MY_P}.tar.gz"
36 +
37 +# COPYING-GPL from cdparanoia says "2 or later"
38 +# COPYING-LGPL from cdparanoia says "2.1 or later" but 2 files are without the
39 +# clause "or later" so we use LGPL-2.1 without +
40 +LICENSE="GPL-3+ GPL-2+ LGPL-2.1"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
43 +IUSE="+cxx static-libs test"
44 +
45 +RDEPEND="app-eselect/eselect-cdparanoia
46 + >=dev-libs/libcdio-0.93:0=[${MULTILIB_USEDEP}]
47 + >=virtual/libiconv-0-r1[${MULTILIB_USEDEP}]
48 + abi_x86_32? ( !<=app-emulation/emul-linux-x86-medialibs-20130224-r10
49 + !app-emulation/emul-linux-x86-medialibs[-abi_x86_32(-)] )"
50 +DEPEND="${RDEPEND}
51 + sys-devel/gettext
52 + virtual/pkgconfig
53 + test? ( dev-lang/perl )"
54 +
55 +S=${WORKDIR}/${MY_P}
56 +
57 +DOCS=( AUTHORS ChangeLog NEWS README THANKS )
58 +
59 +src_prepare() {
60 + sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac || die #466410
61 + default
62 + eautoreconf
63 +
64 + [[ ${CC} == *clang* ]] && append-flags -std=gnu89
65 +}
66 +
67 +multilib_src_configure() {
68 + local myeconfargs=(
69 + --disable-maintainer-mode
70 + --disable-example-progs
71 + $(use_enable cxx)
72 + --disable-cpp-progs
73 + --with-cd-paranoia-name=libcdio-paranoia
74 + )
75 + # Darwin linker doesn't get this
76 + [[ ${CHOST} == *-darwin* ]] && myeconfargs+=( --without-versioned-libs )
77 + ECONF_SOURCE="${S}" \
78 + econf "${myeconfargs[@]}"
79 +}
80 +
81 +pkg_postinst() {
82 + eselect cdparanoia update ifunset
83 +}
84 +
85 +pkg_postrm() {
86 + eselect cdparanoia update ifunset
87 +}