From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1660219-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 6ADCC159C9B
	for <garchives@archives.gentoo.org>; Fri,  9 Aug 2024 15:40:19 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id BAA5D2BC01C;
	Fri,  9 Aug 2024 15:40:18 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id A51A82BC01C
	for <gentoo-commits@lists.gentoo.org>; Fri,  9 Aug 2024 15:40:18 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id B8F093430E1
	for <gentoo-commits@lists.gentoo.org>; Fri,  9 Aug 2024 15:40:17 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 26450174C
	for <gentoo-commits@lists.gentoo.org>; Fri,  9 Aug 2024 15:40:16 +0000 (UTC)
From: "Victor Skovorodnikov" <victor3.14@yandex.com>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Victor Skovorodnikov" <victor3.14@yandex.com>
Message-ID: <1723218002.5435c61f916bc871cc808b5b49b41144a7109dda.victor3.14@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-p2p/dogecoin-qt/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: net-p2p/dogecoin-qt/dogecoin-qt-9999.ebuild
X-VCS-Directories: net-p2p/dogecoin-qt/
X-VCS-Committer: victor3.14
X-VCS-Committer-Name: Victor Skovorodnikov
X-VCS-Revision: 5435c61f916bc871cc808b5b49b41144a7109dda
X-VCS-Branch: dev
Date: Fri,  9 Aug 2024 15:40:16 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 112ddf1b-57cb-4703-8986-26d90af6f228
X-Archives-Hash: 18df80e2d11b2b63cdb136c0dacdf78f

commit:     5435c61f916bc871cc808b5b49b41144a7109dda
Author:     Victor Skovorodnikov <victor3.14 <AT> yandex <DOT> com>
AuthorDate: Fri Aug  9 15:30:09 2024 +0000
Commit:     Victor Skovorodnikov <victor3.14 <AT> yandex <DOT> com>
CommitDate: Fri Aug  9 15:40:02 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5435c61f

net-p2p/dogecoin-qt: add 9999

- adding ebuild for live version from master branch.
- Berkley DB and 'media-gfx/qrencode' dependencies are contingent upon 'wallet' and 'gui' selections  in this ebuild release.

Signed-off-by: Victor Skovorodnikov <victor3.14 <AT> yandex.com>

 net-p2p/dogecoin-qt/dogecoin-qt-9999.ebuild | 146 ++++++++++++++++++++++++++++
 1 file changed, 146 insertions(+)

