1 |
commit: 8619a7f7752bb3cc411ca2512cb32fbe3ccdcc23 |
2 |
Author: Michael Yang <michaelzcyang <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Aug 27 21:25:07 2022 +0000 |
4 |
Commit: Michael Yang <michaelzcyang <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Aug 27 21:25:19 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=8619a7f7 |
7 |
|
8 |
app-misc/clifm: add 1.7 |
9 |
|
10 |
Signed-off-by: Michael Yang <michaelzcyang <AT> gmail.com> |
11 |
|
12 |
app-misc/clifm/Manifest | 1 + |
13 |
app-misc/clifm/clifm-1.7.ebuild | 57 +++++++++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 58 insertions(+) |
15 |
|
16 |
diff --git a/app-misc/clifm/Manifest b/app-misc/clifm/Manifest |
17 |
index a7bb68a4e..6ff4bc8c7 100644 |
18 |
--- a/app-misc/clifm/Manifest |
19 |
+++ b/app-misc/clifm/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST clifm-1.6.tar.gz 1268633 BLAKE2B de36f0d3bc1c6584471d313f346a9db77f659b4fde41775e45c78066db12aff8bf33a58b3c5d0f9cd43800cf823f0508c2abb5c88ff50a28147aec5c7e7178df SHA512 a8f6b73070779d0d49b41109bee1b418cb6eb4fb1ac8e684cf859e1137336df2655ddfb5107b50674a5380364f572fe47cc72f58c25c4ff6439593b411a5f69e |
22 |
+DIST clifm-1.7.tar.gz 1310379 BLAKE2B d37e5f4d013c7a7c8427993aa0ff187bac33cb8a89b75b368ce77eb11cbb3275f5cfabec1037e0b3052471633e763d22a7debe019c75ae6098f44cda0e9f7d70 SHA512 30bdc33090846b82edb2cf6372ca3515806f85261405476518d9b5cb1f9dc22e513263cac70f7d93bb85e6489b1486868964b1719637c1b317ce491b5734c453 |
23 |
|
24 |
diff --git a/app-misc/clifm/clifm-1.7.ebuild b/app-misc/clifm/clifm-1.7.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000..826248a0c |
27 |
--- /dev/null |
28 |
+++ b/app-misc/clifm/clifm-1.7.ebuild |
29 |
@@ -0,0 +1,57 @@ |
30 |
+# Copyright 2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+DESCRIPTION="The command line file manager" |
36 |
+HOMEPAGE="https://github.com/leo-arch/clifm" |
37 |
+ |
38 |
+inherit optfeature xdg |
39 |
+ |
40 |
+if [[ ${PV} == "9999" ]]; then |
41 |
+ EGIT_REPO_URI="https://github.com/leo-arch/clifm.git" |
42 |
+ inherit git-r3 |
43 |
+else |
44 |
+ SRC_URI="https://github.com/leo-arch/clifm/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
45 |
+ # also on sourceforge but the unpacked name is irregular |
46 |
+ # SRC_URI="mirror://sourceforge/${PN}/v${PV}.tar.gz -> ${P}.tar.gz" |
47 |
+ KEYWORDS="~amd64" |
48 |
+fi |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+IUSE="" |
53 |
+ |
54 |
+DEPEND=" |
55 |
+ sys-libs/libcap |
56 |
+ sys-libs/readline:= |
57 |
+ sys-apps/acl |
58 |
+ sys-apps/file |
59 |
+" |
60 |
+RDEPEND="${DEPEND}" |
61 |
+BDEPEND="" |
62 |
+ |
63 |
+src_compile() { |
64 |
+ # makefile defaults to /usr/local |
65 |
+ emake PREFIX="/usr" || die "make failed" |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ docompress -x /usr/share/man # makefile compresses man page |
70 |
+ # makefile defaults to /usr/local, and manpages to /usr/man |
71 |
+ emake DESTDIR="${D}" PREFIX="/usr" MANDIR="/usr/share/man" install || die "install failed" |
72 |
+ einstalldocs |
73 |
+} |
74 |
+ |
75 |
+pkg_postinst() { |
76 |
+ optfeature_header "Install additional optional functionality:" |
77 |
+ optfeature "fzf tab completion and more" app-shells/fzf |
78 |
+ optfeature "mounting/unmounting support" sys-fs/udisks sys-apps/udevil |
79 |
+ optfeature_header "Install optional archiving support (if you didn't use -D_NO_ARCHIVING):" |
80 |
+ optfeature "zstd operations" app-arch/zstd |
81 |
+ optfeature "archive extraction/unpacking" app-arch/atool |
82 |
+ optfeature "mounting archives" sys-fs/archivemount |
83 |
+ optfeature "extracting .iso files" app-arch/p7zip |
84 |
+ optfeature "creating .iso files" app-cdr/cdrtools |
85 |
+ xdg_pkg_postinst |
86 |
+} |