tnet-p2p/libbitcoin-protocol: Add 9999 ebuild. - parlay - yet another gentoo overlay HTML git clone https://git.parazyd.org/parlay DIR Log DIR Files DIR Refs DIR README --- DIR commit 9997f77f032dcac216321c4efafff10559e3b878 DIR parent 84b4dcff152abe7d11970ee28e89db6b46119eee HTML Author: parazyd <parazyd@dyne.org> Date: Mon, 8 Feb 2021 15:06:46 +0100 net-p2p/libbitcoin-protocol: Add 9999 ebuild. Diffstat: A net-p2p/libbitcoin-protocol/files/… | 25 +++++++++++++++++++++++++ A net-p2p/libbitcoin-protocol/libbit… | 38 +++++++++++++++++++++++++++++++ A net-p2p/libbitcoin-protocol/metada… | 7 +++++++ 3 files changed, 70 insertions(+), 0 deletions(-) --- DIR diff --git a/net-p2p/libbitcoin-protocol/files/boost-placeholders.patch b/net-p2p/libbitcoin-protocol/files/boost-placeholders.patch t@@ -0,0 +1,25 @@ +diff --git a/include/bitcoin/protocol/web/json_string.hpp b/include/bitcoin/protocol/web/json_string.hpp +index 13b4921..499cb3f 100644 +--- a/include/bitcoin/protocol/web/json_string.hpp ++++ b/include/bitcoin/protocol/web/json_string.hpp +@@ -19,6 +19,8 @@ + #ifndef LIBBITCOIN_PROTOCOL_WEB_JSON_STRING_HPP + #define LIBBITCOIN_PROTOCOL_WEB_JSON_STRING_HPP + ++#define BOOST_BIND_NO_PLACEHOLDERS ++ + #include <cstdint> + #include <functional> + #include <string> +diff --git a/src/web/json_string.cpp b/src/web/json_string.cpp +index b39d3ee..f0e1707 100644 +--- a/src/web/json_string.cpp ++++ b/src/web/json_string.cpp +@@ -21,6 +21,7 @@ + // Explicitly use std::placeholders here for usage internally to the + // boost parsing helpers included from json_parser.hpp. + // See: https://svn.boost.org/trac10/ticket/12621 ++#define BOOST_BIND_NO_PLACEHOLDERS + using namespace std::placeholders; + + #include <boost/property_tree/json_parser.hpp> DIR diff --git a/net-p2p/libbitcoin-protocol/libbitcoin-protocol-9999.ebuild b/net-p2p/libbitcoin-protocol/libbitcoin-protocol-9999.ebuild t@@ -0,0 +1,38 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools git-r3 + +DESCRIPTION="Bitcoin Blockchain Query Protocol Library" +HOMEPAGE="https://libbitcoin.info" +EGIT_REPO_URI="https://github.com/libbitcoin/${PN}" + +LICENSE="AGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="static-libs debug test +mbedtls" + +DEPEND=" + mbedtls? ( >=net-libs/mbedtls-2.12.0 ) + >=dev-libs/boost-1.62.0:=[threads(+)] + =net-p2p/libbitcoin-system-${PV} + >=net-libs/zeromq-4.3.2 +" +RDEPEND="${DEPEND}" + +PATCHES=( ${FILESDIR}/boost-placeholders.patch ) + +src_prepare() { + eautoreconf + default +} + +src_configure() { + econf \ + $(use_with test tests) \ + $(use_with mbedtls) \ + $(use_enable static-libs static) \ + $(use_enable debug ndebug) +} DIR diff --git a/net-p2p/libbitcoin-protocol/metadata.xml b/net-p2p/libbitcoin-protocol/metadata.xml t@@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="person"> + <email>parazyd@dyne.org</email> +</maintainer> +</pkgmetadata>