diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2019-08-09 16:22:31 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2019-08-09 14:38:58 -0400 |
commit | 5a5f555113df6980f4ac4312b860a2d2d43d90f5 (patch) | |
tree | b5e7361ab42b59038231d47a2ded630f45243598 /dev-libs/utfcpp | |
parent | dev-libs/utfcpp: Version bump (3.1). (diff) | |
download | gentoo-5a5f555113df6980f4ac4312b860a2d2d43d90f5.tar.gz gentoo-5a5f555113df6980f4ac4312b860a2d2d43d90f5.tar.bz2 gentoo-5a5f555113df6980f4ac4312b860a2d2d43d90f5.zip |
dev-libs/utfcpp: Add live ebuild.
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-libs/utfcpp')
-rw-r--r-- | dev-libs/utfcpp/utfcpp-9999.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/dev-libs/utfcpp/utfcpp-9999.ebuild b/dev-libs/utfcpp/utfcpp-9999.ebuild new file mode 100644 index 000000000000..028e8aefa4e7 --- /dev/null +++ b/dev-libs/utfcpp/utfcpp-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 2015-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake-utils + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/nemtrif/utfcpp" + EGIT_SUBMODULES=() +fi + +DESCRIPTION="UTF-8 C++ library" +HOMEPAGE="https://github.com/nemtrif/utfcpp" +if [[ "${PV}" == "9999" ]]; then + SRC_URI="" +else + SRC_URI="https://github.com/nemtrif/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +LICENSE="Boost-1.0" +SLOT="0" +KEYWORDS="" +IUSE="test" + +BDEPEND="" +DEPEND="test? ( dev-cpp/gtest )" +RDEPEND="" + +src_prepare() { + sed -e "/add_subdirectory(extern\/gtest)/d" -i CMakeLists.txt || die + sed -e "s/gtest_main/gtest &/" -i tests/CMakeLists.txt || die + + cmake-utils_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DUTF8_SAMPLES=OFF + -DUTF8_TESTS=$(usex test ON OFF) + ) + + cmake-utils_src_configure +} |