app-crypt/etoken-sac: fix eutils EAPI 7
[gentoo-zh.git] / sys-apps / aptly / aptly-1.4.0-r1.ebuild
blobe765cc316e4e6f000d7e6f3060996400e7b43137
1 # Copyright 1999-2022 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
4 EAPI=7
6 inherit bash-completion-r1 go-module systemd
8 EGO_SUM=(
9         "github.com/AlekSi/pointer v1.0.0"
10         "github.com/AlekSi/pointer v1.0.0/go.mod"
11         "github.com/DisposaBoy/JsonConfigReader v0.0.0-20130112093355-33a99fdf1d5e"
12         "github.com/DisposaBoy/JsonConfigReader v0.0.0-20130112093355-33a99fdf1d5e/go.mod"
13         "github.com/awalterschulze/gographviz v0.0.0-20160912181450-761fd5fbb34e"
14         "github.com/awalterschulze/gographviz v0.0.0-20160912181450-761fd5fbb34e/go.mod"
15         "github.com/aws/aws-sdk-go v1.13.31"
16         "github.com/aws/aws-sdk-go v1.13.31/go.mod"
17         "github.com/cheggaaa/pb v1.0.10"
18         "github.com/cheggaaa/pb v1.0.10/go.mod"
19         "github.com/davecgh/go-spew v1.1.0"
20         "github.com/davecgh/go-spew v1.1.0/go.mod"
21         "github.com/fatih/color v1.9.0"
22         "github.com/fatih/color v1.9.0/go.mod"
23         "github.com/fsnotify/fsnotify v1.4.7/go.mod"
24         "github.com/fsnotify/fsnotify v1.4.9"
25         "github.com/fsnotify/fsnotify v1.4.9/go.mod"
26         "github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7"
27         "github.com/gin-contrib/sse v0.0.0-20170109093832-22d885f9ecc7/go.mod"
28         "github.com/gin-gonic/gin v1.1.5-0.20170702092826-d459835d2b07"
29         "github.com/gin-gonic/gin v1.1.5-0.20170702092826-d459835d2b07/go.mod"
30         "github.com/go-ini/ini v1.26.0"
31         "github.com/go-ini/ini v1.26.0/go.mod"
32         "github.com/golang/protobuf v1.2.0/go.mod"
33         "github.com/golang/protobuf v1.3.1/go.mod"
34         "github.com/golang/protobuf v1.4.0-rc.1/go.mod"
35         "github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod"
36         "github.com/golang/protobuf v1.4.0-rc.2/go.mod"
37         "github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod"
38         "github.com/golang/protobuf v1.4.0/go.mod"
39         "github.com/golang/protobuf v1.4.2"
40         "github.com/golang/protobuf v1.4.2/go.mod"
41         "github.com/golang/snappy v0.0.0-20170215233205-553a64147049"
42         "github.com/golang/snappy v0.0.0-20170215233205-553a64147049/go.mod"
43         "github.com/google/go-cmp v0.3.0/go.mod"
44         "github.com/google/go-cmp v0.3.1/go.mod"
45         "github.com/google/go-cmp v0.4.0"
46         "github.com/google/go-cmp v0.4.0/go.mod"
47         "github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1"
48         "github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod"
49         "github.com/h2non/filetype v1.0.5"
50         "github.com/h2non/filetype v1.0.5/go.mod"
51         "github.com/hpcloud/tail v1.0.0/go.mod"
52         "github.com/jlaffaye/ftp v0.0.0-20180404123514-2403248fa8cc"
53         "github.com/jlaffaye/ftp v0.0.0-20180404123514-2403248fa8cc/go.mod"
54         "github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8"
55         "github.com/jmespath/go-jmespath v0.0.0-20160202185014-0b12d6b521d8/go.mod"
56         "github.com/jtolds/gls v4.20.0+incompatible"
57         "github.com/jtolds/gls v4.20.0+incompatible/go.mod"
58         "github.com/kjk/lzma v0.0.0-20161016003348-3fd93898850d"
59         "github.com/kjk/lzma v0.0.0-20161016003348-3fd93898850d/go.mod"
60         "github.com/mattn/go-colorable v0.1.4/go.mod"
61         "github.com/mattn/go-colorable v0.1.7"
62         "github.com/mattn/go-colorable v0.1.7/go.mod"
63         "github.com/mattn/go-isatty v0.0.8/go.mod"
64         "github.com/mattn/go-isatty v0.0.11/go.mod"
65         "github.com/mattn/go-isatty v0.0.12"
66         "github.com/mattn/go-isatty v0.0.12/go.mod"
67         "github.com/mattn/go-runewidth v0.0.2"
68         "github.com/mattn/go-runewidth v0.0.2/go.mod"
69         "github.com/mattn/go-shellwords v1.0.2"
70         "github.com/mattn/go-shellwords v1.0.2/go.mod"
71         "github.com/mkrautz/goar v0.0.0-20150919110319-282caa8bd9da"
72         "github.com/mkrautz/goar v0.0.0-20150919110319-282caa8bd9da/go.mod"
73         "github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f"
74         "github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod"
75         "github.com/ncw/swift v1.0.30"
76         "github.com/ncw/swift v1.0.30/go.mod"
77         "github.com/nxadm/tail v1.4.4"
78         "github.com/nxadm/tail v1.4.4/go.mod"
79         "github.com/onsi/ginkgo v1.6.0/go.mod"
80         "github.com/onsi/ginkgo v1.12.1/go.mod"
81         "github.com/onsi/ginkgo v1.14.0"
82         "github.com/onsi/ginkgo v1.14.0/go.mod"
83         "github.com/onsi/gomega v1.7.1/go.mod"
84         "github.com/onsi/gomega v1.10.1"
85         "github.com/onsi/gomega v1.10.1/go.mod"
86         "github.com/pborman/uuid v0.0.0-20180122190007-c65b2f87fee3"
87         "github.com/pborman/uuid v0.0.0-20180122190007-c65b2f87fee3/go.mod"
88         "github.com/pkg/errors v0.8.1"
89         "github.com/pkg/errors v0.8.1/go.mod"
90         "github.com/pmezard/go-difflib v1.0.0"
91         "github.com/pmezard/go-difflib v1.0.0/go.mod"
92         "github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod"
93         "github.com/smartystreets/assertions v1.1.1"
94         "github.com/smartystreets/assertions v1.1.1/go.mod"
95         "github.com/smartystreets/goconvey v1.6.4"
96         "github.com/smartystreets/goconvey v1.6.4/go.mod"
97         "github.com/smartystreets/gunit v1.3.5"
98         "github.com/smartystreets/gunit v1.3.5/go.mod"
99         "github.com/smira/commander v0.0.0-20140515201010-f408b00e68d5"
100         "github.com/smira/commander v0.0.0-20140515201010-f408b00e68d5/go.mod"
101         "github.com/smira/flag v0.0.0-20170926215700-695ea5e84e76"
102         "github.com/smira/flag v0.0.0-20170926215700-695ea5e84e76/go.mod"
103         "github.com/smira/go-aws-auth v0.0.0-20180731211914-8b73995fd8d1"
104         "github.com/smira/go-aws-auth v0.0.0-20180731211914-8b73995fd8d1/go.mod"
105         "github.com/smira/go-ftp-protocol v0.0.0-20140829150050-066b75c2b70d"
106         "github.com/smira/go-ftp-protocol v0.0.0-20140829150050-066b75c2b70d/go.mod"
107         "github.com/smira/go-xz v0.0.0-20150414201226-0c531f070014"
108         "github.com/smira/go-xz v0.0.0-20150414201226-0c531f070014/go.mod"
109         "github.com/stretchr/objx v0.1.0/go.mod"
110         "github.com/stretchr/testify v1.6.1"
111         "github.com/stretchr/testify v1.6.1/go.mod"
112         "github.com/syndtr/goleveldb v0.0.0-20180331014930-714f901b98fd"
113         "github.com/syndtr/goleveldb v0.0.0-20180331014930-714f901b98fd/go.mod"
114         "github.com/ugorji/go v0.0.0-20140221154404-71c2886f5a67"
115         "github.com/ugorji/go v0.0.0-20140221154404-71c2886f5a67/go.mod"
116         "github.com/vmihailenco/msgpack v4.0.4+incompatible"
117         "github.com/vmihailenco/msgpack v4.0.4+incompatible/go.mod"
118         "github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0"
119         "github.com/wsxiaoys/terminal v0.0.0-20160513160801-0940f3fc43a0/go.mod"
120         "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod"
121         "golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9"
122         "golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod"
123         "golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod"
124         "golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod"
125         "golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod"
126         "golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod"
127         "golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod"
128         "golang.org/x/net v0.0.0-20200707034311-ab3426394381"
129         "golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod"
130         "golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod"
131         "golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod"
132         "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod"
133         "golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod"
134         "golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod"
135         "golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod"
136         "golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod"
137         "golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod"
138         "golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod"
139         "golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod"
140         "golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod"
141         "golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod"
142         "golang.org/x/sys v0.0.0-20200519105757-fe76b779f299"
143         "golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod"
144         "golang.org/x/text v0.3.0/go.mod"
145         "golang.org/x/text v0.3.2"
146         "golang.org/x/text v0.3.2/go.mod"
147         "golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod"
148         "golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod"
149         "golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543"
150         "golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod"
151         "google.golang.org/appengine v1.6.6"
152         "google.golang.org/appengine v1.6.6/go.mod"
153         "google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod"
154         "google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod"
155         "google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod"
156         "google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod"
157         "google.golang.org/protobuf v1.21.0/go.mod"
158         "google.golang.org/protobuf v1.23.0"
159         "google.golang.org/protobuf v1.23.0/go.mod"
160         "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod"
161         "gopkg.in/check.v1 v1.0.0-20161208181325-20d25e280405"
162         "gopkg.in/check.v1 v1.0.0-20161208181325-20d25e280405/go.mod"
163         "gopkg.in/cheggaaa/pb.v1 v1.0.28"
164         "gopkg.in/cheggaaa/pb.v1 v1.0.28/go.mod"
165         "gopkg.in/fsnotify.v1 v1.4.7/go.mod"
166         "gopkg.in/go-playground/assert.v1 v1.2.1"
167         "gopkg.in/go-playground/assert.v1 v1.2.1/go.mod"
168         "gopkg.in/go-playground/validator.v8 v8.18.2"
169         "gopkg.in/go-playground/validator.v8 v8.18.2/go.mod"
170         "gopkg.in/h2non/filetype.v1 v1.0.1"
171         "gopkg.in/h2non/filetype.v1 v1.0.1/go.mod"
172         "gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7"
173         "gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod"
174         "gopkg.in/yaml.v2 v2.2.4/go.mod"
175         "gopkg.in/yaml.v2 v2.3.0"
176         "gopkg.in/yaml.v2 v2.3.0/go.mod"
177         "gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c"
178         "gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod"
179         "labix.org/v2/mgo v0.0.0-20140701140051-000000000287"
180         "labix.org/v2/mgo v0.0.0-20140701140051-000000000287/go.mod"
181         "launchpad.net/gocheck v0.0.0-20140225173054-000000000087"
182         "launchpad.net/gocheck v0.0.0-20140225173054-000000000087/go.mod"
183         )
184 go-module_set_globals
186 DESCRIPTION="A swiss army knife for Debian repository management"
187 HOMEPAGE="https://github.com/aptly-dev/aptly"
188 SRC_URI="https://github.com/aptly-dev/aptly/archive/v${PV}.tar.gz -> ${P}.tar.gz
189         ${EGO_SUM_SRC_URI}"
191 LICENSE="MIT"
192 SLOT="0"
193 KEYWORDS="~amd64"
194 IUSE=""
195 RESTRICT="test" # fails
197 RDEPEND="acct-user/aptly"
199 PATCHES=( "${FILESDIR}/${P}-go.sum.patch" )
201 src_compile() {
202         go build -mod=readonly -o cmd/aptly -ldflags "-X main.Version=${PV}" || die "build failed"
205 src_test() {
206         go test -work ./... || die "test failed"
209 src_install() {
210         einstalldocs
211         dobin cmd/aptly
212         doman man/aptly.1
213         dobashcomp completion.d/aptly
214         insinto /usr/share/zsh/site-functions
215         doins completion.d/_aptly
216         systemd_dounit aptly-api.service
217         systemd_dounit aptly.service
218         newinitd "${FILESDIR}"/aptly.initd aptly
219         newconfd "${FILESDIR}"/aptly.confd aptly
220         newinitd "${FILESDIR}"/aptly-api.initd aptly-api
221         newconfd "${FILESDIR}"/aptly-api.confd aptly-api
223         diropts -o aptly -g aptly -m 0700
224         keepdir /etc/aptly
225         insopts -o aptly -g aptly -m 0644
226         insinto /etc/aptly
227         doins "${FILESDIR}"/aptly.conf