1 |
commit: 381d06c87ed0cae4d3ad12073331eb0d940a0190 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 25 11:41:20 2020 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 25 12:37:41 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=381d06c8 |
7 |
|
8 |
media-libs/lensfun: EAPI-7 bump, use cmake.eclass, python3_8 |
9 |
|
10 |
Package-Manager: Portage-2.3.99, Repoman-2.3.22 |
11 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
12 |
|
13 |
media-libs/lensfun/lensfun-0.3.2-r1.ebuild | 38 +++++++++++++++++------------- |
14 |
1 file changed, 22 insertions(+), 16 deletions(-) |
15 |
|
16 |
diff --git a/media-libs/lensfun/lensfun-0.3.2-r1.ebuild b/media-libs/lensfun/lensfun-0.3.2-r1.ebuild |
17 |
index be3d497432b..528d11db736 100644 |
18 |
--- a/media-libs/lensfun/lensfun-0.3.2-r1.ebuild |
19 |
+++ b/media-libs/lensfun/lensfun-0.3.2-r1.ebuild |
20 |
@@ -1,11 +1,10 @@ |
21 |
# Copyright 1999-2020 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
-EAPI=6 |
25 |
+EAPI=7 |
26 |
|
27 |
-PYTHON_COMPAT=( python3_{6,7} ) |
28 |
- |
29 |
-inherit python-single-r1 cmake-utils |
30 |
+PYTHON_COMPAT=( python3_{6,7,8} ) |
31 |
+inherit python-single-r1 cmake |
32 |
|
33 |
DESCRIPTION="Library for rectifying and simulating photographic lens distortions" |
34 |
HOMEPAGE="https://lensfun.github.io" |
35 |
@@ -15,26 +14,29 @@ LICENSE="LGPL-3 CC-BY-SA-3.0" # See README for reasoning. |
36 |
SLOT="0" |
37 |
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux" |
38 |
IUSE="doc cpu_flags_x86_sse cpu_flags_x86_sse2 test" |
39 |
+ |
40 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
41 |
+ |
42 |
RESTRICT="!test? ( test )" |
43 |
|
44 |
-RDEPEND="${PYTHON_DEPS} |
45 |
- >=dev-libs/glib-2.40 |
46 |
- media-libs/libpng:0= |
47 |
- sys-libs/zlib:=" |
48 |
-DEPEND="${RDEPEND} |
49 |
+BDEPEND=" |
50 |
doc? ( |
51 |
app-doc/doxygen |
52 |
dev-python/docutils |
53 |
- )" |
54 |
- |
55 |
-REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
56 |
+ ) |
57 |
+" |
58 |
+RDEPEND="${PYTHON_DEPS} |
59 |
+ >=dev-libs/glib-2.40 |
60 |
+ media-libs/libpng:0= |
61 |
+ sys-libs/zlib |
62 |
+" |
63 |
+DEPEND="${RDEPEND}" |
64 |
|
65 |
DOCS=( README.md docs/mounts.txt ChangeLog ) |
66 |
|
67 |
src_configure() { |
68 |
local mycmakeargs=( |
69 |
-DCMAKE_INSTALL_DOCDIR="${EPREFIX}"/usr/share/doc/${PF}/html |
70 |
- -DCMAKE_INSTALL_LIBDIR="${EPREFIX}"/usr/$(get_libdir) |
71 |
-DSETUP_PY_INSTALL_PREFIX="${ED}"/usr |
72 |
-DBUILD_LENSTOOL=ON |
73 |
-DBUILD_STATIC=OFF |
74 |
@@ -43,13 +45,17 @@ src_configure() { |
75 |
-DBUILD_FOR_SSE2=$(usex cpu_flags_x86_sse2) |
76 |
-DBUILD_TESTS=$(usex test) |
77 |
) |
78 |
- |
79 |
- cmake-utils_src_configure |
80 |
+ cmake_src_configure |
81 |
} |
82 |
|
83 |
src_test() { |
84 |
mkdir -p "${T}/db/lensfun" || die |
85 |
cp data/db/* "${T}/db/lensfun/" || die |
86 |
|
87 |
- XDG_DATA_HOME="${T}/db" cmake-utils_src_test |
88 |
+ XDG_DATA_HOME="${T}/db" cmake_src_test |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ cmake_src_install |
93 |
+ python_optimize |
94 |
} |