Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 832756
Collapse All | Expand All

(-)gitea-1.16.5.ebuild (-3 / +15 lines)
Lines 3-9 Link Here
3
3
4
EAPI=8
4
EAPI=8
5
5
6
inherit fcaps go-module tmpfiles systemd
6
inherit fcaps go-module tmpfiles systemd flag-o-matic
7
7
8
DESCRIPTION="A painless self-hosted Git service"
8
DESCRIPTION="A painless self-hosted Git service"
9
HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea"
9
HOMEPAGE="https://gitea.io https://github.com/go-gitea/gitea"
Lines 13-19 Link Here
13
13
14
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
14
LICENSE="Apache-2.0 BSD BSD-2 ISC MIT MPL-2.0"
15
SLOT="0"
15
SLOT="0"
16
IUSE="+acct pam sqlite"
16
IUSE="+acct pam sqlite pie"
17
17
18
DEPEND="
18
DEPEND="
19
	acct? (
19
	acct? (
Lines 28-33 Link Here
28
)
28
)
29
FILECAPS=(
29
FILECAPS=(
30
	-m 711 cap_net_bind_service+ep usr/bin/gitea
30
	-m 711 cap_net_bind_service+ep usr/bin/gitea
31
  
31
)
32
)
32
33
33
RESTRICT="test"
34
RESTRICT="test"
Lines 52-57 Link Here
52
	fi
53
	fi
53
}
54
}
54
55
56
src_configure() {
57
	# bug 832756 - PIE build issues
58
	filter-flags -fPIE
59
	filter-ldflags -fPIE -pie
60
}
61
55
src_compile() {
62
src_compile() {
56
	local gitea_tags=(
63
	local gitea_tags=(
57
		bindata
64
		bindata
Lines 69-75 Link Here
69
		TAGS="${gitea_tags[*]}"
76
		TAGS="${gitea_tags[*]}"
70
	)
77
	)
71
78
72
	env "${makeenv[@]}" emake backend
79
	GOFLAGS=""
80
	if use pie ; then
81
		GOFLAGS+="-buildmode=pie"
82
	fi
83
84
	env "${makeenv[@]}" emake EXTRA_GOFLAGS="$GOFLAGS" backend
73
}
85
}
74
86
75
src_install() {
87
src_install() {

Return to bug 832756