/
golang-1.4.3.recipe
77 lines (68 loc) · 1.91 KB
/
golang-1.4.3.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
SUMMARY="The Go Programming Language"
DESCRIPTION="The Go Programming Language is an open source project to make \
programmers more productive.
Go is expressive, concise, clean, and efficient. Its concurrency \
mechanisms make it easy to write programs that get the most out of multicore \
and networked machines, while its novel type system enables flexible and \
modular program construction. Go compiles quickly to machine code yet has the \
convenience of garbage collection and the power of run-time reflection. It's a \
fast, statically typed, compiled language that feels like a dynamically typed, \
interpreted language."
HOMEPAGE="https://golang.org/"
COPYRIGHT="2009-2018 The Go Authors"
LICENSE="BSD (3-clause)"
REVISION="7"
SOURCE_URI="https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz"
CHECKSUM_SHA256="f4ff5b5eb3a3cae1c993723f3eab519c5bae18866b5e5f96fe1102f0cb5c3e52"
SOURCE_DIR="go"
PATCHES="golang-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2 !x86"
SECONDARY_ARCHITECTURES="!x86"
GLOBAL_WRITABLE_FILES="
non-packaged/lib/go directory keep-old
"
PROVIDES="
golang$secondaryArchSuffix = $portVersion
cmd:go$secondaryArchSuffix = $portVersion
cmd:gofmt$secondaryArchSuffix = $portVersion
cmd:godoc$secondaryArchSuffix = $portVersion
"
if [ -n "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:go = $portVersion
cmd:gofmt = $portVersion
cmd:godoc = $portVersion
"
fi
REQUIRES="
haiku$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:gcc$secondaryArchSuffix
cmd:git
"
BUILD()
{
echo "$portVersion" > VERSION
export GOROOT_FINAL=$prefix/non-packaged/lib/go
cd src
DISABLE_ASLR=1 ./make.bash
cd ..
export GOPATH=/tmp
export GOROOT="$sourceDir"
}
INSTALL()
{
mkdir -p $prefix/non-packaged/lib/go/
cp -r src pkg doc bin include $prefix/non-packaged/lib/go/
mkdir -p $binDir
cp bin/* $binDir
}
TEST()
{
cd src
DISABLE_ASLR=1 ./all.bash
}