1 |
commit: 466cac6577a2673168bb7d1e106aab47a453e420 |
2 |
Author: Michael Yang <michaelzcyang <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Jul 29 22:24:30 2022 +0000 |
4 |
Commit: Michael Yang <michaelzcyang <AT> gmail <DOT> com> |
5 |
CommitDate: Fri Jul 29 22:24:30 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=466cac65 |
7 |
|
8 |
app-misc/clifm: Remove unnecessary use flags |
9 |
|
10 |
Signed-off-by: Michael Yang <michaelzcyang <AT> gmail.com> |
11 |
|
12 |
app-misc/clifm/clifm-1.6.ebuild | 37 +++---------------------------------- |
13 |
app-misc/clifm/clifm-9999.ebuild | 37 +++---------------------------------- |
14 |
app-misc/clifm/metadata.xml | 34 +--------------------------------- |
15 |
3 files changed, 7 insertions(+), 101 deletions(-) |
16 |
|
17 |
diff --git a/app-misc/clifm/clifm-1.6.ebuild b/app-misc/clifm/clifm-1.6.ebuild |
18 |
index fbffa78e3..3bf60250b 100644 |
19 |
--- a/app-misc/clifm/clifm-1.6.ebuild |
20 |
+++ b/app-misc/clifm/clifm-1.6.ebuild |
21 |
@@ -6,7 +6,7 @@ EAPI=8 |
22 |
DESCRIPTION="The command line file manager" |
23 |
HOMEPAGE="https://github.com/leo-arch/clifm" |
24 |
|
25 |
-inherit flag-o-matic optfeature xdg |
26 |
+inherit optfeature xdg |
27 |
|
28 |
if [[ ${PV} == "9999" ]]; then |
29 |
EGIT_REPO_URI="https://github.com/leo-arch/clifm.git" |
30 |
@@ -20,8 +20,7 @@ fi |
31 |
|
32 |
LICENSE="GPL-2" |
33 |
SLOT="0" |
34 |
-IUSE="+archives +bleach emoji-icons +highlight icons-in-terminal +lira |
35 |
- nerdfonts +suggestions +tags +trash" |
36 |
+IUSE="" |
37 |
|
38 |
DEPEND=" |
39 |
sys-libs/libcap |
40 |
@@ -33,30 +32,6 @@ RDEPEND="${DEPEND}" |
41 |
BDEPEND="" |
42 |
|
43 |
src_compile() { |
44 |
- use archives || append-cflags "-D_NO_ARCHIVING" |
45 |
- use bleach || append-cflags "-D_NO_BLEACH" |
46 |
- |
47 |
- # emoji-icons > nerdfonts > icons-in-terminal |
48 |
- if ! use emoji-icons; then # support for emoji-icons is default |
49 |
- if use nerdfonts; then |
50 |
- append-cflags "-D_NERD" |
51 |
- elif use icons-in-terminal; then |
52 |
- append-cflags "-D_ICONS_IN_TERMINAL" |
53 |
- else |
54 |
- append-cflags "-D_NO_ICONS" |
55 |
- fi |
56 |
- fi |
57 |
- |
58 |
- use highlight || append-cflags "-D_NO_HIGHLIGHT" |
59 |
- use lira || append-cflags "-D_NO_LIRA" |
60 |
- use suggestions || append-cflags "-D_NO_SUGGESTIONS" |
61 |
- use tags || append-cflags "-D_NO_TAGS" |
62 |
- use trash || append-cflags "-D_NO_TRASH" |
63 |
- # there is no reason to use -D_NO_MAGIC since we already depend on sys-apps/file |
64 |
- |
65 |
- # basically free faster qsort implementation |
66 |
- append-cflags "-D_TOURBIN_QSORT" |
67 |
- |
68 |
# makefile defaults to /usr/local |
69 |
emake PREFIX="/usr" || die "make failed" |
70 |
} |
71 |
@@ -72,16 +47,10 @@ pkg_postinst() { |
72 |
optfeature_header "Install additional optional functionality:" |
73 |
optfeature "fzf tab completion and more" app-shells/fzf |
74 |
optfeature "mounting/unmounting support" sys-fs/udisks sys-apps/udevil |
75 |
- optfeature_header "Install optional archiving support:" |
76 |
+ optfeature_header "Install optional archiving support (if you didn't use -D_NO_ARCHIVING):" |
77 |
optfeature "zstd operations" app-arch/zstd |
78 |
optfeature "archive extraction/unpacking" app-arch/atool |
79 |
optfeature "mounting archives" sys-fs/archivemount |
80 |
optfeature "extracting .iso files" app-arch/p7zip |
81 |
optfeature "creating .iso files" app-cdr/cdrtools |
82 |
- if use emoji-icons; then |
83 |
- use nerdfonts && ewarn "Warning: Use flag 'nerdfonts' overridden by 'emoji-icons'" |
84 |
- use icons-in-terminal && ewarn "Warning: Use flag 'icons-in-terminal' overridden by 'emoji-icons'" |
85 |
- elif use nerdfonts; then |
86 |
- use icons-in-terminal && ewarn "Warning: Use flag 'icons-in-terminal' overridden by 'nerdfonts'" |
87 |
- fi |
88 |
} |
89 |
|
90 |
diff --git a/app-misc/clifm/clifm-9999.ebuild b/app-misc/clifm/clifm-9999.ebuild |
91 |
index fbffa78e3..3bf60250b 100644 |
92 |
--- a/app-misc/clifm/clifm-9999.ebuild |
93 |
+++ b/app-misc/clifm/clifm-9999.ebuild |
94 |
@@ -6,7 +6,7 @@ EAPI=8 |
95 |
DESCRIPTION="The command line file manager" |
96 |
HOMEPAGE="https://github.com/leo-arch/clifm" |
97 |
|
98 |
-inherit flag-o-matic optfeature xdg |
99 |
+inherit optfeature xdg |
100 |
|
101 |
if [[ ${PV} == "9999" ]]; then |
102 |
EGIT_REPO_URI="https://github.com/leo-arch/clifm.git" |
103 |
@@ -20,8 +20,7 @@ fi |
104 |
|
105 |
LICENSE="GPL-2" |
106 |
SLOT="0" |
107 |
-IUSE="+archives +bleach emoji-icons +highlight icons-in-terminal +lira |
108 |
- nerdfonts +suggestions +tags +trash" |
109 |
+IUSE="" |
110 |
|
111 |
DEPEND=" |
112 |
sys-libs/libcap |
113 |
@@ -33,30 +32,6 @@ RDEPEND="${DEPEND}" |
114 |
BDEPEND="" |
115 |
|
116 |
src_compile() { |
117 |
- use archives || append-cflags "-D_NO_ARCHIVING" |
118 |
- use bleach || append-cflags "-D_NO_BLEACH" |
119 |
- |
120 |
- # emoji-icons > nerdfonts > icons-in-terminal |
121 |
- if ! use emoji-icons; then # support for emoji-icons is default |
122 |
- if use nerdfonts; then |
123 |
- append-cflags "-D_NERD" |
124 |
- elif use icons-in-terminal; then |
125 |
- append-cflags "-D_ICONS_IN_TERMINAL" |
126 |
- else |
127 |
- append-cflags "-D_NO_ICONS" |
128 |
- fi |
129 |
- fi |
130 |
- |
131 |
- use highlight || append-cflags "-D_NO_HIGHLIGHT" |
132 |
- use lira || append-cflags "-D_NO_LIRA" |
133 |
- use suggestions || append-cflags "-D_NO_SUGGESTIONS" |
134 |
- use tags || append-cflags "-D_NO_TAGS" |
135 |
- use trash || append-cflags "-D_NO_TRASH" |
136 |
- # there is no reason to use -D_NO_MAGIC since we already depend on sys-apps/file |
137 |
- |
138 |
- # basically free faster qsort implementation |
139 |
- append-cflags "-D_TOURBIN_QSORT" |
140 |
- |
141 |
# makefile defaults to /usr/local |
142 |
emake PREFIX="/usr" || die "make failed" |
143 |
} |
144 |
@@ -72,16 +47,10 @@ pkg_postinst() { |
145 |
optfeature_header "Install additional optional functionality:" |
146 |
optfeature "fzf tab completion and more" app-shells/fzf |
147 |
optfeature "mounting/unmounting support" sys-fs/udisks sys-apps/udevil |
148 |
- optfeature_header "Install optional archiving support:" |
149 |
+ optfeature_header "Install optional archiving support (if you didn't use -D_NO_ARCHIVING):" |
150 |
optfeature "zstd operations" app-arch/zstd |
151 |
optfeature "archive extraction/unpacking" app-arch/atool |
152 |
optfeature "mounting archives" sys-fs/archivemount |
153 |
optfeature "extracting .iso files" app-arch/p7zip |
154 |
optfeature "creating .iso files" app-cdr/cdrtools |
155 |
- if use emoji-icons; then |
156 |
- use nerdfonts && ewarn "Warning: Use flag 'nerdfonts' overridden by 'emoji-icons'" |
157 |
- use icons-in-terminal && ewarn "Warning: Use flag 'icons-in-terminal' overridden by 'emoji-icons'" |
158 |
- elif use nerdfonts; then |
159 |
- use icons-in-terminal && ewarn "Warning: Use flag 'icons-in-terminal' overridden by 'nerdfonts'" |
160 |
- fi |
161 |
} |
162 |
|
163 |
diff --git a/app-misc/clifm/metadata.xml b/app-misc/clifm/metadata.xml |
164 |
index afd332feb..ae399b1f4 100644 |
165 |
--- a/app-misc/clifm/metadata.xml |
166 |
+++ b/app-misc/clifm/metadata.xml |
167 |
@@ -3,45 +3,13 @@ |
168 |
<pkgmetadata> |
169 |
<longdescription> |
170 |
The command line file manager. |
171 |
- More information about the use flags can be found here: |
172 |
+ By default most features are enabled, customizing this requires adding CFLAGS: |
173 |
https://github.com/leo-arch/clifm/blob/master/src/README.md#compiling-features-inout |
174 |
</longdescription> |
175 |
<maintainer type="person"> |
176 |
<email>michaelzcyang@×××××.com</email> |
177 |
<name>Michael Yang</name> |
178 |
</maintainer> |
179 |
- <use> |
180 |
- <flag name="archives"> |
181 |
- Archive manipulation support |
182 |
- </flag> |
183 |
- <flag name="bleach"> |
184 |
- Support for Bleach, the built-in file names cleaner |
185 |
- </flag> |
186 |
- <flag name="emoji-icons"> |
187 |
- Enable icons and set them to use the noto-emoji font (see <pkg>media-fonts/noto-emoji</pkg>) |
188 |
- </flag> |
189 |
- <flag name="highlight"> |
190 |
- Syntax highlighting support |
191 |
- </flag> |
192 |
- <flag name="icons-in-terminal"> |
193 |
- Enable icons and set them to use icons-in-terminal (see https://github.com/sebastiencs/icons-in-terminal) |
194 |
- </flag> |
195 |
- <flag name="lira"> |
196 |
- Add Lira as the default built-in resource opener |
197 |
- </flag> |
198 |
- <flag name="nerdfonts"> |
199 |
- Enable icons and set them to use NerdFonts |
200 |
- </flag> |
201 |
- <flag name="suggestions"> |
202 |
- Autosuggestion support |
203 |
- </flag> |
204 |
- <flag name="tags"> |
205 |
- Built-in file tagging system support |
206 |
- </flag> |
207 |
- <flag name="trash"> |
208 |
- FreeDesktop compliant trash system support |
209 |
- </flag> |
210 |
- </use> |
211 |
<upstream> |
212 |
<remote-id type="github">leo-arch/clifm</remote-id> |
213 |
</upstream> |