commit: a2aa2a44f9045ec19d6a8ddcbe8344e96da32d7b Author: ingenarel <ingenarelitems <AT> gmail <DOT> com> AuthorDate: Tue Oct 21 04:54:58 2025 +0000 Commit: Saad Abdullah <ingenarelitems <AT> gmail <DOT> com> CommitDate: Tue Oct 21 04:54:58 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=a2aa2a44
net-im/discordo: add 0_pre20251022 version for the 9999 only package based on the discussions on https://github.com/gentoo/guru/pull/376 i made a versioned ebuild, the 9999 ebuild was also changed to create a proper template that will also work with future releases, if any Signed-off-by: ingenarel <ingenarelitems <AT> gmail.com> net-im/discordo/Manifest | 2 ++ net-im/discordo/discordo-0_pre20251022.ebuild | 50 +++++++++++++++++++++++++++ net-im/discordo/discordo-9999.ebuild | 19 +++++++--- 3 files changed, 67 insertions(+), 4 deletions(-) diff --git a/net-im/discordo/Manifest b/net-im/discordo/Manifest new file mode 100644 index 0000000000..7d19164acb --- /dev/null +++ b/net-im/discordo/Manifest @@ -0,0 +1,2 @@ +DIST discordo-0_pre20251022-deps.tar.xz 117272440 BLAKE2B d1c2c55d86762c02669b59c3fd185637bc5e6f96e8cabed5490be1fde9f17a7336e623ef7bf9c7810e6c62ac37f7018ffcda585e7d5590a8f9c14fdbf3049e65 SHA512 2d505f1be0bd6788aa19bced26bed92c339405fd9333c5cf0f2eb1df9050b33440bc51e684e379dd7e027a229ea8242ecfd35bb5d86ce5ffd8fa3aa9104cb401 +DIST discordo-0_pre20251022.tar.gz 589102 BLAKE2B 867d06f400a2c9c25ba58d0aa110541b861389f0ff5678d2df9ba14ee2e42f3fde01d93df7c0164a25d60512c07db0a23e55ab03f90ed1068605daa54ee99f98 SHA512 e2364b6cbb332e8a3aebbb9346662453da2c0234afee9e67b5513573052e9db0141c8125d9bb4b087f0a598bc0431510ce5a55d90240571dd5dc01594c5083ee diff --git a/net-im/discordo/discordo-0_pre20251022.ebuild b/net-im/discordo/discordo-0_pre20251022.ebuild new file mode 100644 index 0000000000..1c14e67760 --- /dev/null +++ b/net-im/discordo/discordo-0_pre20251022.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="A lightweight, secure, and feature-rich Discord TUI client. " +HOMEPAGE="https://github.com/ayn2op/discordo" + +if [[ "${PV}" == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/ayn2op/$PN.git" + src_unpack() { + git-r3_src_unpack + go-module_live_vendor + } +else + + # use this only for 0pre_YYYYMMDD builds, otherwise, keep it empty. + # needs to be changed if you're making a new 0pre_YYYYMMDD build + GIT_COMMIT="81e4924c22f0f9359ffa4cb482c9069998b70f1b" + + # If another person updates it, be sure to change this line to your own depfile link + SRC_URI="https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz " + + KEYWORDS="~amd64" + + if [[ -n "$GIT_COMMIT" ]]; then + SRC_URI+="https://github.com/ayn2op/$PN/archive/$GIT_COMMIT.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${GIT_COMMIT}" + else + SRC_URI+="https://github.com/ayn2op/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + fi +fi + +LICENSE="MIT" +SLOT="0" +BDEPEND=" + >=dev-lang/go-1.25 + x11-libs/libnotify +" + +src_compile() { + ego build -o "bin/$PN" +} + +src_install() { + dobin "bin/$PN" +} diff --git a/net-im/discordo/discordo-9999.ebuild b/net-im/discordo/discordo-9999.ebuild index cf8d8497c0..873319b352 100644 --- a/net-im/discordo/discordo-9999.ebuild +++ b/net-im/discordo/discordo-9999.ebuild @@ -7,6 +7,7 @@ inherit go-module DESCRIPTION="A lightweight, secure, and feature-rich Discord TUI client. " HOMEPAGE="https://github.com/ayn2op/discordo" + if [[ "${PV}" == 9999 ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/ayn2op/$PN.git" @@ -15,12 +16,22 @@ if [[ "${PV}" == 9999 ]]; then go-module_live_vendor } else + + # use this only for 0pre_YYYYMMDD builds, otherwise, keep it empty. + # needs to be changed if you're making a new 0pre_YYYYMMDD build + GIT_COMMIT="" + + # If another person updates it, be sure to change this line to your own depfile link + SRC_URI="https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz " + KEYWORDS="~amd64" - SRC_URI="https://github.com/ayn2op/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - # if discordo ever makes a version in future, and if another person updates it, be sure to change this line to your - # own depfile link - SRC_URI+=" https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz" + if [[ -n "$GIT_COMMIT" ]]; then + SRC_URI+="https://github.com/ayn2op/$PN/archive/$GIT_COMMIT.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${GIT_COMMIT}" + else + SRC_URI+="https://github.com/ayn2op/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + fi fi LICENSE="MIT"
