From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CADC71382C5 for ; Wed, 4 Apr 2018 23:04:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9407BE0B47; Wed, 4 Apr 2018 23:04:31 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 596EAE0B30 for ; Wed, 4 Apr 2018 23:04:31 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 64072335C5A for ; Wed, 4 Apr 2018 23:04:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ABFD9282 for ; Wed, 4 Apr 2018 23:04:26 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1522882980.c770af4ce480a1b85479e2ab1ebe58f32a4dac78.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/bitcoin-qt/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-p2p/bitcoin-qt/bitcoin-qt-0.16.0-r1.ebuild X-VCS-Directories: net-p2p/bitcoin-qt/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: c770af4ce480a1b85479e2ab1ebe58f32a4dac78 X-VCS-Branch: master Date: Wed, 4 Apr 2018 23:04:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 80674e32-5f19-4079-b109-9f794d3cb3e0 X-Archives-Hash: 33386962255fa5c68b724f39ad1f412c commit: c770af4ce480a1b85479e2ab1ebe58f32a4dac78 Author: Luke Dashjr utopios org> AuthorDate: Mon Apr 2 02:28:19 2018 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Apr 4 23:03:00 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c770af4c net-p2p/bitcoin-qt: 0.16.0-r1 revbump w/ desktop file icon fix Closes: https://github.com/gentoo/gentoo/pull/7769 net-p2p/bitcoin-qt/bitcoin-qt-0.16.0-r1.ebuild | 188 +++++++++++++++++++++++++ 1 file changed, 188 insertions(+) diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-0.16.0-r1.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-0.16.0-r1.ebuild new file mode 100644 index 00000000000..1e526ce5bab --- /dev/null +++ b/net-p2p/bitcoin-qt/bitcoin-qt-0.16.0-r1.ebuild @@ -0,0 +1,188 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DB_VER="4.8" +inherit autotools bash-completion-r1 db-use gnome2-utils xdg-utils + +BITCOINCORE_COMMITHASH="4b4d7eb255ca8f9a94b92479e6061d129c91a991" +KNOTS_PV="${PV}.knots20180322" +KNOTS_P="bitcoin-${KNOTS_PV}" + +DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency" +HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/" +SRC_URI=" + https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz + https://bitcoinknots.org/files/0.16.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~amd64-linux ~arm ~arm64 ~mips ~ppc ~x86 ~x86-linux" + +IUSE="+asm +bip70 +bitcoin_policy_rbf dbus kde +libevent knots libressl +qrcode test upnp +wallet zeromq" + +RDEPEND=" + >=dev-libs/boost-1.52.0:=[threads(+)] + >=dev-libs/libsecp256k1-0.0.0_pre20151118:=[recovery] + dev-libs/univalue:= + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtwidgets:5 + virtual/bitcoin-leveldb + bip70? ( dev-libs/protobuf:= ) + dbus? ( + dev-qt/qtdbus:5 + ) + libevent? ( dev-libs/libevent:= ) + !libressl? ( dev-libs/openssl:0=[-bindist] ) + libressl? ( dev-libs/libressl:0= ) + qrcode? ( + media-gfx/qrencode:= + ) + upnp? ( >=net-libs/miniupnpc-1.9.20150916:= ) + wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] ) + zeromq? ( net-libs/zeromq:= ) +" +DEPEND="${RDEPEND} + dev-qt/linguist-tools:5 + knots? ( + gnome-base/librsvg + media-gfx/imagemagick[png] + ) +" + +DOCS=( doc/bips.md doc/files.md doc/release-notes.md ) + +S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}" + +pkg_pretend() { + if use knots; then + elog "You are building ${PN} from Bitcoin Knots." + elog "For more information, see:" + elog "https://bitcoinknots.org/files/0.16.x/${KNOTS_PV}/${KNOTS_P}.desc.html" + else + elog "You are building ${PN} from Bitcoin Core." + elog "For more information, see:" + elog "https://bitcoincore.org/en/2017/11/11/release-${PV}/" + fi + if use bitcoin_policy_rbf; then + elog "Replace By Fee policy is enabled: Your node will preferentially mine and" + elog "relay transactions paying the highest fee, regardless of receive order." + else + elog "Replace By Fee policy is disabled: Your node will only accept the first" + elog "transaction seen consuming a conflicting input, regardless of fee" + elog "offered by later ones." + fi +} + +src_prepare() { + sed -i 's/^\(complete -F _bitcoind \)bitcoind \(bitcoin-qt\)$/\1\2/' contrib/bitcoind.bash-completion || die + + # Save the generic icon for later + cp src/qt/res/src/bitcoin.svg bitcoin128.svg || die + + local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/" + + eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch" + + if use knots; then + eapply "${knots_patchdir}/${KNOTS_P}.f.patch" + eapply "${knots_patchdir}/${KNOTS_P}.branding.patch" + eapply "${knots_patchdir}/${KNOTS_P}.ts.patch" + eapply "${FILESDIR}/${P}-fix_mempoolstats.patch" + fi + + eapply_user + + if ! use bitcoin_policy_rbf; then + sed -i 's/\(DEFAULT_ENABLE_REPLACEMENT = \)true/\1false/' src/validation.h || die + fi + + echo '#!/bin/true' >share/genbuild.sh || die + mkdir -p src/obj || die + echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die + + if use knots; then + sed -i 's/^\(Icon=\).*$/\1bitcoinknots/' contrib/debian/bitcoin-qt.desktop || die + fi + sed -i 's/^\(Categories=.*\)$/\1P2P;Network;Qt;/' contrib/debian/bitcoin-qt.desktop || die + + eautoreconf + rm -r src/leveldb src/secp256k1 || die +} + +src_configure() { + local my_econf=( + $(use_enable asm) + $(use_enable bip70) + $(use_with dbus qtdbus) + $(use_with libevent) + $(use_with qrcode qrencode) + $(use_with upnp miniupnpc) + $(use_enable upnp upnp-default) + $(use_enable test tests) + $(use_enable wallet) + $(use_enable zeromq zmq) + --with-gui=qt5 + --disable-util-cli + --disable-util-tx + --disable-bench + --without-libs + --without-daemon + --disable-ccache + --disable-static + --with-system-leveldb + --with-system-libsecp256k1 + --with-system-univalue + ) + econf "${my_econf[@]}" +} + +src_install() { + default + + rm -f "${ED%/}/usr/bin/test_bitcoin" || die + + insinto /usr/share/icons/hicolor/scalable/apps/ + doins bitcoin128.svg + if use knots; then + newins src/qt/res/src/bitcoin.svg bitcoinknots.svg + fi + + insinto /usr/share/applications + newins "contrib/debian/bitcoin-qt.desktop" "org.bitcoin.bitcoin-qt.desktop" + + use libevent && dodoc doc/REST-interface.md doc/tor.md + + use zeromq && dodoc doc/zmq.md + + newbashcomp contrib/bitcoind.bash-completion ${PN} + + if use kde; then + insinto /usr/share/kservices5 + doins contrib/debian/bitcoin-qt.protocol + dosym "../../kservices5/bitcoin-qt.protocol" "/usr/share/kde4/services/bitcoin-qt.protocol" + fi +} + +update_caches() { + gnome2_icon_cache_update + xdg_desktop_database_update +} + +pkg_postinst() { + update_caches + + if use libevent; then + elog "To have ${PN} automatically use Tor when it's running, be sure your" + elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup" + elog "correctly, and add your user to the 'tor' user group." + fi +} + +pkg_postrm() { + update_caches +}