Gentoo Archives: gentoo-commits

From: Georgy Yakovlev <gyakovlev@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sccache/
Date: Wed, 28 Sep 2022 02:45:51
Message-Id: 1664333130.35856b021895434bb692f4344ca915b03e8e6c66.gyakovlev@gentoo
1 commit: 35856b021895434bb692f4344ca915b03e8e6c66
2 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 28 02:45:18 2022 +0000
4 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 28 02:45:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35856b02
7
8 dev-util/sccache: sync live ebuild
9
10 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org>
11
12 dev-util/sccache/sccache-9999.ebuild | 17 +++++++++++++----
13 1 file changed, 13 insertions(+), 4 deletions(-)
14
15 diff --git a/dev-util/sccache/sccache-9999.ebuild b/dev-util/sccache/sccache-9999.ebuild
16 index d4ca5fcba08e..fd4f2ead86ad 100644
17 --- a/dev-util/sccache/sccache-9999.ebuild
18 +++ b/dev-util/sccache/sccache-9999.ebuild
19 @@ -1,12 +1,13 @@
20 -# Copyright 2017-2021 Gentoo Authors
21 +# Copyright 2017-2022 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI=7
25 +EAPI=8
26
27 +# don't forget to add itoa-0.3.4 for tests https://bugs.gentoo.org/803512
28 CRATES="
29 "
30
31 -inherit cargo optfeature
32 +inherit cargo optfeature systemd
33
34 DESCRIPTION="ccache/distcc like tool with support for rust and cloud storage"
35 HOMEPAGE="https://github.com/mozilla/sccache/"
36 @@ -22,11 +23,13 @@ fi
37
38 LICENSE="Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 Boost-1.0 ISC MIT Unlicense ZLIB"
39 SLOT="0"
40 -IUSE="azure dist-client dist-server gcs memcached redis s3"
41 +IUSE="azure dist-client dist-server gcs memcached redis s3 simple-s3"
42 +REQUIRED_USE="s3? ( simple-s3 )"
43
44 BDEPEND="virtual/pkgconfig"
45
46 DEPEND="
47 + sys-libs/zlib:=
48 app-arch/zstd
49 dist-server? ( dev-libs/openssl:0= )
50 gcs? ( dev-libs/openssl:0= )
51 @@ -49,6 +52,7 @@ src_unpack() {
52
53 src_configure() {
54 myfeatures=(
55 + native-zlib
56 $(usev azure)
57 $(usev dist-client)
58 $(usev dist-server)
59 @@ -56,6 +60,7 @@ src_configure() {
60 $(usev memcached)
61 $(usev redis)
62 $(usev s3)
63 + $(usev simple-s3)
64 )
65 cargo_src_configure --no-default-features
66 }
67 @@ -74,6 +79,10 @@ src_install() {
68
69 newinitd "${FILESDIR}"/scheduler.initd sccache-scheduler
70 newconfd "${FILESDIR}"/scheduler.confd sccache-scheduler
71 +
72 + systemd_dounit "${FILESDIR}"/sccache-server.service
73 + systemd_dounit "${FILESDIR}"/sccache-scheduler.service
74 +
75 fi
76 }