Gentoo Archives: gentoo-commits

From: Anna Vyalkova <cyber+gentoo@×××××.in>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: net-misc/gmid/
Date: Thu, 08 Jul 2021 18:55:24
Message-Id: 1625770496.978a6158784f3c7295af53cd08dbda9b81c0040b.cybertailor@gentoo
1 commit: 978a6158784f3c7295af53cd08dbda9b81c0040b
2 Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
3 AuthorDate: Thu Jul 8 18:52:28 2021 +0000
4 Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in>
5 CommitDate: Thu Jul 8 18:54:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=978a6158
7
8 net-misc/gmid: update 9999
9
10 Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in>
11
12 net-misc/gmid/gmid-9999.ebuild | 23 ++++++++++++++++-------
13 1 file changed, 16 insertions(+), 7 deletions(-)
14
15 diff --git a/net-misc/gmid/gmid-9999.ebuild b/net-misc/gmid/gmid-9999.ebuild
16 index a255941c3..f793b7936 100644
17 --- a/net-misc/gmid/gmid-9999.ebuild
18 +++ b/net-misc/gmid/gmid-9999.ebuild
19 @@ -4,23 +4,28 @@
20 EAPI=7
21
22 SSL_DAYS=36500
23 -inherit git-r3 ssl-cert toolchain-funcs
24 +inherit ssl-cert toolchain-funcs
25
26 DESCRIPTION="Simple and secure Gemini server"
27 HOMEPAGE="https://www.omarpolo.com/pages/gmid.html"
28 -EGIT_REPO_URI="https://github.com/omar-polo/${PN}.git https://git.omarpolo.com/${PN}"
29 +
30 +if [[ ${PV} == 9999 ]]; then
31 + EGIT_REPO_URI="https://github.com/omar-polo/${PN}.git https://git.omarpolo.com/${PN}"
32 + inherit git-r3
33 +else
34 + SRC_URI="https://git.omarpolo.com/${PN}/snapshot/${P}.tar.gz"
35 + KEYWORDS="~amd64 ~x86"
36 +fi
37
38 LICENSE="BSD ISC MIT"
39 SLOT="0"
40 IUSE="+seccomp test"
41 -RESTRICT="
42 - !test? ( test )
43 - seccomp? ( test )
44 -"
45 +RESTRICT="!test? ( test )"
46
47 DEPEND="
48 acct-user/gemini
49 dev-libs/imsg-compat
50 + dev-libs/libbsd
51 dev-libs/libevent
52 dev-libs/libretls
53 "
54 @@ -44,12 +49,16 @@ src_configure() {
55 )
56
57 ./configure "${conf_args[@]}" || die
58 +
59 + if use seccomp && has usersandbox ${FEATURES} ; then
60 + export SKIP_RUNTIME_TESTS=1
61 + fi
62 }
63
64 src_compile() {
65 emake gmid
66 if use test ; then
67 - emake -C regress gg puny-test testdata iri_test
68 + emake -C regress gg data puny-test fcgi-test
69 fi
70 }