Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 576290 | Differences between
and this patch

Collapse All | Expand All

(-)a/dev-lang/go/go-1.6-r2.ebuild (-3 / +12 lines)
Lines 12-18 MY_PV=${PV/_/} Link Here
12
inherit toolchain-funcs
12
inherit toolchain-funcs
13
13
14
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
14
BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist"
15
SRC_URI="
15
SRC_URI="!gccgo? (
16
kernel_Darwin? (
16
kernel_Darwin? (
17
	x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-bootstrap.tbz )
17
	x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-bootstrap.tbz )
18
)
18
)
Lines 30-35 kernel_linux? ( Link Here
30
kernel_SunOS? (
30
kernel_SunOS? (
31
	x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-bootstrap.tbz )
31
	x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-bootstrap.tbz )
32
)
32
)
33
)
33
"
34
"
34
35
35
if [[ ${PV} = 9999 ]]; then
36
if [[ ${PV} = 9999 ]]; then
Lines 52-60 HOMEPAGE="http://www.golang.org" Link Here
52
53
53
LICENSE="BSD"
54
LICENSE="BSD"
54
SLOT="0/${PV}"
55
SLOT="0/${PV}"
55
IUSE=""
56
IUSE="gccgo"
56
57
57
DEPEND=""
58
DEPEND="gccgo? ( >=sys-devel/gcc-5[go] )"
58
RDEPEND="!<dev-go/go-tools-0_pre20150902"
59
RDEPEND="!<dev-go/go-tools-0_pre20150902"
59
60
60
# These test data objects have writable/executable stacks.
61
# These test data objects have writable/executable stacks.
Lines 146-151 src_unpack() Link Here
146
src_compile()
147
src_compile()
147
{
148
{
148
	export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap
149
	export GOROOT_BOOTSTRAP="${WORKDIR}"/go-$(go_os)-$(go_arch)-bootstrap
150
	if use gccgo; then
151
		mkdir -p "${GOROOT_BOOTSTRAP}/bin" || die
152
		local go_binary=$(type -P go-5 2>/dev/null)
153
		[[ -x ${go_binary} ]] || go_binary=$(
154
			find "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-5 | sort -V | tail -n1)
155
		[[ -x ${go_binary} ]] || die "go-5: command not found"
156
		ln -s "${go_binary}" "${GOROOT_BOOTSTRAP}/bin/go" || die
157
	fi
149
	export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
158
	export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
150
	export GOROOT="$(pwd)"
159
	export GOROOT="$(pwd)"
151
	export GOBIN="${GOROOT}/bin"
160
	export GOBIN="${GOROOT}/bin"

Return to bug 576290