diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-12-29 11:17:07 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2021-12-29 11:17:07 +0000 |
| commit | 463f6a8a1f8933fc65b763b788b5e89d138167c1 (patch) | |
| tree | 18a9478d3453aecaa0bc143be4e63fa6782a4e75 /dev-cpp/cpp-hocon/cpp-hocon-0.3.0-r1.ebuild | |
| parent | daa89c9c603a377d008c37ebc90cffb24d967c46 (diff) | |
| download | srcux-463f6a8a1f8933fc65b763b788b5e89d138167c1.tar.gz srcux-463f6a8a1f8933fc65b763b788b5e89d138167c1.tar.xz srcux-463f6a8a1f8933fc65b763b788b5e89d138167c1.zip | |
Adding metadata
Diffstat (limited to 'dev-cpp/cpp-hocon/cpp-hocon-0.3.0-r1.ebuild')
| -rw-r--r-- | dev-cpp/cpp-hocon/cpp-hocon-0.3.0-r1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-cpp/cpp-hocon/cpp-hocon-0.3.0-r1.ebuild b/dev-cpp/cpp-hocon/cpp-hocon-0.3.0-r1.ebuild new file mode 100644 index 000000000000..c3a4a5914aa4 --- /dev/null +++ b/dev-cpp/cpp-hocon/cpp-hocon-0.3.0-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake prefix + +DESCRIPTION="Provides C++ support for the HOCON configuration file format" +HOMEPAGE="https://github.com/puppetlabs/cpp-hocon" +SRC_URI="https://github.com/puppetlabs/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" +IUSE="debug test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-libs/boost-1.54:=[nls] + >=dev-libs/leatherman-0.9.3:= +" +DEPEND="${DEPEND} + test? ( dev-cpp/catch:1 )" + +#PATCHES=( "${FILESDIR}"/${PN}-0.2.1-cmake.patch ) +PATCHES=( "${FILESDIR}"/${PN}-0.3.0-use-system-catch.patch ) + +src_prepare() { + cmake_src_prepare + + eprefixify lib/tests/CMakeLists.txt +} + +src_configure() { + local mycmakeargs=( + -DBUILD_TESTING=$(usex test) + ) + + cmake_src_configure +} |
