1 |
commit: 5ebeabbeac086d1c69357e9ab7e9a18f52bcfcbb |
2 |
Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org> |
3 |
AuthorDate: Fri Aug 9 16:18:39 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 9 18:38:58 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ebeabbe |
7 |
|
8 |
dev-libs/utfcpp: Version bump (3.1). |
9 |
|
10 |
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache.Org> |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
dev-libs/utfcpp/Manifest | 1 + |
14 |
dev-libs/utfcpp/utfcpp-3.1.ebuild | 46 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 47 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/utfcpp/Manifest b/dev-libs/utfcpp/Manifest |
18 |
index 28771adffc4..01d91412840 100644 |
19 |
--- a/dev-libs/utfcpp/Manifest |
20 |
+++ b/dev-libs/utfcpp/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST utf8_v2_3_4.zip 22422 BLAKE2B cf736876a99068c7e5cb1b0b892d1d63cb38906c993c60b78c8c5625aef86fac3a849551771d0840c3cccf04f1a3617216cbd4684fa5cdde0037e3901c70ff4b SHA512 0e85e443e7bd4ecbe85dedfb7bdf8b1767808108b3a4fc1c0c508bcf74787539ae0af95a31a70e715ca872689ac4d7233afc075ceb375375d26743f92051e222 |
23 |
+DIST utfcpp-3.1.tar.gz 25871 BLAKE2B 6bafb933b777e842375b3dc6b1b5bc41efb0e9f40bbd33ccbbaf07b57a28c4e485d596725297fc2de83c23fa3c66872519883727714d236f4a37e07ed4825fc9 SHA512 826ac7aa61215ac2144fa3f5edc7f291c3dd25dc69b0c82526840f4651f822515ec262915e1117d975e5c5dd729f6166806a5d397262f59a2b323eb7009671f5 |
24 |
|
25 |
diff --git a/dev-libs/utfcpp/utfcpp-3.1.ebuild b/dev-libs/utfcpp/utfcpp-3.1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..fe95f70ff25 |
28 |
--- /dev/null |
29 |
+++ b/dev-libs/utfcpp/utfcpp-3.1.ebuild |
30 |
@@ -0,0 +1,46 @@ |
31 |
+# Copyright 2015-2019 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI="7" |
35 |
+ |
36 |
+inherit cmake-utils |
37 |
+ |
38 |
+if [[ "${PV}" == "9999" ]]; then |
39 |
+ inherit git-r3 |
40 |
+ |
41 |
+ EGIT_REPO_URI="https://github.com/nemtrif/utfcpp" |
42 |
+ EGIT_SUBMODULES=() |
43 |
+fi |
44 |
+ |
45 |
+DESCRIPTION="UTF-8 C++ library" |
46 |
+HOMEPAGE="https://github.com/nemtrif/utfcpp" |
47 |
+if [[ "${PV}" == "9999" ]]; then |
48 |
+ SRC_URI="" |
49 |
+else |
50 |
+ SRC_URI="https://github.com/nemtrif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
51 |
+fi |
52 |
+ |
53 |
+LICENSE="Boost-1.0" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
56 |
+IUSE="test" |
57 |
+ |
58 |
+BDEPEND="" |
59 |
+DEPEND="test? ( dev-cpp/gtest )" |
60 |
+RDEPEND="" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ sed -e "/add_subdirectory(extern\/gtest)/d" -i CMakeLists.txt || die |
64 |
+ sed -e "s/gtest_main/gtest &/" -i tests/CMakeLists.txt || die |
65 |
+ |
66 |
+ cmake-utils_src_prepare |
67 |
+} |
68 |
+ |
69 |
+src_configure() { |
70 |
+ local mycmakeargs=( |
71 |
+ -DUTF8_SAMPLES=OFF |
72 |
+ -DUTF8_TESTS=$(usex test ON OFF) |
73 |
+ ) |
74 |
+ |
75 |
+ cmake-utils_src_configure |
76 |
+} |