Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/bitcoin-qt/
Date: Sat, 07 Apr 2018 20:49:38
Message-Id: 1523134126.630eeac2d924ef8eaf1dbf3a9467896ec08f2914.asturm@gentoo
1 commit: 630eeac2d924ef8eaf1dbf3a9467896ec08f2914
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 7 18:17:42 2018 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 7 20:48:46 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=630eeac2
7
8 net-p2p/bitcoin-qt: Drop 0.16.0 (r0)
9
10 Package-Manager: Portage-2.3.28, Repoman-2.3.9
11
12 net-p2p/bitcoin-qt/bitcoin-qt-0.16.0.ebuild | 182 ----------------------------
13 1 file changed, 182 deletions(-)
14
15 diff --git a/net-p2p/bitcoin-qt/bitcoin-qt-0.16.0.ebuild b/net-p2p/bitcoin-qt/bitcoin-qt-0.16.0.ebuild
16 deleted file mode 100644
17 index 4e08a581606..00000000000
18 --- a/net-p2p/bitcoin-qt/bitcoin-qt-0.16.0.ebuild
19 +++ /dev/null
20 @@ -1,182 +0,0 @@
21 -# Copyright 1999-2018 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=6
25 -
26 -DB_VER="4.8"
27 -inherit autotools bash-completion-r1 db-use gnome2-utils xdg-utils
28 -
29 -BITCOINCORE_COMMITHASH="4b4d7eb255ca8f9a94b92479e6061d129c91a991"
30 -KNOTS_PV="${PV}.knots20180322"
31 -KNOTS_P="bitcoin-${KNOTS_PV}"
32 -
33 -DESCRIPTION="An end-user Qt GUI for the Bitcoin crypto-currency"
34 -HOMEPAGE="https://bitcoincore.org/ https://bitcoinknots.org/"
35 -SRC_URI="
36 - https://github.com/bitcoin/bitcoin/archive/${BITCOINCORE_COMMITHASH}.tar.gz -> bitcoin-v${PV}.tar.gz
37 - https://bitcoinknots.org/files/0.16.x/${KNOTS_PV}/${KNOTS_P}.patches.txz -> ${KNOTS_P}.patches.tar.xz
38 -"
39 -
40 -LICENSE="MIT"
41 -SLOT="0"
42 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86 ~amd64-linux ~x86-linux"
43 -
44 -IUSE="+asm +bip70 +bitcoin_policy_rbf dbus kde +libevent knots libressl +qrcode test upnp +wallet zeromq"
45 -
46 -RDEPEND="
47 - >=dev-libs/boost-1.52.0:=[threads(+)]
48 - >=dev-libs/libsecp256k1-0.0.0_pre20151118:=[recovery]
49 - dev-libs/univalue:=
50 - dev-qt/qtcore:5
51 - dev-qt/qtgui:5
52 - dev-qt/qtnetwork:5
53 - dev-qt/qtwidgets:5
54 - virtual/bitcoin-leveldb
55 - bip70? ( dev-libs/protobuf:= )
56 - dbus? (
57 - dev-qt/qtdbus:5
58 - )
59 - libevent? ( dev-libs/libevent:= )
60 - !libressl? ( dev-libs/openssl:0=[-bindist] )
61 - libressl? ( dev-libs/libressl:0= )
62 - qrcode? (
63 - media-gfx/qrencode:=
64 - )
65 - upnp? ( >=net-libs/miniupnpc-1.9.20150916:= )
66 - wallet? ( sys-libs/db:$(db_ver_to_slot "${DB_VER}")=[cxx] )
67 - zeromq? ( net-libs/zeromq:= )
68 -"
69 -DEPEND="${RDEPEND}
70 - dev-qt/linguist-tools:5
71 - knots? (
72 - gnome-base/librsvg
73 - media-gfx/imagemagick[png]
74 - )
75 -"
76 -
77 -DOCS=( doc/bips.md doc/files.md doc/release-notes.md )
78 -
79 -S="${WORKDIR}/bitcoin-${BITCOINCORE_COMMITHASH}"
80 -
81 -pkg_pretend() {
82 - if use knots; then
83 - elog "You are building ${PN} from Bitcoin Knots."
84 - elog "For more information, see:"
85 - elog "https://bitcoinknots.org/files/0.16.x/${KNOTS_PV}/${KNOTS_P}.desc.html"
86 - else
87 - elog "You are building ${PN} from Bitcoin Core."
88 - elog "For more information, see:"
89 - elog "https://bitcoincore.org/en/2017/11/11/release-${PV}/"
90 - fi
91 - if use bitcoin_policy_rbf; then
92 - elog "Replace By Fee policy is enabled: Your node will preferentially mine and"
93 - elog "relay transactions paying the highest fee, regardless of receive order."
94 - else
95 - elog "Replace By Fee policy is disabled: Your node will only accept the first"
96 - elog "transaction seen consuming a conflicting input, regardless of fee"
97 - elog "offered by later ones."
98 - fi
99 -}
100 -
101 -src_prepare() {
102 - sed -i 's/^\(complete -F _bitcoind \)bitcoind \(bitcoin-qt\)$/\1\2/' contrib/bitcoind.bash-completion || die
103 -
104 - local knots_patchdir="${WORKDIR}/${KNOTS_P}.patches/"
105 -
106 - eapply "${knots_patchdir}/${KNOTS_P}.syslibs.patch"
107 -
108 - if use knots; then
109 - eapply "${knots_patchdir}/${KNOTS_P}.f.patch"
110 - eapply "${knots_patchdir}/${KNOTS_P}.branding.patch"
111 - eapply "${knots_patchdir}/${KNOTS_P}.ts.patch"
112 - eapply "${FILESDIR}/${P}-fix_mempoolstats.patch"
113 - fi
114 -
115 - eapply_user
116 -
117 - if ! use bitcoin_policy_rbf; then
118 - sed -i 's/\(DEFAULT_ENABLE_REPLACEMENT = \)true/\1false/' src/validation.h || die
119 - fi
120 -
121 - echo '#!/bin/true' >share/genbuild.sh || die
122 - mkdir -p src/obj || die
123 - echo "#define BUILD_SUFFIX gentoo${PVR#${PV}}" >src/obj/build.h || die
124 -
125 - sed -i 's/^\(Icon=\).*$/\1bitcoin-qt/;s/^\(Categories=.*\)$/\1P2P;Network;Qt;/' contrib/debian/bitcoin-qt.desktop || die
126 -
127 - eautoreconf
128 - rm -r src/leveldb src/secp256k1 || die
129 -}
130 -
131 -src_configure() {
132 - local my_econf=(
133 - $(use_enable asm)
134 - $(use_enable bip70)
135 - $(use_with dbus qtdbus)
136 - $(use_with libevent)
137 - $(use_with qrcode qrencode)
138 - $(use_with upnp miniupnpc)
139 - $(use_enable upnp upnp-default)
140 - $(use_enable test tests)
141 - $(use_enable wallet)
142 - $(use_enable zeromq zmq)
143 - --with-gui=qt5
144 - --disable-util-cli
145 - --disable-util-tx
146 - --disable-bench
147 - --without-libs
148 - --without-daemon
149 - --disable-ccache
150 - --disable-static
151 - --with-system-leveldb
152 - --with-system-libsecp256k1
153 - --with-system-univalue
154 - )
155 - econf "${my_econf[@]}"
156 -}
157 -
158 -src_install() {
159 - default
160 -
161 - rm -f "${ED%/}/usr/bin/test_bitcoin" || die
162 -
163 - insinto /usr/share/pixmaps
164 - if use knots; then
165 - newins "src/qt/res/rendered_icons/bitcoin.ico" "${PN}.ico"
166 - else
167 - newins "share/pixmaps/bitcoin.ico" "${PN}.ico"
168 - fi
169 - insinto /usr/share/applications
170 - newins "contrib/debian/bitcoin-qt.desktop" "org.bitcoin.bitcoin-qt.desktop"
171 -
172 - use libevent && dodoc doc/REST-interface.md doc/tor.md
173 -
174 - use zeromq && dodoc doc/zmq.md
175 -
176 - newbashcomp contrib/bitcoind.bash-completion ${PN}
177 -
178 - if use kde; then
179 - insinto /usr/share/kservices5
180 - doins contrib/debian/bitcoin-qt.protocol
181 - dosym "../../kservices5/bitcoin-qt.protocol" "/usr/share/kde4/services/bitcoin-qt.protocol"
182 - fi
183 -}
184 -
185 -update_caches() {
186 - gnome2_icon_cache_update
187 - xdg_desktop_database_update
188 -}
189 -
190 -pkg_postinst() {
191 - update_caches
192 -
193 - if use libevent; then
194 - elog "To have ${PN} automatically use Tor when it's running, be sure your"
195 - elog "'torrc' config file has 'ControlPort' and 'CookieAuthentication' setup"
196 - elog "correctly, and add your user to the 'tor' user group."
197 - fi
198 -}
199 -
200 -pkg_postrm() {
201 - update_caches
202 -}