diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2020-11-19 01:00:00 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2020-11-22 14:31:53 -0500 |
commit | bebb6b63662c3620fdf0e4bc4ae4464d9145dca5 (patch) | |
tree | a56c8cbe319342d3d3e0520108b5b9f0e518733e /dev-libs/utfcpp/utfcpp-3.1.1.ebuild | |
parent | dev-libs/utfcpp: Use cmake.eclass. (diff) | |
download | gentoo-bebb6b63662c3620fdf0e4bc4ae4464d9145dca5.tar.gz gentoo-bebb6b63662c3620fdf0e4bc4ae4464d9145dca5.tar.bz2 gentoo-bebb6b63662c3620fdf0e4bc4ae4464d9145dca5.zip |
dev-libs/utfcpp: Version bump (3.1.1).
Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'dev-libs/utfcpp/utfcpp-3.1.1.ebuild')
-rw-r--r-- | dev-libs/utfcpp/utfcpp-3.1.1.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-libs/utfcpp/utfcpp-3.1.1.ebuild b/dev-libs/utfcpp/utfcpp-3.1.1.ebuild new file mode 100644 index 000000000000..14032157c03c --- /dev/null +++ b/dev-libs/utfcpp/utfcpp-3.1.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 2015-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +inherit cmake + +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="~amd64 ~arm64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="test" +RESTRICT="!test? ( 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_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DUTF8_SAMPLES=OFF + -DUTF8_TESTS=$(usex test ON OFF) + ) + + cmake_src_configure +} |