dev-util/vfox: new package, add 0.6.0
This commit is contained in:
1 parent
721d711a9b
commit
db232d40ba
3 files changed
+49
No files matched your search
@@ -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
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>tsln1998@gmail.com</email>
|
||||
<name>Tsln</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">version-fox/vfox</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -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}
|
||||
}
|
||||
Reference in new issue
Block a user