commit: 83494c9273024d5a5fe5f535fc085f875efde500 Author: Craig Andrews <candrews <AT> gentoo <DOT> org> AuthorDate: Thu Jul 18 03:17:49 2019 +0000 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> CommitDate: Thu Jul 18 03:19:10 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83494c92
net-p2p/cpuminer-opt: 3.9.6 version bump Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> net-p2p/cpuminer-opt/Manifest | 1 + net-p2p/cpuminer-opt/cpuminer-opt-3.9.6.ebuild | 50 ++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) diff --git a/net-p2p/cpuminer-opt/Manifest b/net-p2p/cpuminer-opt/Manifest index 7fbb723ef37..3000ca4753c 100644 --- a/net-p2p/cpuminer-opt/Manifest +++ b/net-p2p/cpuminer-opt/Manifest @@ -15,3 +15,4 @@ DIST cpuminer-opt-3.9.5.2.tar.gz 1790289 BLAKE2B 3007e73d7b833f132b1fb50def05f3a DIST cpuminer-opt-3.9.5.3.tar.gz 1791944 BLAKE2B 7712ac9f1e66acc304a4d2bc6bd026fbf608bc33266b982cf1b302e804f2d7f9954cae75acc643a8755570ecd7ace3216c2ce0be9ed2f56e571c5d77cac71d94 SHA512 2463238275856706bc37b56d235e0ab3c5f17122bc4d01cd8bdcb638a1e87e762e500cf7c1b65f0dd450400ab9b003dfd43b55d23476e46f15f95c2a8d3c18f0 DIST cpuminer-opt-3.9.5.4.tar.gz 1784097 BLAKE2B 2be0d57549e8ce326d1ba543a35c87d723b1d5f36225d6201f193156220b29afa601269db1b5de52c1da8c9eaf5e9d3089ef5a8c6232cd462f3b2b11b521d5c2 SHA512 9924bd01c4cfa134c551457d8405700b04dc9b1d7f241b0d5172aad9d0090f95135465e628353a0e02763da16d420ee4c396b36d1544cc613b5b1025eccc7b52 DIST cpuminer-opt-3.9.5.tar.gz 1787557 BLAKE2B e6d5623c2752a4dc6eae669e6daba2f3a0a8542863a3268e632b6d0e4ee2cf203614cebd8e41e33d71c58262bfc90d1df0c7eab0d72db28d8df6f40795bfd887 SHA512 7fc2d7afa9a85a6ec9a9a87eee18f68e61f4875b579bcca3e8d4fc4541a3085ae59b566d2851b978abdf27efeeaa310db430c3efce07bb422548d0bddfda1fa4 +DIST cpuminer-opt-3.9.6.tar.gz 1789491 BLAKE2B d850ab596e373bc6a69c7b89123ed049221e91850b04910147f4830c02872494a97ce84783c8164a5e57eefbd4a8fe1367ae8781e24ad36cdbe21d526b9643f2 SHA512 aa20b21d47a3eaf9d512febd588c1d57c1ae9ea41c4b6c3818dd398cd5f50ef791014de2ec8ec68efe0be80f2d2748122bc373bcd2fb6dde5d274d78d615afb1 diff --git a/net-p2p/cpuminer-opt/cpuminer-opt-3.9.6.ebuild b/net-p2p/cpuminer-opt/cpuminer-opt-3.9.6.ebuild new file mode 100644 index 00000000000..666d27ee1c0 --- /dev/null +++ b/net-p2p/cpuminer-opt/cpuminer-opt-3.9.6.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools flag-o-matic systemd + +DESCRIPTION="Optimized multi algo CPU miner" +HOMEPAGE="https://github.com/JayDDee/cpuminer-opt" +IUSE="cpu_flags_x86_sse2 curl libressl" +LICENSE="GPL-2" +SLOT="0" +REQUIRED_USE="cpu_flags_x86_sse2" +DEPEND=" + dev-libs/gmp:0 + dev-libs/jansson + >=net-misc/curl-7.15[ssl] + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) +" +RDEPEND="${DEPEND}" +if [[ ${PV} == "9999" ]] ; then + SRC_URI="" + EGIT_REPO_URI="https://github.com/JayDDee/${PN}.git" + inherit git-r3 +else + KEYWORDS="~amd64" + SRC_URI="https://github.com/JayDDee/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +fi + +src_prepare() { + default + eautoreconf +} + +src_configure() { + append-ldflags -Wl,-z,noexecstack + econf --with-crypto --with-curl +} + +src_install() { + default + systemd_dounit "${FILESDIR}"/${PN}.service + insinto "/etc/${PN}" + doins cpuminer-conf.json +} + +src_test() { + ./cpuminer --cputest || die +}