diff --git a/net-p2p/dogecoin-qt/dogecoin-qt-9999.ebuild b/net-p2p/dogecoin-qt/dogecoin-qt-9999.ebuild
new file mode 100644
index 000000000..cfd29f8fa
--- /dev/null
+++ b/net-p2p/dogecoin-qt/dogecoin-qt-9999.ebuild
@@ -0,0 +1,146 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+WANT_AUTOCONF="2.5"
+inherit autotools desktop xdg-utils flag-o-matic git-r3
+DESCRIPTION="Dogecoin Core Qt for desktop. Downloaded blockchain is under 2.2GB. Much secure."
+HOMEPAGE="https://github.com/dogecoin"
+EGIT_REPO_URI="https://github.com/dogecoin/dogecoin.git"
+
+WORKDIR_="${WORKDIR}/${P}"
+S="${WORKDIR_}"
+
+LICENSE="MIT"
+SLOT="0"
+DB_VER="5.3"
+IUSE="cpu_flags_x86_avx2 cpu_flags_x86_sse2 intel-avx2 dogecoind experimental +gui +pie +prune scrypt-sse2 +ssp tests utils +wallet zmq"
+REQUIRED_USE="!gui? ( dogecoind utils  ) dogecoind? ( utils ) intel-avx2?  ( experimental ) scrypt-sse2? ( experimental )  experimental? ( || ( intel-avx2 scrypt-sse2 ) )"
+DOGEDIR="/opt/${PN}"
+DEPEND="
+	dev-libs/libevent:=
+	dev-libs/protobuf
+	dev-libs/openssl
+	dev-build/libtool
+	dev-build/automake:=
+	gui? ( dev-qt/qtcore dev-qt/qtgui dev-qt/qtwidgets dev-qt/qtdbus dev-qt/qtnetwork dev-qt/qtprintsupport dev-qt/linguist-tools:= )
+	>=dev-libs/boost-1.84.0
+	wallet? ( sys-libs/db:"${DB_VER}"=[cxx]
+		gui? ( media-gfx/qrencode )
+	)
+	zmq? ( net-libs/cppzmq )
+"
+
+RDEPEND="${DEPEND}
+	dev-vcs/git
+	dev-cpp/abseil-cpp
+	cpu_flags_x86_avx2? (
+		intel-avx2? ( ~app-crypt/intel-ipsec-mb-1.3 )
+	)
+"
+
+BDEPEND="
+	dev-build/autoconf
+	dev-build/automake
+"
+
+pkg_pretend() {
+
+		if use intel-avx2 && [[ ! -e "${ROOT}"/etc/portage/patches/app-crypt/intel-ipsec-mb/remove_digest_init.patch ]]; then
+			eerror "${ROOT}/etc/portage/patches/app-crypt/intel-ipsec-mb/remove_digest_init.patch does not exist!"
+			eerror "To build with avx2 intel support, please create ${ROOT}/etc/portage/patches/app-crypt/intel-ipsec-mb directory"
+			eerror "and copy patch from package net-p2p/dogecoin-qt/files/intel-ipsec-mb/remove_digest_init.patch into that directory"
+			die
+		fi
+}
+
+src_prepare() {
+	if use pie && use ssp ; then
+		PATCHES+=( "${FILESDIR}"/hardened-all.patch )
+	elif use pie && ! use ssp ; then
+		PATCHES+=( "${FILESDIR}"/hardened-no-ssp.patch )
+	elif use ssp && ! use pie ; then
+		PATCHES+=( "${FILESDIR}"/hardened-no-pie.patch )
+	else
+		PATCHES+=( "${FILESDIR}"/hardened-minimal.patch )
+	fi
+
+	default
+
+	einfo "Generating autotools files..."
+	eaclocal -I "${WORKDIR_}"
+	eautoreconf
+}
+
+src_configure() {
+	local my_econf=(
+		--bindir="${DOGEDIR}/bin"
+		--disable-bench
+		--enable-c++14
+		$(use_with gui qt5)
+		$(use_with intel-avx2 intel-avx2)
+		$(use_with dogecoind daemon)
+		$(use_with utils utils)
+		$(use_enable wallet)
+		$(use_enable zmq)
+		$(use_enable tests tests)
+		$(use_enable scrypt-sse2 scrypt-sse2)
+		$(use_enable experimental experimental)
+	)
+
+	econf "${my_econf[@]}"
+}
+
+src_install() {
+	emake DESTDIR="${D}" install
+	insinto "${DOGEDIR}/bin"
+
+	if use gui ; then
+        insinto /usr/share/pixmaps
+        doins src/qt/res/icons/dogecoin.png
+        dosym "${DOGEDIR}/bin/${PN}" "/usr/bin/${PN}"
+
+        if use prune ; then
+            domenu "${FILESDIR}"/"${PN}-prune.desktop"
+        else
+            domenu "${FILESDIR}"/"${PN}.desktop"
+        fi
+	fi
+
+	if use dogecoind ; then
+		dosym "${DOGEDIR}/bin/dogecoind" "/usr/bin/dogecoind"
+		dosym "${DOGEDIR}/bin/dogecoin-cli" "/usr/bin/dogecoin-cli"
+	fi
+
+	find "${ED}" -type f -name '*.la' -delete || die
+}
+
+pkg_postinst() {
+	xdg_desktop_database_update
+	xdg_mimeinfo_database_update
+
+	if use gui ; then
+		elog "Dogecoin Core (Qt) ${PV} has been installed."
+		elog "Dogecoin Core (Qt) binaries have been placed in ${DOGEDIR}/bin."
+		elog "${PN} has been symlinked with /usr/bin/${PN}."
+	else
+		elog "Dogecoin Core ${PV} has been installed."
+		elog "Dogecoin Core binaries have been placed in ${DOGEDIR}/bin."
+	fi
+
+	if use dogecoind ; then
+		elog "dogecoin daemon has been symlinked with /usr/bin/dogecoind."
+		elog "dogecoin client utils have been symlinked with /usr/bin/dogecoin-cli."
+	fi
+
+	if ( ( use cpu_flags_x86_avx2 &&  ! use intel-avx2 ) && ( use cpu_flags_x86_sse2 && ! use scrypt-sse2 ) ); then
+		einfo "NOTE: Experimental avx2 and sse2 CPU support in ${PV} can be"
+		einfo "activated using 'intel-avx2' and/or 'scrypt-sse2' USE flags, "
+		einfo "together with 'experimental' USE flag for this version."
+	fi
+}
+
+pkg_postrm() {
+	xdg_desktop_database_update
+	xdg_mimeinfo_database_update
+}