Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/libmspub/
Date: Tue, 01 Oct 2019 23:43:54
Message-Id: 1569973385.367965f5030239eadac2ca3d3f5f97dd483889f6.asturm@gentoo
1 commit: 367965f5030239eadac2ca3d3f5f97dd483889f6
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 1 23:32:18 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 1 23:43:05 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=367965f5
7
8 app-text/libmspub: EAPI-7 bump, consolidate live build switch
9
10 Package-Manager: Portage-2.3.76, Repoman-2.3.17
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 app-text/libmspub/libmspub-9999.ebuild | 38 ++++++++++++++++++----------------
14 1 file changed, 20 insertions(+), 18 deletions(-)
15
16 diff --git a/app-text/libmspub/libmspub-9999.ebuild b/app-text/libmspub/libmspub-9999.ebuild
17 index c627cd0bee6..2035408ee17 100644
18 --- a/app-text/libmspub/libmspub-9999.ebuild
19 +++ b/app-text/libmspub/libmspub-9999.ebuild
20 @@ -1,26 +1,28 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 +# Copyright 1999-2019 Gentoo Authors
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI=6
26 +EAPI=7
27
28 inherit flag-o-matic
29
30 -EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/libmspub.git"
31 -[[ ${PV} == 9999 ]] && inherit autotools git-r3
32 -
33 +if [[ ${PV} = *9999 ]]; then
34 + EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/libmspub.git"
35 + inherit autotools git-r3
36 +else
37 + SRC_URI="https://dev-www.libreoffice.org/src/libmspub/${P}.tar.xz"
38 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
39 +fi
40 DESCRIPTION="Library parsing Microsoft Publisher documents"
41 HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libmspub"
42 -[[ ${PV} == 9999 ]] || SRC_URI="https://dev-www.libreoffice.org/src/libmspub/${P}.tar.xz"
43
44 LICENSE="LGPL-2.1"
45 SLOT="0"
46 -
47 -# Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
48 -[[ ${PV} == 9999 ]] || \
49 -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~x86"
50 -
51 IUSE="doc static-libs"
52
53 +BDEPEND="
54 + virtual/pkgconfig
55 + doc? ( app-doc/doxygen )
56 +"
57 RDEPEND="
58 dev-libs/icu:=
59 dev-libs/librevenge
60 @@ -29,27 +31,27 @@ RDEPEND="
61 DEPEND="${RDEPEND}
62 dev-libs/boost
63 sys-devel/libtool
64 - virtual/pkgconfig
65 - doc? ( app-doc/doxygen )
66 "
67
68 src_prepare() {
69 default
70 [[ -d m4 ]] || mkdir "m4"
71 - [[ ${PV} == 9999 ]] && eautoreconf
72 + [[ ${PV} == *9999 ]] && eautoreconf
73 }
74
75 src_configure() {
76 # bug 619044
77 append-cxxflags -std=c++14
78
79 - econf \
80 - --disable-werror \
81 - $(use_with doc docs) \
82 + local myeconfargs=(
83 + --disable-werror
84 + $(use_with doc docs)
85 $(use_enable static-libs static)
86 + )
87 + econf "${myeconfargs[@]}"
88 }
89
90 src_install() {
91 default
92 - find "${D}" -name '*.la' -delete || die
93 + find "${D}" -name '*.la' -type f -delete || die
94 }