1 |
commit: a86c332a81f3a88a1a5449600c031e0e1ec9e745 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Oct 1 23:38:03 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Oct 1 23:43:06 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a86c332a |
7 |
|
8 |
media-libs/libfreehand: 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 |
media-libs/libfreehand/libfreehand-9999.ebuild | 37 +++++++++++++++----------- |
14 |
1 file changed, 21 insertions(+), 16 deletions(-) |
15 |
|
16 |
diff --git a/media-libs/libfreehand/libfreehand-9999.ebuild b/media-libs/libfreehand/libfreehand-9999.ebuild |
17 |
index be281349087..b0b78cb0249 100644 |
18 |
--- a/media-libs/libfreehand/libfreehand-9999.ebuild |
19 |
+++ b/media-libs/libfreehand/libfreehand-9999.ebuild |
20 |
@@ -1,23 +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/libfreehand.git" |
31 |
-[[ ${PV} == 9999 ]] && inherit autotools git-r3 |
32 |
- |
33 |
+if [[ ${PV} = *9999 ]]; then |
34 |
+ EGIT_REPO_URI="https://anongit.freedesktop.org/git/libreoffice/libfreehand.git" |
35 |
+ inherit autotools git-r3 |
36 |
+else |
37 |
+ SRC_URI="https://dev-www.libreoffice.org/src/libfreehand/${P}.tar.xz" |
38 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
39 |
+fi |
40 |
DESCRIPTION="Library for import of FreeHand drawings" |
41 |
HOMEPAGE="https://wiki.documentfoundation.org/DLP/Libraries/libfreehand" |
42 |
-[[ ${PV} == 9999 ]] || SRC_URI="https://dev-www.libreoffice.org/src/libfreehand/${P}.tar.xz" |
43 |
|
44 |
LICENSE="MPL-2.0" |
45 |
SLOT="0" |
46 |
-[[ ${PV} == 9999 ]] || \ |
47 |
-KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
48 |
IUSE="doc static-libs test" |
49 |
|
50 |
+BDEPEND=" |
51 |
+ virtual/pkgconfig |
52 |
+ doc? ( app-doc/doxygen ) |
53 |
+" |
54 |
RDEPEND=" |
55 |
dev-libs/librevenge |
56 |
sys-libs/zlib |
57 |
@@ -28,29 +33,29 @@ DEPEND="${RDEPEND} |
58 |
dev-util/gperf |
59 |
media-libs/lcms |
60 |
sys-devel/libtool |
61 |
- virtual/pkgconfig |
62 |
- doc? ( app-doc/doxygen ) |
63 |
test? ( dev-util/cppunit ) |
64 |
" |
65 |
|
66 |
src_prepare() { |
67 |
default |
68 |
[[ -d m4 ]] || mkdir "m4" |
69 |
- [[ ${PV} == 9999 ]] && eautoreconf |
70 |
+ [[ ${PV} == *9999 ]] && eautoreconf |
71 |
} |
72 |
|
73 |
src_configure() { |
74 |
# bug 619762 |
75 |
append-cxxflags -std=c++14 |
76 |
|
77 |
- econf \ |
78 |
- --disable-werror \ |
79 |
- $(use_with doc docs) \ |
80 |
- $(use_enable static-libs static) \ |
81 |
+ local myeconfargs=( |
82 |
+ --disable-werror |
83 |
+ $(use_with doc docs) |
84 |
+ $(use_enable static-libs static) |
85 |
$(use_enable test tests) |
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 |
} |