net-p2p/dogecoin-qt: Added avx2 USE flag and re-factored ebuild

Signed-off-by: Victor Skovorodnikov <victor3.14@yandex.com>
This commit is contained in:
Victor Skovorodnikov
2023-07-11 16:24:03 -07:00
parent 2cba3283b8
commit b34dfaf8b9
2 changed files with 9 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ LICENSE="MIT"
SLOT="0"
DB_VER="5.3"
KEYWORDS="~amd64 ~x86"
IUSE="tests +wallet +prune zmq"
IUSE="avx2 tests +wallet +prune zmq"
DOGEDIR="/opt/${PN}"
DEPEND="
dev-libs/libevent:=
@@ -20,7 +20,11 @@ DEPEND="
sys-devel/libtool
sys-devel/automake:=
>=dev-libs/boost-1.81.0-r1
wallet? ( sys-libs/db:"${DB_VER}"=[cxx] )
avx2? ( app-crypt/intel-ipsec-mb )
wallet? (
sys-libs/db:"${DB_VER}"=[cxx]
media-gfx/qrencode
)
dev-qt/qtcore
dev-qt/qtgui
dev-qt/qtwidgets
@@ -28,7 +32,6 @@ DEPEND="
dev-qt/qtnetwork
dev-qt/qtprintsupport
dev-qt/linguist-tools:=
wallet? ( media-gfx/qrencode )
zmq? ( net-libs/cppzmq )
"
RDEPEND="${DEPEND}"
@@ -53,6 +56,7 @@ src_configure() {
./autogen.sh || die "autogen failed"
local my_econf=(
--enable-cxx
$(use_with avx2 intel-avx2)
$(use_with wallet incompatible-bdb)
--bindir="${DOGEDIR}/bin"
BDB_CFLAGS="-I/usr/include/db${DB_VER}"

View File

@@ -12,9 +12,10 @@
<name>Victor Skovorodnikov</name>
</maintainer>
<use>
<flag name="avx2">Build with Advanced Vector Extensions instructions support (if CPU model supports it)</flag>
<flag name="prune">Enables automatic pruning of old blocks to stay below 2.2GB target size (if ran from desktop)</flag>
<flag name="tests">Build Dogecoin Core Qt with tests option</flag>
<flag name="wallet">Build Dogecoin Core Qt with wallet support</flag>
<flag name="wallet">Build Dogecoin Core Qt with wallet</flag>
<flag name="zmq">Enables ZeroMQ notifications</flag>
</use>
<longdescription lang="en">