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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name go |
---|
7 | version 1.0 |
---|
8 | categories lang |
---|
9 | license BSD |
---|
10 | platforms darwin |
---|
11 | maintainers snc gmail.com:jweede |
---|
12 | description Google's GO language |
---|
13 | long_description ${description} |
---|
14 | |
---|
15 | homepage googlecode |
---|
16 | |
---|
17 | master_sites googlecode |
---|
18 | fetch.type hg |
---|
19 | hg.url https://go.googlecode.com/hg/ |
---|
20 | hg.tag release |
---|
21 | post-fetch { |
---|
22 | file rename ${workpath}/${distname} ${workpath}/${name} |
---|
23 | } |
---|
24 | |
---|
25 | checksums |
---|
26 | |
---|
27 | use_configure no |
---|
28 | |
---|
29 | build { |
---|
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 | } |
---|