mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
golang: add recipe for 1.4.3 (#3119)
This commit is contained in:
committed by
Alex von Gluck IV
parent
4cac7fa8b7
commit
86ee0f091b
73
dev-lang/golang/golang-1.4.3.recipe
Normal file
73
dev-lang/golang/golang-1.4.3.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
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/go"
|
||||
COPYRIGHT="2009-2018 The Go Authors"
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://dl.google.com/go/go$portVersion.src.tar.gz"
|
||||
CHECKSUM_SHA256="9947fc705b0b841b5938c48b22dc33e9647ec0752bae66e50278df4f23f64959"
|
||||
SOURCE_DIR="go"
|
||||
PATCHES="golang-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 !x86 ?x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86"
|
||||
|
||||
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=/system/$relativeDevelopLibDir/go
|
||||
cd src
|
||||
DISABLE_ASLR=1 ./make.bash
|
||||
cd ..
|
||||
export GOPATH=/tmp
|
||||
export GOROOT="$sourceDir"
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
mkdir -p $developLibDir/go/
|
||||
cp -r src pkg doc $developLibDir/go/
|
||||
mkdir -p $binDir
|
||||
cp bin/* $binDir/
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
cd src
|
||||
DISABLE_ASLR=1 ./all.bash
|
||||
}
|
||||
7777
dev-lang/golang/patches/golang-1.4.3.patchset
Normal file
7777
dev-lang/golang/patches/golang-1.4.3.patchset
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user