1 |
commit: 7c42c41102ce82a51acc08fdd1ee76c36b3e5d11 |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Sat Jan 22 00:00:00 2022 +0000 |
4 |
Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jan 29 15:19:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c42c411 |
7 |
|
8 |
dev-libs/utfcpp: Update live ebuild. |
9 |
|
10 |
https://github.com/nemtrif/utfcpp/commit/fe79d14ae764e0da411078927b1c60ea9271e408 |
11 |
|
12 |
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org> |
13 |
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> |
14 |
|
15 |
dev-libs/utfcpp/utfcpp-9999.ebuild | 33 +++++++++++++++++++++++++-------- |
16 |
1 file changed, 25 insertions(+), 8 deletions(-) |
17 |
|
18 |
diff --git a/dev-libs/utfcpp/utfcpp-9999.ebuild b/dev-libs/utfcpp/utfcpp-9999.ebuild |
19 |
index ca5002a61255..0b15d97bb35e 100644 |
20 |
--- a/dev-libs/utfcpp/utfcpp-9999.ebuild |
21 |
+++ b/dev-libs/utfcpp/utfcpp-9999.ebuild |
22 |
@@ -1,7 +1,7 @@ |
23 |
-# Copyright 2015-2020 Gentoo Authors |
24 |
+# Copyright 2015-2022 Gentoo Authors |
25 |
# Distributed under the terms of the GNU General Public License v2 |
26 |
|
27 |
-EAPI="7" |
28 |
+EAPI="8" |
29 |
|
30 |
inherit cmake |
31 |
|
32 |
@@ -10,6 +10,9 @@ if [[ "${PV}" == "9999" ]]; then |
33 |
|
34 |
EGIT_REPO_URI="https://github.com/nemtrif/utfcpp" |
35 |
EGIT_SUBMODULES=() |
36 |
+else |
37 |
+ FTEST_GIT_REVISION="" |
38 |
+ FTEST_DATE="" |
39 |
fi |
40 |
|
41 |
DESCRIPTION="UTF-8 C++ library" |
42 |
@@ -17,7 +20,8 @@ HOMEPAGE="https://github.com/nemtrif/utfcpp" |
43 |
if [[ "${PV}" == "9999" ]]; then |
44 |
SRC_URI="" |
45 |
else |
46 |
- SRC_URI="https://github.com/nemtrif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ SRC_URI="https://github.com/nemtrif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
48 |
+ test? ( https://github.com/nemtrif/ftest/archive/${FTEST_GIT_REVISION}.tar.gz -> ftest-${FTEST_DATE}.tar.gz )" |
49 |
fi |
50 |
|
51 |
LICENSE="Boost-1.0" |
52 |
@@ -27,14 +31,27 @@ IUSE="test" |
53 |
RESTRICT="!test? ( test )" |
54 |
|
55 |
BDEPEND="" |
56 |
-DEPEND="test? ( dev-cpp/gtest )" |
57 |
+DEPEND="" |
58 |
RDEPEND="" |
59 |
|
60 |
-src_prepare() { |
61 |
- sed -e "/add_subdirectory(extern\/gtest)/d" -i CMakeLists.txt || die |
62 |
- sed -e "s/gtest_main/gtest &/" -i tests/CMakeLists.txt || die |
63 |
+src_unpack() { |
64 |
+ if [[ "${PV}" == "9999" ]]; then |
65 |
+ git-r3_src_unpack |
66 |
+ |
67 |
+ if use test; then |
68 |
+ git-r3_fetch https://github.com/nemtrif/ftest refs/heads/master |
69 |
+ git-r3_checkout https://github.com/nemtrif/ftest "${WORKDIR}/ftest" |
70 |
+ fi |
71 |
+ else |
72 |
+ default |
73 |
+ |
74 |
+ if use test; then |
75 |
+ mv ftest-${FTEST_GIT_REVISION} ftest || die |
76 |
+ fi |
77 |
+ fi |
78 |
|
79 |
- cmake_src_prepare |
80 |
+ rmdir "${S}/extern/ftest" || die |
81 |
+ ln -s ../../ftest "${S}/extern/ftest" || die |
82 |
} |
83 |
|
84 |
src_configure() { |