summaryrefslogtreecommitdiff
path: root/app-misc
diff options
context:
space:
mode:
authorbaldr333 <ra@afu.re>2023-12-21 19:54:24 -0500
committerbaldr333 <ra@afu.re>2023-12-21 19:54:24 -0500
commit2f3f4f6a3db13640bf8e097b41fd1dbfc3701f81 (patch)
treed22ea7370713249178a4899262768d88af46223e /app-misc
Initial commit
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/lf/Manifest1
-rw-r--r--app-misc/lf/lf-9999.ebuild74
2 files changed, 75 insertions, 0 deletions
diff --git a/app-misc/lf/Manifest b/app-misc/lf/Manifest
new file mode 100644
index 0000000..a4dd3b9
--- /dev/null
+++ b/app-misc/lf/Manifest
@@ -0,0 +1 @@
+EBUILD lf-9999.ebuild 1951 BLAKE2B 6b3e546227c78ec1a7b651b9268b448bc020fb4cb6a675a4c37011290d9f0dd0025266fd028f842146160e5459772ab3ce0a815b95259f6efed51b3de42c92e3 SHA512 ba70e6dc85e491f23f538317c67ebc201c5c9f06a0d95a451dca040679ab3d9d92003968b02f217ab50ba24b3ee4828218178b2fdefe4068095ef5e1f3d05494
diff --git a/app-misc/lf/lf-9999.ebuild b/app-misc/lf/lf-9999.ebuild
new file mode 100644
index 0000000..b5533dd
--- /dev/null
+++ b/app-misc/lf/lf-9999.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit go-module
+
+DESCRIPTION="Terminal file manager"
+HOMEPAGE="https://github.com/gokcehan/${PN}"
+if [[ "${PV}" = 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="${HOMEPAGE}.git"
+ src_unpack() {
+ git-r3_src_unpack
+ go-module_live_vendor
+ }
+
+ src_compile () {
+ gen/build.sh || die
+ }
+else
+ EGO_SUM=(
+ "github.com/gdamore/encoding v1.0.0"
+ "github.com/gdamore/encoding v1.0.0/go.mod"
+ "github.com/gdamore/tcell/v2 v2.3.1"
+ "github.com/gdamore/tcell/v2 v2.3.1/go.mod"
+ "github.com/lucasb-eyer/go-colorful v1.0.3"
+ "github.com/lucasb-eyer/go-colorful v1.0.3/go.mod"
+ "github.com/mattn/go-runewidth v0.0.10"
+ "github.com/mattn/go-runewidth v0.0.10/go.mod"
+ "github.com/rivo/uniseg v0.1.0"
+ "github.com/rivo/uniseg v0.1.0/go.mod"
+ "golang.org/x/sys v0.0.0-20201119102817-f84b799fce68"
+ "golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod"
+ "golang.org/x/term v0.0.0-20201210144234-2321bbc49cbf/go.mod"
+ "golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d"
+ "golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod"
+ "golang.org/x/text v0.3.0"
+ "golang.org/x/text v0.3.0/go.mod"
+ "gopkg.in/djherbis/times.v1 v1.2.0"
+ "gopkg.in/djherbis/times.v1 v1.2.0/go.mod"
+ )
+
+ go-module_set_globals
+
+ SRC_URI="${HOMEPAGE}/archive/r${PV}.tar.gz -> ${P}.tar.gz
+ ${EGO_SUM_SRC_URI}"
+ KEYWORDS="amd64 x86"
+ S="${WORKDIR}/${PN}-r${PV}"
+
+ src_compile () {
+ version="r${PV}" gen/build.sh || die
+ }
+fi
+
+LICENSE="MIT"
+SLOT="0"
+
+src_install() {
+ dobin "${PN}"
+ doman "${PN}.1"
+ dodoc README.md
+ docinto examples
+ dodoc etc/{lf.{csh,vim},lfcd.{,c}sh,lfrc.example}
+
+ insinto /usr/share/bash-completion/completions
+ newins etc/lf.bash lf
+ insinto /usr/share/zsh/site-functions
+ newins etc/lf.zsh _lf
+ insinto /usr/share/fish/vendor_completions.d
+ doins etc/lf.fish
+ insinto /usr/share/fish/vendor_functions.d
+ doins etc/lfcd.fish
+}