Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/utfcpp/
Date: Fri, 09 Aug 2019 18:39:34
Message-Id: 1565375938.5a5f555113df6980f4ac4312b860a2d2d43d90f5.floppym@gentoo
1 commit: 5a5f555113df6980f4ac4312b860a2d2d43d90f5
2 Author: Arfrever Frehtes Taifersar Arahesis <Arfrever <AT> Apache <DOT> Org>
3 AuthorDate: Fri Aug 9 16:22:31 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=5a5f5551
7
8 dev-libs/utfcpp: Add live ebuild.
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/utfcpp-9999.ebuild | 46 ++++++++++++++++++++++++++++++++++++++
14 1 file changed, 46 insertions(+)
15
16 diff --git a/dev-libs/utfcpp/utfcpp-9999.ebuild b/dev-libs/utfcpp/utfcpp-9999.ebuild
17 new file mode 100644
18 index 00000000000..028e8aefa4e
19 --- /dev/null
20 +++ b/dev-libs/utfcpp/utfcpp-9999.ebuild
21 @@ -0,0 +1,46 @@
22 +# Copyright 2015-2019 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI="7"
26 +
27 +inherit cmake-utils
28 +
29 +if [[ "${PV}" == "9999" ]]; then
30 + inherit git-r3
31 +
32 + EGIT_REPO_URI="https://github.com/nemtrif/utfcpp"
33 + EGIT_SUBMODULES=()
34 +fi
35 +
36 +DESCRIPTION="UTF-8 C++ library"
37 +HOMEPAGE="https://github.com/nemtrif/utfcpp"
38 +if [[ "${PV}" == "9999" ]]; then
39 + SRC_URI=""
40 +else
41 + SRC_URI="https://github.com/nemtrif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 +fi
43 +
44 +LICENSE="Boost-1.0"
45 +SLOT="0"
46 +KEYWORDS=""
47 +IUSE="test"
48 +
49 +BDEPEND=""
50 +DEPEND="test? ( dev-cpp/gtest )"
51 +RDEPEND=""
52 +
53 +src_prepare() {
54 + sed -e "/add_subdirectory(extern\/gtest)/d" -i CMakeLists.txt || die
55 + sed -e "s/gtest_main/gtest &/" -i tests/CMakeLists.txt || die
56 +
57 + cmake-utils_src_prepare
58 +}
59 +
60 +src_configure() {
61 + local mycmakeargs=(
62 + -DUTF8_SAMPLES=OFF
63 + -DUTF8_TESTS=$(usex test ON OFF)
64 + )
65 +
66 + cmake-utils_src_configure
67 +}