Lines 38-44
fi
Link Here
|
38 |
|
38 |
|
39 |
EXPORT_FUNCTIONS src_prepare src_test src_install |
39 |
EXPORT_FUNCTIONS src_prepare src_test src_install |
40 |
|
40 |
|
41 |
if in_bcc_iuse ljr || in_bcc_iuse 1stclassmsg || in_bcc_iuse zeromq || [ -n "$BITCOINCORE_POLICY_PATCHES" ]; then |
41 |
if in_bcc_iuse ljr || in_bcc_iuse knots || in_bcc_iuse 1stclassmsg || in_bcc_iuse zeromq || [ -n "$BITCOINCORE_POLICY_PATCHES" ]; then |
42 |
EXPORT_FUNCTIONS pkg_pretend |
42 |
EXPORT_FUNCTIONS pkg_pretend |
43 |
fi |
43 |
fi |
44 |
|
44 |
|
Lines 54-60
if [[ ! ${_BITCOINCORE_ECLASS} ]]; then
Link Here
|
54 |
|
54 |
|
55 |
# @ECLASS-VARIABLE: BITCOINCORE_LJR_DATE |
55 |
# @ECLASS-VARIABLE: BITCOINCORE_LJR_DATE |
56 |
# @DESCRIPTION: |
56 |
# @DESCRIPTION: |
57 |
# Set this variable before the inherit line, to the datestamp of the ljr |
57 |
# Set this variable before the inherit line, to the datestamp of the Knots |
58 |
# patchset. |
58 |
# patchset. |
59 |
|
59 |
|
60 |
# @ECLASS-VARIABLE: BITCOINCORE_POLICY_PATCHES |
60 |
# @ECLASS-VARIABLE: BITCOINCORE_POLICY_PATCHES |
Lines 73-78
WALLET_DEPEND="sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]"
Link Here
|
73 |
LIBEVENT_DEPEND="" |
73 |
LIBEVENT_DEPEND="" |
74 |
UNIVALUE_DEPEND="" |
74 |
UNIVALUE_DEPEND="" |
75 |
BITCOINCORE_LJR_NAME=ljr |
75 |
BITCOINCORE_LJR_NAME=ljr |
|
|
76 |
BITCOINCORE_KNOTS_USE=knots |
76 |
[ -n "${BITCOINCORE_LJR_PV}" ] || BITCOINCORE_LJR_PV="${PV}" |
77 |
[ -n "${BITCOINCORE_LJR_PV}" ] || BITCOINCORE_LJR_PV="${PV}" |
77 |
|
78 |
|
78 |
case "${PV}" in |
79 |
case "${PV}" in |
Lines 90-95
case "${PV}" in
Link Here
|
90 |
;; |
91 |
;; |
91 |
esac |
92 |
esac |
92 |
BITCOINCORE_XT_DIFF="047a89831760ff124740fe9f58411d57ee087078...d4084b62c42c38bfe302d712b98909ab26ecce2f" |
93 |
BITCOINCORE_XT_DIFF="047a89831760ff124740fe9f58411d57ee087078...d4084b62c42c38bfe302d712b98909ab26ecce2f" |
|
|
94 |
BITCOINCORE_KNOTS_USE=ljr |
93 |
;; |
95 |
;; |
94 |
0.11*) |
96 |
0.11*) |
95 |
BITCOINCORE_MINOR=11 |
97 |
BITCOINCORE_MINOR=11 |
Lines 99-104
case "${PV}" in
Link Here
|
99 |
BITCOINCORE_RBF_DIFF="5f032c75eefb0fe8ff79ed9595da1112c05f5c4a...660b96d24916b8ef4e0677e5d6162e24e2db447e" |
101 |
BITCOINCORE_RBF_DIFF="5f032c75eefb0fe8ff79ed9595da1112c05f5c4a...660b96d24916b8ef4e0677e5d6162e24e2db447e" |
100 |
BITCOINCORE_RBF_PATCHFILE="${MyPN}-rbf-v0.11.0rc3.patch" |
102 |
BITCOINCORE_RBF_PATCHFILE="${MyPN}-rbf-v0.11.0rc3.patch" |
101 |
fi |
103 |
fi |
|
|
104 |
BITCOINCORE_KNOTS_USE=ljr |
102 |
;; |
105 |
;; |
103 |
0.12* | 0.13*) |
106 |
0.12* | 0.13*) |
104 |
BITCOINCORE_MINOR=$(get_version_component_range 2) |
107 |
BITCOINCORE_MINOR=$(get_version_component_range 2) |
Lines 112-119
case "${PV}" in
Link Here
|
112 |
LIBSECP256K1_DEPEND="=dev-libs/libsecp256k1-0.0.0_pre20151118[recovery]" |
115 |
LIBSECP256K1_DEPEND="=dev-libs/libsecp256k1-0.0.0_pre20151118[recovery]" |
113 |
UNIVALUE_DEPEND="dev-libs/univalue" |
116 |
UNIVALUE_DEPEND="dev-libs/univalue" |
114 |
BITCOINCORE_LJR_NAME=knots |
117 |
BITCOINCORE_LJR_NAME=knots |
|
|
118 |
if in_bcc_iuse ljr; then |
119 |
BITCOINCORE_KNOTS_USE=ljr |
120 |
fi |
115 |
if in_bcc_policy spamfilter; then |
121 |
if in_bcc_policy spamfilter; then |
116 |
REQUIRED_USE="${REQUIRED_USE} bitcoin_policy_spamfilter? ( ljr )" |
122 |
REQUIRED_USE="${REQUIRED_USE} bitcoin_policy_spamfilter? ( ${BITCOINCORE_KNOTS_USE} )" |
117 |
fi |
123 |
fi |
118 |
;; |
124 |
;; |
119 |
9999*) |
125 |
9999*) |
Lines 226-236
DEPEND="${DEPEND} ${BITCOINCORE_COMMON_DEPEND}
Link Here
|
226 |
if [ "${BITCOINCORE_NEED_LEVELDB}" = "1" ]; then |
232 |
if [ "${BITCOINCORE_NEED_LEVELDB}" = "1" ]; then |
227 |
RDEPEND="${RDEPEND} virtual/bitcoin-leveldb" |
233 |
RDEPEND="${RDEPEND} virtual/bitcoin-leveldb" |
228 |
fi |
234 |
fi |
229 |
if in_bcc_iuse ljr; then |
235 |
if in_bcc_iuse ${BITCOINCORE_KNOTS_USE}; then |
230 |
if [ "$BITCOINCORE_SERIES" = "0.10.x" ]; then |
236 |
if [ "$BITCOINCORE_SERIES" = "0.10.x" ]; then |
231 |
DEPEND="${DEPEND} ljr? ( dev-vcs/git )" |
237 |
DEPEND="${DEPEND} ${BITCOINCORE_KNOTS_USE}? ( dev-vcs/git )" |
232 |
elif [ "${BITCOINCORE_LJR_NAME}" = "knots" ]; then |
238 |
elif [ "${BITCOINCORE_LJR_NAME}" = "knots" ]; then |
233 |
DEPEND="${DEPEND} ljr? ( dev-lang/perl )" |
239 |
DEPEND="${DEPEND} ${BITCOINCORE_KNOTS_USE}? ( dev-lang/perl )" |
234 |
fi |
240 |
fi |
235 |
fi |
241 |
fi |
236 |
|
242 |
|
Lines 247-253
bitcoincore_policymsg() {
Link Here
|
247 |
|
253 |
|
248 |
bitcoincore_pkg_pretend() { |
254 |
bitcoincore_pkg_pretend() { |
249 |
bitcoincore_policymsg_flag=false |
255 |
bitcoincore_policymsg_flag=false |
250 |
if use_if_iuse ljr || use_if_iuse 1stclassmsg || use_if_iuse addrindex || use_if_iuse xt || { use_if_iuse zeromq && [ "${BITCOINCORE_MINOR}" -lt 12 ]; }; then |
256 |
if use_if_iuse ${BITCOINCORE_KNOTS_USE} || use_if_iuse 1stclassmsg || use_if_iuse addrindex || use_if_iuse xt || { use_if_iuse zeromq && [ "${BITCOINCORE_MINOR}" -lt 12 ]; }; then |
251 |
einfo "Extra functionality improvements to Bitcoin Core are enabled." |
257 |
einfo "Extra functionality improvements to Bitcoin Core are enabled." |
252 |
bitcoincore_policymsg_flag=true |
258 |
bitcoincore_policymsg_flag=true |
253 |
if use_if_iuse addrindex addrindex; then |
259 |
if use_if_iuse addrindex addrindex; then |
Lines 312-318
bitcoincore_prepare() {
Link Here
|
312 |
else |
318 |
else |
313 |
epatch "$(LJR_PATCH syslibs)" |
319 |
epatch "$(LJR_PATCH syslibs)" |
314 |
fi |
320 |
fi |
315 |
if use_if_iuse ljr; then |
321 |
if use_if_iuse ${BITCOINCORE_KNOTS_USE}; then |
316 |
if [ "${BITCOINCORE_LJR_NAME}" = "knots" ]; then |
322 |
if [ "${BITCOINCORE_LJR_NAME}" = "knots" ]; then |
317 |
bitcoincore_predelete_patch "$(LJR_PATCH f)" |
323 |
bitcoincore_predelete_patch "$(LJR_PATCH f)" |
318 |
bitcoincore_predelete_patch "$(LJR_PATCH branding)" |
324 |
bitcoincore_predelete_patch "$(LJR_PATCH branding)" |