diff --git a/dev-util/vfox/Manifest b/dev-util/vfox/Manifest new file mode 100644 index 00000000000..9494432513c --- /dev/null +++ b/dev-util/vfox/Manifest @@ -0,0 +1,2 @@ +DIST vfox-0.6.0-vendor.tar.xz 1829632 BLAKE2B d7ffe360cdb777f3a42f57894190b5ac9504224f15d451fa42055206c9b510ae27a0c413213301e1e5e09ec1be4e9c2336d7f5c575bed0553a0ef5f0ddd3bb3b SHA512 7e02cb0da5f1d721a0b9563bad64898684ec3be4636772af7161c7764501056806128e4c91676683f284140aed3b8dda829df6aa2b4f3ad761c624550a1d541e +DIST vfox-0.6.0.tar.gz 3273354 BLAKE2B a733404dc9ab1721fdb8f67e47f6d70e6b102632424df91e35850a90fa59b75b979ae3ecbfb4b1481e1b407eeebfbc0ecf982be16d21eb487ddf58d283a9702e SHA512 5544408fc689660398d3307eb2158067852f4aa59d403c96f930a795c5d6e510d86f55717f3c1d0a23461549a0bf55e9e0abc6715b196145c14fcd8cfb60a4c7 diff --git a/dev-util/vfox/metadata.xml b/dev-util/vfox/metadata.xml new file mode 100644 index 00000000000..0e0fa0f807f --- /dev/null +++ b/dev-util/vfox/metadata.xml @@ -0,0 +1,11 @@ + + + + + tsln1998@gmail.com + Tsln + + + version-fox/vfox + + diff --git a/dev-util/vfox/vfox-0.6.0.ebuild b/dev-util/vfox/vfox-0.6.0.ebuild new file mode 100644 index 00000000000..1e375e34fc1 --- /dev/null +++ b/dev-util/vfox/vfox-0.6.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="A cross-platform version manager, extendable via plugins" +HOMEPAGE="https://vfox.lhan.me https://github.com/version-fox/vfox" +SRC_URI="https://github.com/version-fox/vfox/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://github.com/tsln1998/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm arm64 x86" + +RDEPEND="app-shells/bash" +RDEPEND+=" !dev-util/vfox-bin" +BDEPEND=">=dev-lang/go-1.21.7" + +src_compile() { + local ldflags="-w -s" + ego build -o ${P} -trimpath -ldflags "${ldflags}" +} + +src_install() { + newbin ${P} ${PN} + + dodoc README.md + + insinto /usr/share/bash-completion/completions + newins completions/bash_autocomplete ${PN} + + insinto /usr/share/zsh/site-functions + newins completions/zsh_autocomplete _${PN} +}