1 |
commit: 09d05c9118b6f9146c1f241ba15a5fbc5b01ae53 |
2 |
Author: Luciano Degni <degni.public <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jan 17 18:18:28 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 17 18:18:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=09d05c91 |
7 |
|
8 |
app-misc/xplr: add use flag doc |
9 |
|
10 |
Signed-off-by: Luciano Degni <degni.public <AT> gmail.com> |
11 |
|
12 |
app-misc/xplr/xplr-0.17.1.ebuild | 13 ++++++++----- |
13 |
1 file changed, 8 insertions(+), 5 deletions(-) |
14 |
|
15 |
diff --git a/app-misc/xplr/xplr-0.17.1.ebuild b/app-misc/xplr/xplr-0.17.1.ebuild |
16 |
index 4b34a2369..7848d3b5a 100644 |
17 |
--- a/app-misc/xplr/xplr-0.17.1.ebuild |
18 |
+++ b/app-misc/xplr/xplr-0.17.1.ebuild |
19 |
@@ -153,6 +153,7 @@ LICENSE=" |
20 |
" |
21 |
SLOT="0" |
22 |
KEYWORDS="~amd64 ~x86" |
23 |
+IUSE="doc" |
24 |
|
25 |
REQUIRED_USE="${LUA_REQUIRED_USE}" |
26 |
RDEPEND=" |
27 |
@@ -171,7 +172,7 @@ src_configure() { |
28 |
src_prepare() { |
29 |
sed -i Cargo.toml -e 's/"vendored"\s*,//' || die |
30 |
# for dynamic linking with lua |
31 |
- default |
32 |
+ default |
33 |
} |
34 |
|
35 |
src_compile() { |
36 |
@@ -179,8 +180,10 @@ src_compile() { |
37 |
} |
38 |
|
39 |
src_install() { |
40 |
- dodoc README.md LICENSE |
41 |
- local DOCS=( docs/* ) |
42 |
- einstalldocs |
43 |
+ if use doc; then |
44 |
+ dodoc README.md LICENSE |
45 |
+ local DOCS=( docs/* ) |
46 |
+ einstalldocs |
47 |
+ fi |
48 |
dobin target/release/xplr |
49 |
-} |
50 |
\ No newline at end of file |
51 |
+} |