summaryrefslogtreecommitdiff
path: root/dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2019-12-15 14:13:06 -0600
committerMatthew Thode <prometheanfire@gentoo.org>2019-12-15 14:13:23 -0600
commit2d50c99c57ab6a6a20dd03a8f9caa23912a58383 (patch)
tree7e6f0a2499eeecfe7cd9a2d826de67b2d62fe22b /dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild
parent501be1cc05aaf285edbd65ca68d8c02da3bca53d (diff)
downloadgentoo-2d50c99c57ab6a6a20dd03a8f9caa23912a58383.tar.gz
gentoo-2d50c99c57ab6a6a20dd03a8f9caa23912a58383.tar.bz2
gentoo-2d50c99c57ab6a6a20dd03a8f9caa23912a58383.zip
dev-cpp/cpp-hocon: 0.2.1 bump with patch
Fixes: https://bugs.gentoo.org/703018 Package-Manager: Portage-2.3.81, Repoman-2.3.20 Signed-off-by: Matthew Thode <prometheanfire@gentoo.org>
Diffstat (limited to 'dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild')
-rw-r--r--dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild b/dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild
new file mode 100644
index 000000000000..45f62697011e
--- /dev/null
+++ b/dev-cpp/cpp-hocon/cpp-hocon-0.2.1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+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
+ https://github.com/puppetlabs/cpp-hocon/commit/caab275509826dc5fe5ab2632582abb8f83ea2b3.patch -> ${PN}-0.2.1-boost-filesystem.patch"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ >=sys-devel/gcc-4.9.3:*
+ >=dev-libs/boost-1.54:=[nls]
+ >=dev-libs/leatherman-0.9.3:=
+ "
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ cmake-utils_src_prepare
+ epatch "${DISTDIR}/${PN}-0.2.1-boost-filesystem.patch"
+
+ # make it support multilib
+ sed -i "s/\ lib)/\ $(get_libdir))/g" lib/CMakeLists.txt || die
+ sed -i "s/lib\")/$(get_libdir)\")/g" CMakeLists.txt || die
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_VERBOSE_MAKEFILE=ON
+ -DCMAKE_BUILD_TYPE=None
+ -DCMAKE_INSTALL_PREFIX=/usr
+ )
+ if use debug; then
+ mycmakeargs+=(
+ -DCMAKE_BUILD_TYPE=Debug
+ )
+ fi
+ cmake-utils_src_configure
+}