mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-29 11:38:52 +02:00
64 lines
1.9 KiB
Bash
64 lines
1.9 KiB
Bash
SUMMARY="Reference compiler for 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://github.com/korli/go/"
|
|
COPYRIGHT="2009-2026 The Go Authors"
|
|
LICENSE="BSD (3-clause)"
|
|
REVISION="1"
|
|
srcGitRev="go1.26.1-haiku1"
|
|
SOURCE_URI="https://github.com/korli/go/archive/$srcGitRev.tar.gz"
|
|
SOURCE_DIR="go-$srcGitRev"
|
|
SOURCE_FILENAME="golang-$srcGitRev.tar.gz"
|
|
CHECKSUM_SHA256="d6e813864304d4a77c2359af9d7f0a4f06fc8778f64ceaae1b7930f728419e95"
|
|
SOURCE_URI_2="https://github.com/korli/go/releases/download/$srcGitRev/go-1.26.1-haiku-amd64-bootstrap.tbz"
|
|
CHECKSUM_SHA256_2="b739784c8301a050c6aad7865b883ad06de5a6363fe0f2170cc9b502c728005b"
|
|
SOURCE_DIR_2="go-haiku-amd64-bootstrap"
|
|
|
|
ARCHITECTURES="?x86_64"
|
|
|
|
PROVIDES="
|
|
golang = $portVersion
|
|
cmd:go$secondaryArchSuffix = $portVersion
|
|
cmd:gofmt$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
export GOROOT_BOOTSTRAP=$sourceDir2
|
|
export GOROOT_FINAL=$developLibDir/go
|
|
export GOCACHE=/tmp
|
|
cd src && ./make.bash
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $binDir $developLibDir/go/
|
|
cp -a bin src pkg lib misc api test doc $developLibDir/go/
|
|
ln -sf $developLibDir/go/bin/go $binDir/
|
|
ln -sf $developLibDir/go/bin/gofmt $binDir/
|
|
install -Dm644 VERSION $developLibDir/go/
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
cd src && ./run.bash --no-rebuild -v -v -v
|
|
}
|