Gentoo Archives: gentoo-commits

From: "Andreas Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/liborcus/
Date: Mon, 22 Feb 2016 17:07:20
Message-Id: 1456160699.d96e5b156822bb9d758e4f19d140fbce999e52f8.dilfridge@gentoo
1 commit: d96e5b156822bb9d758e4f19d140fbce999e52f8
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sat Feb 6 14:23:07 2016 +0000
4 Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 22 17:04:59 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d96e5b15
7
8 dev-libs/liborcus: Fix DEPENDs (bug 572614), add USE=python (bug 567926)
9
10 Package-Manager: portage-2.2.27
11
12 dev-libs/liborcus/liborcus-9999.ebuild | 25 ++++++++++++++++++-------
13 1 file changed, 18 insertions(+), 7 deletions(-)
14
15 diff --git a/dev-libs/liborcus/liborcus-9999.ebuild b/dev-libs/liborcus/liborcus-9999.ebuild
16 index e175a1e..e87413f 100644
17 --- a/dev-libs/liborcus/liborcus-9999.ebuild
18 +++ b/dev-libs/liborcus/liborcus-9999.ebuild
19 @@ -1,13 +1,15 @@
20 -# Copyright 1999-2015 Gentoo Foundation
21 +# Copyright 1999-2016 Gentoo Foundation
22 # Distributed under the terms of the GNU General Public License v2
23 # $Id$
24
25 -EAPI=5
26 +EAPI=6
27
28 EGIT_REPO_URI="https://gitlab.com/orcus/orcus.git"
29
30 +PYTHON_COMPAT=( python{3_4,3_5} )
31 +
32 [[ ${PV} == 9999 ]] && GITECLASS="git-r3 autotools"
33 -inherit eutils ${GITECLASS}
34 +inherit eutils python-single-r1 ${GITECLASS}
35 unset GITECLASS
36
37 DESCRIPTION="Standalone file import filter library for spreadsheet documents"
38 @@ -15,27 +17,36 @@ HOMEPAGE="https://gitlab.com/orcus/orcus/blob/master/README.md"
39 [[ ${PV} == 9999 ]] || SRC_URI="http://kohei.us/files/orcus/src/${P}.tar.xz"
40
41 LICENSE="MIT"
42 -SLOT="0/0.10"
43 +SLOT="0/0.11" # based on SONAME of liborcus.so
44 [[ ${PV} == 9999 ]] || \
45 KEYWORDS="~amd64 ~arm ~ppc ~x86"
46 -IUSE="static-libs"
47 +IUSE="python static-libs"
48
49 RDEPEND="
50 >=dev-libs/boost-1.51.0:=
51 - =dev-libs/libixion-0.9*:=
52 + =dev-libs/libixion-9999:=
53 sys-libs/zlib:=
54 + python? ( ${PYTHON_DEPS} )
55 "
56 DEPEND="${RDEPEND}
57 - >=dev-util/mdds-0.11
58 + dev-util/mdds:1
59 "
60
61 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
62 +
63 +pkg_setup() {
64 + use python && python-single-r1_pkg_setup
65 +}
66 +
67 src_prepare() {
68 + eapply_user
69 [[ ${PV} == 9999 ]] && eautoreconf
70 }
71
72 src_configure() {
73 econf \
74 --disable-werror \
75 + $(use_enable python) \
76 $(use_enable static-libs static)
77 }