commit: 1d7914418b697ed09d4b1e4774c2dd02267e9064 Author: Eric Joldasov <bratishkaerik <AT> landless-city <DOT> net> AuthorDate: Mon Oct 28 22:08:24 2024 +0000 Commit: Eric Joldasov <bratishkaerik <AT> getgoogleoff <DOT> me> CommitDate: Mon Oct 28 22:08:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1d791441
www-apps/mycorrhiza: sync 9999 with 1.15.1 Signed-off-by: Eric Joldasov <bratishkaerik <AT> landless-city.net> www-apps/mycorrhiza/mycorrhiza-9999.ebuild | 36 ++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/www-apps/mycorrhiza/mycorrhiza-9999.ebuild b/www-apps/mycorrhiza/mycorrhiza-9999.ebuild index a25c3ce31..aaa026ade 100644 --- a/www-apps/mycorrhiza/mycorrhiza-9999.ebuild +++ b/www-apps/mycorrhiza/mycorrhiza-9999.ebuild @@ -1,35 +1,53 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit go-module git-r3 +inherit go-module DESCRIPTION="Git-based wiki engine written in Go using mycomarkup" HOMEPAGE="https://mycorrhiza.wiki" -EGIT_REPO_URI="https://github.com/bouncepaw/mycorrhiza" +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/bouncepaw/mycorrhiza" + inherit git-r3 +else + SRC_URI=" + https://github.com/bouncepaw/mycorrhiza/archive/v${PV}.tar.gz -> ${P}.tar.gz + https://codeberg.org/BratishkaErik/distfiles/releases/download/mycorrhiza-${PV}/mycorrhiza-${PV}-vendor.tar.xz + " + KEYWORDS="~amd64 ~x86" +fi LICENSE="AGPL-3 MIT Apache-2.0 BSD BSD-2 CC-BY-4.0" SLOT="0" -BDEPEND=">=dev-lang/go-1.19.0" +RESTRICT="mirror" + +BDEPEND=">=dev-lang/go-1.22" RDEPEND="dev-vcs/git" +DOCS=( "README.md" ) + src_unpack() { - git-r3_src_unpack - go-module_live_vendor + if [[ ${PV} == 9999 ]]; then + git-r3_src_unpack + go-module_live_vendor + fi + go-module_src_unpack } src_compile() { - ego build -buildmode=pie -ldflags "-s -linkmode external -extldflags '${LDFLAGS}'" -trimpath . + GOFLAGS+=" -mod=vendor -trimpath" + local go_ldflags="-s -linkmode external -extldflags \"${LDFLAGS}\"" + ego build ${GOFLAGS} -ldflags="${go_ldflags}" . } src_install() { dobin mycorrhiza + + einstalldocs doman help/mycorrhiza.1 - dodoc Boilerplate.md - dodoc README.md } pkg_postinst() {
