Files
haikuports/dev-lang/golang/golang-1.3.recipe
Humdinger 5113be297d De-Lint recipes.
*	fossil
	Improved SUMMARY, thanks waddlesplash for noticing the error.

*	gcc
	Shortened SUMMARY (at least removing the "\" linebreak that seems to
	trigger the lint warning)
	Minor cosmetics.

*	gd
	Renamed recipe to correct version.
	Added license.
	Corrected copyright.
	Added autoconf, aclocal, libtoolize to BUILD_PREREQUIRES.
	Added SOURCE_DIR.
	Now it almost builds, failing with:

	configure.ac:79: warning: macro 'AM_ICONV' not found in library
	configure.ac:130: error: possibly undefined macro: AC_MSG_ERROR

*	global
	Removed "." from SUMMARY.
	Minor cosmetics.

*	gnupg
	Removed "." from SUMMARY.
	Minor cosmetics.

*	gnutls
	Added PATCHES="gnutls-2.8.6.patch" to fix the lint warning.
	Moved haiku_devel to BUILD_REQUIRES.
	Sorted the _devel blocks to the top.
	Minor cosmetics.
	Build fails...

*	golang
	Removed "." from SUMMARY.
	Minor cosmetics.

*	gptfdisk
	Removed "." from SUMMARY.
	Minor cosmetics.

*	graphviz
	Minor cosmetics.

*	gri
	Removed "." from SUMMARY.
	Minor cosmetics.

*	ha
	Slightly improved SUMMARY/DESCRIPTION
	Minor cosmetics.

*	handbreak
	Removed "." from SUMMARY.
	Minor cosmetics.

*	harfbuzz
	Removed "." from SUMMARY.
	Minor cosmetics.
	Sorted the _devel blocks to the top.

*	hdialog
	Removed "." from SUMMARY.
	Use g++ instead of gcc.
	Minor cosmetics.

*	help2man
	Removed "." from SUMMARY.
	Minor cosmetics.

*	heroes
	Removed "." from SUMMARY.
	Minor cosmetics.

*	homeworld
	Removed "." from SUMMARY.
	Minor cosmetics.

*	htmldoc
	Remove outdated patch file
	Minor cosmetics.

*	htmltidy
	Removed "." from SUMMARY.
	Minor cosmetics.
	Sorted the _devel blocks to the top.

*	hyperstudio
	Removed "." from SUMMARY.
	Minor cosmetics.
2015-07-20 08:34:07 +02:00

86 lines
2.3 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://bitbucket.org/zhuowei/go-1-3-haiku"
# archived tar for this version
SOURCE_URI="https://bitbucket.org/zhuowei/go-1-3-haiku/downloads/golang-1.3-porthaiku2.tar.gz"
SOURCE_DIR="golang-1.3-porthaiku2"
CHECKSUM_SHA256="7ec832d47bf5080f579aa80f8f196bf0b8f60aa99718510e8028586255f716c7"
REVISION="2"
LICENSE="BSD (3-clause)"
COPYRIGHT="2009-2014 The Go Authors"
ARCHITECTURES="x86 x86_64"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
# x86_gcc2 is fine as primary target architecture as long as we're building
# for a different secondary architecture.
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
else
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
golang$secondaryArchSuffix = $portVersion
cmd:go$secondaryArchSuffix = $portVersion
cmd:gofmt$secondaryArchSuffix = $portVersion
cmd:godoc$secondaryArchSuffix = $portVersion
"
if [ "$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:hg
cmd:git
"
BUILD()
{
echo "1.3-porthaiku2" > VERSION
export GOROOT_FINAL=/system/develop/lib$secondaryArchSubDir/go
cd src
./make.bash
cd ..
export GOPATH=/tmp
export GOROOT=`pwd`
bin/go get code.google.com/p/go.tools/cmd/godoc
bin/go get code.google.com/p/go.tools/cmd/vet
}
INSTALL()
{
mkdir -p $developLibDir/go/
cp -r src pkg doc $developLibDir/go/
mkdir -p $binDir
cp bin/* $binDir/
if [ "$secondaryArchSuffix" != "" ]; then
cd $binDir/..
for a in `ls $binDir`
do
ln -s .$secondaryArchSubDir/$a $a
done
fi
}