Lines 37-43
fi
Link Here
|
37 |
|
37 |
|
38 |
EXPORT_FUNCTIONS src_prepare src_test src_install |
38 |
EXPORT_FUNCTIONS src_prepare src_test src_install |
39 |
|
39 |
|
40 |
if in_bcc_iuse ljr || in_bcc_iuse 1stclassmsg || in_bcc_iuse zeromq || [ -n "$BITCOINCORE_POLICY_PATCHES" ]; then |
40 |
if in_bcc_iuse ljr || in_bcc_iuse knots || in_bcc_iuse 1stclassmsg || in_bcc_iuse zeromq || [ -n "$BITCOINCORE_POLICY_PATCHES" ]; then |
41 |
EXPORT_FUNCTIONS pkg_pretend |
41 |
EXPORT_FUNCTIONS pkg_pretend |
42 |
fi |
42 |
fi |
43 |
|
43 |
|
Lines 53-59
if [[ ! ${_BITCOINCORE_ECLASS} ]]; then
Link Here
|
53 |
|
53 |
|
54 |
# @ECLASS-VARIABLE: BITCOINCORE_LJR_DATE |
54 |
# @ECLASS-VARIABLE: BITCOINCORE_LJR_DATE |
55 |
# @DESCRIPTION: |
55 |
# @DESCRIPTION: |
56 |
# Set this variable before the inherit line, to the datestamp of the ljr |
56 |
# Set this variable before the inherit line, to the datestamp of the Knots |
57 |
# patchset. |
57 |
# patchset. |
58 |
|
58 |
|
59 |
# @ECLASS-VARIABLE: BITCOINCORE_POLICY_PATCHES |
59 |
# @ECLASS-VARIABLE: BITCOINCORE_POLICY_PATCHES |
Lines 72-77
WALLET_DEPEND="sys-libs/db:$(db_ver_to_slot "${DB_VER}")[cxx]"
Link Here
|
72 |
LIBEVENT_DEPEND="" |
72 |
LIBEVENT_DEPEND="" |
73 |
UNIVALUE_DEPEND="" |
73 |
UNIVALUE_DEPEND="" |
74 |
BITCOINCORE_LJR_NAME=ljr |
74 |
BITCOINCORE_LJR_NAME=ljr |
|
|
75 |
BITCOINCORE_KNOTS_USE=knots |
75 |
[ -n "${BITCOINCORE_LJR_PV}" ] || BITCOINCORE_LJR_PV="${PV}" |
76 |
[ -n "${BITCOINCORE_LJR_PV}" ] || BITCOINCORE_LJR_PV="${PV}" |
76 |
|
77 |
|
77 |
case "${PV}" in |
78 |
case "${PV}" in |
Lines 87-94
case "${PV}" in
Link Here
|
87 |
LIBSECP256K1_DEPEND="=dev-libs/libsecp256k1-0.0.0_pre20151118[recovery]" |
88 |
LIBSECP256K1_DEPEND="=dev-libs/libsecp256k1-0.0.0_pre20151118[recovery]" |
88 |
UNIVALUE_DEPEND="dev-libs/univalue" |
89 |
UNIVALUE_DEPEND="dev-libs/univalue" |
89 |
BITCOINCORE_LJR_NAME=knots |
90 |
BITCOINCORE_LJR_NAME=knots |
|
|
91 |
if in_bcc_iuse ljr; then |
92 |
BITCOINCORE_KNOTS_USE=ljr |
93 |
fi |
90 |
if in_bcc_policy spamfilter; then |
94 |
if in_bcc_policy spamfilter; then |
91 |
REQUIRED_USE="${REQUIRED_USE} bitcoin_policy_spamfilter? ( ljr )" |
95 |
REQUIRED_USE="${REQUIRED_USE} bitcoin_policy_spamfilter? ( ${BITCOINCORE_KNOTS_USE} )" |
92 |
fi |
96 |
fi |
93 |
;; |
97 |
;; |
94 |
9999*) |
98 |
9999*) |
Lines 201-209
DEPEND="${DEPEND} ${BITCOINCORE_COMMON_DEPEND}
Link Here
|
201 |
if [ "${BITCOINCORE_NEED_LEVELDB}" = "1" ]; then |
205 |
if [ "${BITCOINCORE_NEED_LEVELDB}" = "1" ]; then |
202 |
RDEPEND="${RDEPEND} virtual/bitcoin-leveldb" |
206 |
RDEPEND="${RDEPEND} virtual/bitcoin-leveldb" |
203 |
fi |
207 |
fi |
204 |
if in_bcc_iuse ljr; then |
208 |
if in_bcc_iuse ${BITCOINCORE_KNOTS_USE}; then |
205 |
if [ "${BITCOINCORE_LJR_NAME}" = "knots" ]; then |
209 |
if [ "${BITCOINCORE_LJR_NAME}" = "knots" ]; then |
206 |
DEPEND="${DEPEND} ljr? ( dev-lang/perl )" |
210 |
DEPEND="${DEPEND} ${BITCOINCORE_KNOTS_USE}? ( dev-lang/perl )" |
207 |
fi |
211 |
fi |
208 |
fi |
212 |
fi |
209 |
|
213 |
|
Lines 220-226
bitcoincore_policymsg() {
Link Here
|
220 |
|
224 |
|
221 |
bitcoincore_pkg_pretend() { |
225 |
bitcoincore_pkg_pretend() { |
222 |
bitcoincore_policymsg_flag=false |
226 |
bitcoincore_policymsg_flag=false |
223 |
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 |
227 |
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 |
224 |
einfo "Extra functionality improvements to Bitcoin Core are enabled." |
228 |
einfo "Extra functionality improvements to Bitcoin Core are enabled." |
225 |
bitcoincore_policymsg_flag=true |
229 |
bitcoincore_policymsg_flag=true |
226 |
if use_if_iuse addrindex addrindex; then |
230 |
if use_if_iuse addrindex addrindex; then |
Lines 279-285
bitcoincore_prepare() {
Link Here
|
279 |
else |
283 |
else |
280 |
epatch "$(LJR_PATCH syslibs)" |
284 |
epatch "$(LJR_PATCH syslibs)" |
281 |
fi |
285 |
fi |
282 |
if use_if_iuse ljr; then |
286 |
if use_if_iuse ${BITCOINCORE_KNOTS_USE}; then |
283 |
if [ "${BITCOINCORE_LJR_NAME}" = "knots" ]; then |
287 |
if [ "${BITCOINCORE_LJR_NAME}" = "knots" ]; then |
284 |
bitcoincore_predelete_patch "$(LJR_PATCH f)" |
288 |
bitcoincore_predelete_patch "$(LJR_PATCH f)" |
285 |
bitcoincore_predelete_patch "$(LJR_PATCH branding)" |
289 |
bitcoincore_predelete_patch "$(LJR_PATCH branding)" |