commit:     9ffdbddce82530f122c8224b9438611695bcbc5f
Author:     Theo Anderson <telans <AT> posteo <DOT> de>
AuthorDate: Mon Jan  4 21:40:49 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Jan  4 21:40:49 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9ffdbddc

net-p2p/monero: add live ebuild

https://github.com/gentoo-monero/gentoo-monero/pull/12
Co-authored-by: William Batista <bootlegbilly <AT> protonmail.ch>
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans <AT> posteo.de>

 net-p2p/monero/monero-0.17.1.7.ebuild                  | 16 +++++++++++-----
 net-p2p/monero/monero-0.17.1.8.ebuild                  | 12 +++++++++---
 .../{monero-0.17.1.7.ebuild => monero-9999.ebuild}     | 18 +++++++++++-------
 3 files changed, 31 insertions(+), 15 deletions(-)

diff --git a/net-p2p/monero/monero-0.17.1.7.ebuild 
b/net-p2p/monero/monero-0.17.1.7.ebuild
index 5cfdcb4d..fb62cb79 100644
--- a/net-p2p/monero/monero-0.17.1.7.ebuild
+++ b/net-p2p/monero/monero-0.17.1.7.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -7,11 +7,17 @@ inherit cmake systemd
 
 DESCRIPTION="The secure, private, untraceable cryptocurrency"
 HOMEPAGE="https://github.com/monero-project/monero";
-SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/monero-project/monero.git";
+else
+       SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~x86"
+fi
 
 LICENSE="BSD MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
 IUSE="+daemon libressl readline +tools +wallet-cli +wallet-rpc"
 REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )"
 RESTRICT="test"
@@ -35,8 +41,8 @@ RDEPEND="${DEPEND}"
 BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
-       "${FILESDIR}/${P}-linkjobs.patch"
-       "${FILESDIR}/${P}-unbundle-dependencies.patch"
+       "${FILESDIR}/${PN}-0.17.1.7-linkjobs.patch"
+       "${FILESDIR}/${PN}-0.17.1.7-unbundle-dependencies.patch"
 )
 
 src_configure() {

diff --git a/net-p2p/monero/monero-0.17.1.8.ebuild 
b/net-p2p/monero/monero-0.17.1.8.ebuild
index 29d4250f..fb62cb79 100644
--- a/net-p2p/monero/monero-0.17.1.8.ebuild
+++ b/net-p2p/monero/monero-0.17.1.8.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -7,11 +7,17 @@ inherit cmake systemd
 
 DESCRIPTION="The secure, private, untraceable cryptocurrency"
 HOMEPAGE="https://github.com/monero-project/monero";
-SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/monero-project/monero.git";
+else
+       SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~x86"
+fi
 
 LICENSE="BSD MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
 IUSE="+daemon libressl readline +tools +wallet-cli +wallet-rpc"
 REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )"
 RESTRICT="test"

diff --git a/net-p2p/monero/monero-0.17.1.7.ebuild 
b/net-p2p/monero/monero-9999.ebuild
similarity index 87%
copy from net-p2p/monero/monero-0.17.1.7.ebuild
copy to net-p2p/monero/monero-9999.ebuild
index 5cfdcb4d..528e57f4 100644
--- a/net-p2p/monero/monero-0.17.1.7.ebuild
+++ b/net-p2p/monero/monero-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -7,11 +7,18 @@ inherit cmake systemd
 
 DESCRIPTION="The secure, private, untraceable cryptocurrency"
 HOMEPAGE="https://github.com/monero-project/monero";
-SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+if [[ ${PV} == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/monero-project/monero.git";
+       EGIT_SUBMODULES=()
+else
+       SRC_URI="https://github.com/monero-project/monero/archive/v${PV}.tar.gz 
-> ${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm64 ~x86"
+fi
 
 LICENSE="BSD MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~x86"
 IUSE="+daemon libressl readline +tools +wallet-cli +wallet-rpc"
 REQUIRED_USE="|| ( daemon tools wallet-cli wallet-rpc )"
 RESTRICT="test"
@@ -34,10 +41,7 @@ DEPEND="
 RDEPEND="${DEPEND}"
 BDEPEND="virtual/pkgconfig"
 
-PATCHES=(
-       "${FILESDIR}/${P}-linkjobs.patch"
-       "${FILESDIR}/${P}-unbundle-dependencies.patch"
-)
+PATCHES=( "${FILESDIR}/${PN}-0.17.1.7-unbundle-dependencies.patch" )
 
 src_configure() {
        local mycmakeargs=(

Reply via email to