summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormac <ra@afu.re>2025-11-29 10:26:16 -0500
committermac <ra@afu.re>2025-11-29 10:26:16 -0500
commit179a390cf3719abbb9cf9ee4bde267a721351425 (patch)
treea51627daec871a8c156afca1e0b39aa757e08258
parent2e3f9a023d2658d513e962a8cb43a2946dfb3daf (diff)
rm lf-9999 & add lf-38 ebuildHEADmaster
-rw-r--r--app-misc/lf/Manifest4
-rw-r--r--app-misc/lf/lf-38.ebuild52
-rw-r--r--app-misc/lf/lf-9999.ebuild74
3 files changed, 55 insertions, 75 deletions
diff --git a/app-misc/lf/Manifest b/app-misc/lf/Manifest
index a4dd3b9..1362561 100644
--- a/app-misc/lf/Manifest
+++ b/app-misc/lf/Manifest
@@ -1 +1,3 @@
-EBUILD lf-9999.ebuild 1951 BLAKE2B 6b3e546227c78ec1a7b651b9268b448bc020fb4cb6a675a4c37011290d9f0dd0025266fd028f842146160e5459772ab3ce0a815b95259f6efed51b3de42c92e3 SHA512 ba70e6dc85e491f23f538317c67ebc201c5c9f06a0d95a451dca040679ab3d9d92003968b02f217ab50ba24b3ee4828218178b2fdefe4068095ef5e1f3d05494
+DIST lf-38-vendor.tar.xz 1225920 BLAKE2B baae46c2de333fc8022c386319bfa6783f1e2132cd08366d954fd3f2b5cb39dad9c607bf7a6abb6649f556182e0085bfef94e57205344f51d725eb2d77fa089a SHA512 f9c776381ca2208397b38cfa6e0e235ec1957c3cde717c6c6e676aebd37792ea08af8c6708248a9b85bd6f19568059b52ebc3a432b7d89b25e3d0c0dd3de6e6c
+DIST lf-38.tar.gz 179583 BLAKE2B e960d7e2196bed001fd6f5b4436c2ebf9f364b00d7d950bb1677e579371e2ed0f69fe283d6193d840bfb5754e5723e97aa893dcac8484d89d88cb28b79c8849d SHA512 b9949b64fb658524a8cc71a4442fe89099ec3772aecb35154f2312ed078ad73c1f3a6da1cce6d99806700f46142450618b0fe8842039ae36d78642481de6b078
+EBUILD lf-38.ebuild 1027 BLAKE2B 5ff0535e0e6107aadca19a902f559249d3d57097caaf942c527bb8e8f5848897197ac83c80aa2dbc399313c163d51e36d09fd634caac94a9f72be0738146860b SHA512 977b9d2f0993cbc018d2089ece0270895e88b5cea798c12be046a882ab44933a8df2f22dda71310f2ec908e5bb50c760311fa12755c2d5883285f7514d9c4115
diff --git a/app-misc/lf/lf-38.ebuild b/app-misc/lf/lf-38.ebuild
new file mode 100644
index 0000000..ebd9a73
--- /dev/null
+++ b/app-misc/lf/lf-38.ebuild
@@ -0,0 +1,52 @@
+
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module shell-completion desktop xdg
+
+DESCRIPTION="Terminal file manager"
+HOMEPAGE="https://github.com/gokcehan/lf"
+SRC_URI="https://github.com/gokcehan/lf/archive/r${PV}.tar.gz -> ${P}.tar.gz"
+SRC_URI+=" https://github.com/ephemer4l/gentoo-lf/raw/main/${P}-vendor.tar.xz"
+S="${WORKDIR}/${PN}-r${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+
+IUSE="+static"
+
+src_compile() {
+ local ldflags="-w -X main.gVersion=r${PV}"
+ use static && {
+ export CGO_ENABLED=0
+ ldflags+=' -extldflags "-static"'
+ }
+
+ ego build -ldflags="${ldflags}"
+}
+
+src_install() {
+ local DOCS=( README.md etc/lfrc.example )
+
+ dobin "${PN}"
+
+ einstalldocs
+
+ doman "${PN}.1"
+
+ # bash & zsh cd script
+ insinto "/usr/share/${PN}"
+ doins "etc/${PN}cd.sh"
+
+ # bash-completion
+ newbashcomp "etc/${PN}.bash" "${PN}"
+ bashcomp_alias lf lfcd
+
+ # zsh-completion
+ newzshcomp "etc/${PN}.zsh" "_${PN}"
+
+ domenu "${PN}.desktop"
+}
diff --git a/app-misc/lf/lf-9999.ebuild b/app-misc/lf/lf-9999.ebuild
deleted file mode 100644
index b5533dd..0000000
--- a/app-misc/lf/lf-9999.ebuild
+++ /dev/null
@@ -1,74 +0,0 @@
-# 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
-}