1 |
commit: 1b8a267cb717a535563f8c3d54753d5b98656b3f |
2 |
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 4 14:45:13 2019 +0000 |
4 |
Commit: Matthew Thode <prometheanfire <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 4 14:47:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1b8a267c |
7 |
|
8 |
sys-cluster/swift: add doc support |
9 |
|
10 |
Thanks Hank Leininger for the patch |
11 |
Fixes: https://bugs.gentoo.org/682478 |
12 |
|
13 |
Package-Manager: Portage-2.3.62, Repoman-2.3.12 |
14 |
Signed-off-by: Matthew Thode <prometheanfire <AT> gentoo.org> |
15 |
|
16 |
sys-cluster/swift/{swift-2.21.0.ebuild => swift-2.21.0-r1.ebuild} | 7 ++++++- |
17 |
sys-cluster/swift/swift-2019.1.9999.ebuild | 7 ++++++- |
18 |
2 files changed, 12 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/sys-cluster/swift/swift-2.21.0.ebuild b/sys-cluster/swift/swift-2.21.0-r1.ebuild |
21 |
similarity index 96% |
22 |
rename from sys-cluster/swift/swift-2.21.0.ebuild |
23 |
rename to sys-cluster/swift/swift-2.21.0-r1.ebuild |
24 |
index d96686a8d7f..ec5ee0cd41e 100644 |
25 |
--- a/sys-cluster/swift/swift-2.21.0.ebuild |
26 |
+++ b/sys-cluster/swift/swift-2.21.0-r1.ebuild |
27 |
@@ -19,7 +19,7 @@ fi |
28 |
|
29 |
LICENSE="Apache-2.0" |
30 |
SLOT="0" |
31 |
-IUSE="proxy account container object +memcached" |
32 |
+IUSE="account container doc +memcached object proxy" |
33 |
REQUIRED_USE="|| ( proxy account container object )" |
34 |
|
35 |
CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" |
36 |
@@ -109,6 +109,11 @@ python_install_all() { |
37 |
newins "etc/object-expirer.conf-sample" "object-expirer.conf" |
38 |
fi |
39 |
|
40 |
+ if use doc; then |
41 |
+ doman doc/manpages/* |
42 |
+ dodoc -r doc/{s3api,saio,source} |
43 |
+ fi |
44 |
+ |
45 |
fowners root:swift "/etc/swift" || die "fowners failed" |
46 |
fperms 0750 /etc/swift |
47 |
} |
48 |
|
49 |
diff --git a/sys-cluster/swift/swift-2019.1.9999.ebuild b/sys-cluster/swift/swift-2019.1.9999.ebuild |
50 |
index d96686a8d7f..ec5ee0cd41e 100644 |
51 |
--- a/sys-cluster/swift/swift-2019.1.9999.ebuild |
52 |
+++ b/sys-cluster/swift/swift-2019.1.9999.ebuild |
53 |
@@ -19,7 +19,7 @@ fi |
54 |
|
55 |
LICENSE="Apache-2.0" |
56 |
SLOT="0" |
57 |
-IUSE="proxy account container object +memcached" |
58 |
+IUSE="account container doc +memcached object proxy" |
59 |
REQUIRED_USE="|| ( proxy account container object )" |
60 |
|
61 |
CDEPEND=">=dev-python/pbr-1.8.0[${PYTHON_USEDEP}]" |
62 |
@@ -109,6 +109,11 @@ python_install_all() { |
63 |
newins "etc/object-expirer.conf-sample" "object-expirer.conf" |
64 |
fi |
65 |
|
66 |
+ if use doc; then |
67 |
+ doman doc/manpages/* |
68 |
+ dodoc -r doc/{s3api,saio,source} |
69 |
+ fi |
70 |
+ |
71 |
fowners root:swift "/etc/swift" || die "fowners failed" |
72 |
fperms 0750 /etc/swift |
73 |
} |