Ticket #22476: Portfile

File Portfile, 929 bytes (added by nerdling (Jeremy Lavergne), 14 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                go
7version             1.0
8categories          lang
9license             BSD
10platforms           darwin
11maintainers         snc gmail.com:jweede
12description         Google's GO language
13long_description    ${description}
14
15homepage            googlecode
16
17master_sites        googlecode
18fetch.type          hg
19hg.url              https://go.googlecode.com/hg/
20hg.tag              release
21post-fetch {
22    file rename ${workpath}/${distname} ${workpath}/${name}
23}
24
25checksums
26
27use_configure       no
28
29build {
30    system "GOROOT=${workpath}/${name}\nGOBIN=${prefix}/bin\nGOARCH=amd64\nGOOS=darwin\nexport GOROOT GOBIN GOARCH GOOS\n cd ${workpath}/${name}/src && ./all.bash"
31}