Add lf ebuild, update speedwm-9999

This commit is contained in:
speedie 2022-11-22 20:01:59 +01:00
parent 50ff53c02a
commit a0146034cd
4 changed files with 109 additions and 1 deletions

View file

@ -0,0 +1,76 @@
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module desktop
DESCRIPTION="Terminal file manager"
HOMEPAGE="https://github.com/gokcehan/${PN}"
if [[ "${PV}" = 9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/gokcehan/${PN}.git"
KEYWORDS="amd64 x86"
else
# temporary, for some reason tarballs wont compile
die
fi
LICENSE="MIT"
SLOT="0"
IUSE="+docs +desktop +bash zsh fish"
RDEPEND="
dev-lang/go
bash? ( app-shells/bash )
zsh? ( app-shells/zsh )
fish? ( app-shells/fish )
"
DEPEND="${RDEPEND}"
src_default() {
default
}
src_unpack() {
git-r3_src_unpack
go-module_live_vendor
}
src_compile () {
gen/build.sh || die
}
src_install() {
dobin "${PN}"
if use docs; then
doman "${PN}.1"
dodoc README.md
docinto examples
dodoc etc/{lf.{csh,vim},lfcd.{,c}sh,lfrc.example}
fi
if use bash; then
insinto /usr/share/bash-completion/completions
newins etc/lf.bash lf
fi
if use zsh; then
insinto /usr/share/zsh/site-functions
newins etc/lf.zsh _lf
fi
if use fish; then
insinto /usr/share/fish/vendor_completions.d
doins etc/lf.fish
insinto /usr/share/fish/vendor_functions.d
doins etc/lfcd.fish
fi
if use desktop; then
domenu lf.desktop
fi
}

View file

@ -0,0 +1,16 @@
BDEPEND=>=dev-lang/go-1.18 app-arch/unzip
DEFINED_PHASES=compile install unpack
DEPEND=dev-lang/go
DESCRIPTION=Terminal file manager
EAPI=8
HOMEPAGE=https://github.com/gokcehan/lf
INHERIT=go-module desktop
IUSE=+docs +bash zsh fish desktop
KEYWORDS=amd64 x86
LICENSE=MIT
RDEPEND=dev-lang/go
RESTRICT=strip
SLOT=0
SRC_URI=https://github.com/gokcehan/lf/archive/r27.tar.gz -> lf-27.tar.gz mirror://goproxy//github.com/gdamore/encoding/@v/v1.0.0.zip -> github.com%2Fgdamore%2Fencoding%2F@v%2Fv1.0.0.zip mirror://goproxy//github.com/gdamore/encoding/@v/v1.0.0.mod -> github.com%2Fgdamore%2Fencoding%2F@v%2Fv1.0.0.mod mirror://goproxy//github.com/gdamore/tcell/v2/@v/v2.3.1.zip -> github.com%2Fgdamore%2Ftcell%2Fv2%2F@v%2Fv2.3.1.zip mirror://goproxy//github.com/gdamore/tcell/v2/@v/v2.3.1.mod -> github.com%2Fgdamore%2Ftcell%2Fv2%2F@v%2Fv2.3.1.mod mirror://goproxy//github.com/lucasb-eyer/go-colorful/@v/v1.0.3.zip -> github.com%2Flucasb-eyer%2Fgo-colorful%2F@v%2Fv1.0.3.zip mirror://goproxy//github.com/lucasb-eyer/go-colorful/@v/v1.0.3.mod -> github.com%2Flucasb-eyer%2Fgo-colorful%2F@v%2Fv1.0.3.mod mirror://goproxy//github.com/mattn/go-runewidth/@v/v0.0.10.zip -> github.com%2Fmattn%2Fgo-runewidth%2F@v%2Fv0.0.10.zip mirror://goproxy//github.com/mattn/go-runewidth/@v/v0.0.10.mod -> github.com%2Fmattn%2Fgo-runewidth%2F@v%2Fv0.0.10.mod mirror://goproxy//github.com/rivo/uniseg/@v/v0.1.0.zip -> github.com%2Frivo%2Funiseg%2F@v%2Fv0.1.0.zip mirror://goproxy//github.com/rivo/uniseg/@v/v0.1.0.mod -> github.com%2Frivo%2Funiseg%2F@v%2Fv0.1.0.mod mirror://goproxy//golang.org/x/sys/@v/v0.0.0-20201119102817-f84b799fce68.mod -> golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20201119102817-f84b799fce68.mod mirror://goproxy//golang.org/x/sys/@v/v0.0.0-20220209214540-3681064d5158.zip -> golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20220209214540-3681064d5158.zip mirror://goproxy//golang.org/x/sys/@v/v0.0.0-20220209214540-3681064d5158.mod -> golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20220209214540-3681064d5158.mod mirror://goproxy//golang.org/x/term/@v/v0.0.0-20201210144234-2321bbc49cbf.mod -> golang.org%2Fx%2Fterm%2F@v%2Fv0.0.0-20201210144234-2321bbc49cbf.mod mirror://goproxy//golang.org/x/term/@v/v0.0.0-20210220032956-6a3ed077a48d.zip -> golang.org%2Fx%2Fterm%2F@v%2Fv0.0.0-20210220032956-6a3ed077a48d.zip mirror://goproxy//golang.org/x/term/@v/v0.0.0-20210220032956-6a3ed077a48d.mod -> golang.org%2Fx%2Fterm%2F@v%2Fv0.0.0-20210220032956-6a3ed077a48d.mod mirror://goproxy//golang.org/x/text/@v/v0.3.0.zip -> golang.org%2Fx%2Ftext%2F@v%2Fv0.3.0.zip mirror://goproxy//golang.org/x/text/@v/v0.3.0.mod -> golang.org%2Fx%2Ftext%2F@v%2Fv0.3.0.mod mirror://goproxy//gopkg.in/djherbis/times.v1/@v/v1.2.0.zip -> gopkg.in%2Fdjherbis%2Ftimes.v1%2F@v%2Fv1.2.0.zip mirror://goproxy//gopkg.in/djherbis/times.v1/@v/v1.2.0.mod -> gopkg.in%2Fdjherbis%2Ftimes.v1%2F@v%2Fv1.2.0.mod
_eclasses_=go-module 4c4b34f361efda91762ffeda8f632c02 desktop 7eb20ad915a0a318176d51bc2508ff5c
_md5_=545e8102936ce49e22172f9c05a35261

View file

@ -0,0 +1,15 @@
BDEPEND=>=dev-lang/go-1.18 app-arch/unzip >=dev-vcs/git-1.8.2.1[curl]
DEFINED_PHASES=compile install unpack
DEPEND=dev-lang/go
DESCRIPTION=Terminal file manager
EAPI=8
HOMEPAGE=https://github.com/gokcehan/lf
INHERIT=go-module desktop git-r3
IUSE=+docs +bash zsh fish desktop
LICENSE=MIT
PROPERTIES=live
RDEPEND=dev-lang/go
RESTRICT=strip
SLOT=0
_eclasses_=go-module 4c4b34f361efda91762ffeda8f632c02 desktop 7eb20ad915a0a318176d51bc2508ff5c git-r3 2347f8fe2d392b2a091191f94be37e6f
_md5_=545e8102936ce49e22172f9c05a35261

View file

@ -1,6 +1,7 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit savedconfig toolchain-funcs