2011-07-05 20:51:42 +02:00
|
|
|
# Template file for 'go'
|
|
|
|
pkgname=go
|
|
|
|
version=r58
|
2011-11-14 18:12:47 +01:00
|
|
|
revision=2
|
2011-07-05 20:51:42 +02:00
|
|
|
short_desc="The Go Programming Language"
|
2011-07-17 08:27:36 +02:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-07-05 20:51:42 +02:00
|
|
|
homepage="http://golang.org/"
|
|
|
|
license="BSD"
|
|
|
|
long_desc="
|
|
|
|
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
|
2011-10-14 19:24:20 +02:00
|
|
|
a dynamically typed, interpreted language."
|
2011-07-05 20:51:42 +02:00
|
|
|
|
|
|
|
nofetch=yes
|
|
|
|
noextract=yes
|
|
|
|
nostrip=yes
|
|
|
|
|
|
|
|
Add_dependency run make
|
|
|
|
|
|
|
|
Add_dependency build mercurial
|
|
|
|
Add_dependency build coreutils
|
|
|
|
Add_dependency build ed
|
|
|
|
Add_dependency build bison
|
|
|
|
Add_dependency build gawk
|
|
|
|
Add_dependency build glibc-devel
|
|
|
|
|
2011-10-14 19:24:20 +02:00
|
|
|
do_fetch() {
|
2011-07-05 20:51:42 +02:00
|
|
|
local url="https://go.googlecode.com/hg"
|
2011-10-14 19:24:20 +02:00
|
|
|
hg clone -u ${version} ${url} ${pkgname}-${version}
|
2011-07-05 20:51:42 +02:00
|
|
|
}
|
|
|
|
|
2011-10-14 19:24:20 +02:00
|
|
|
do_build() {
|
|
|
|
cd ${wrksrc}/src
|
2011-07-05 20:51:42 +02:00
|
|
|
GOROOT="${wrksrc}/${build_wrksrc}"
|
|
|
|
GOROOT_FINAL="/opt/go/"
|
|
|
|
bash ./make.bash
|
2011-07-10 14:02:54 +02:00
|
|
|
hg --config extensions.purge= purge . --all
|
2011-07-05 20:51:42 +02:00
|
|
|
}
|
|
|
|
|
2011-10-14 19:24:20 +02:00
|
|
|
do_install() {
|
2011-07-05 20:51:42 +02:00
|
|
|
vmkdir opt/go 755
|
|
|
|
for i in bin doc misc src lib include pkg;do
|
|
|
|
vcopy $i opt/go
|
|
|
|
done
|
|
|
|
vinstall ${FILESDIR}/go.sh 644 etc/profile.d
|
|
|
|
}
|