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 |
ln -s "$(echo "${EPREFIX}"/usr/${CHOST}/gcc-bin/*/go-5 | tail -n1)" "${GOROOT_BOOTSTRAP}/bin/go" |
153 |
fi |
149 |
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go |
154 |
export GOROOT_FINAL="${EPREFIX}"/usr/lib/go |
150 |
export GOROOT="$(pwd)" |
155 |
export GOROOT="$(pwd)" |
151 |
export GOBIN="${GOROOT}/bin" |
156 |
export GOBIN="${GOROOT}/bin" |