blob: d13334589493946072702e249de336fece72037c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="The command line file manager"
HOMEPAGE="https://github.com/leo-arch/clifm"
inherit optfeature xdg
if [[ ${PV} == "9999" ]]; then
EGIT_REPO_URI="https://github.com/leo-arch/clifm.git"
inherit git-r3
else
SRC_URI="https://github.com/leo-arch/clifm/archive/v${PV}.tar.gz -> ${P}.tar.gz"
# also on sourceforge but the unpacked name is irregular
# SRC_URI="mirror://sourceforge/${PN}/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
fi
LICENSE="GPL-2"
SLOT="0"
IUSE=""
PATCHES=(
"${FILESDIR}/${P}-gentoo-skip-manpage-compression.patch"
)
DEPEND="
sys-libs/libcap
sys-libs/readline:=
sys-apps/acl
sys-apps/file
"
RDEPEND="${DEPEND}"
BDEPEND=""
src_compile() {
# makefile defaults to /usr/local
emake PREFIX="/usr"
}
src_install() {
# makefile defaults to /usr/local, and manpages to /usr/man
emake DESTDIR="${D}" PREFIX="/usr" MANDIR="/usr/share/man" install
einstalldocs
}
pkg_postinst() {
optfeature_header "Install additional optional functionality:"
optfeature "fzf tab completion and more" app-shells/fzf
optfeature "mounting/unmounting support" sys-fs/udisks sys-apps/udevil
optfeature_header "Install optional archiving support (if you didn't use -D_NO_ARCHIVING):"
optfeature "zstd operations" app-arch/zstd
optfeature "archive extraction/unpacking" app-arch/atool
optfeature "mounting archives" sys-fs/archivemount
optfeature "extracting .iso files" app-arch/p7zip
optfeature "creating .iso files" app-cdr/cdrtools
xdg_pkg_postinst
}
|