diff options
-rw-r--r-- | development/google-go-lang/README | 16 | ||||
-rw-r--r-- | development/google-go-lang/google-go-lang.SlackBuild | 12 | ||||
-rw-r--r-- | development/google-go-lang/google-go-lang.info | 6 |
3 files changed, 25 insertions, 9 deletions
diff --git a/development/google-go-lang/README b/development/google-go-lang/README index a276a9cf32..7e8341dcf2 100644 --- a/development/google-go-lang/README +++ b/development/google-go-lang/README @@ -27,4 +27,20 @@ Like so: Now in ~/src/go, you'll have this library available! +Since the golang idiom is very `go get'able as a limited user, installed +libraries from slackbuilds.org are located outside of GOROOT (which is only for +golang standard library), in /usr/share/gocode +By not setting a system-wide GOPATH defaulting to this location, then it is up +to the user of whether to include this system path as well, like: + export GOPATH="$HOME/src/go:/usr/share/gocode" + +This system source directory is primarly only for buildtime of slackbuilds. + +This is because `go get' iterates through the paths provided, looking for +matching imports. If a match is not found, then is cloned to the first path +provided. You would not want this to be a system path, as to need root +privilege to clone source. + +As of go1.2, the 'go doc ...' command has been relocated to the go.tools +library (golang-googlecode-gotools), which provide `godoc`. diff --git a/development/google-go-lang/google-go-lang.SlackBuild b/development/google-go-lang/google-go-lang.SlackBuild index b954a236b7..6a43348063 100644 --- a/development/google-go-lang/google-go-lang.SlackBuild +++ b/development/google-go-lang/google-go-lang.SlackBuild @@ -5,6 +5,7 @@ # Written by Eric Schultz eric at schultzter.ca # Taken over by Vincent Batts vbatts@hashbangbash.com +# Copyright (c) 2012, 2013 Vincent Batts # Copyright (c) 2012 Eric Schultz # # Permission is hereby granted, free of charge, to any person obtaining a copy of @@ -26,7 +27,7 @@ # SOFTWARE. PRGNAM=google-go-lang -VERSION=${VERSION:-1.1.2} +VERSION=${VERSION:-1.2} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -55,7 +56,6 @@ else GARCH=386 fi - CWD=$(pwd) TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM @@ -70,10 +70,10 @@ tar xvf $CWD/go$VERSION.src.tar.gz cd go chown -R root:root . find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; export GOSRC="$(pwd)" export GOROOT="$(pwd)" diff --git a/development/google-go-lang/google-go-lang.info b/development/google-go-lang/google-go-lang.info index a5d2aa5cf7..63b30844cd 100644 --- a/development/google-go-lang/google-go-lang.info +++ b/development/google-go-lang/google-go-lang.info @@ -1,8 +1,8 @@ PRGNAM="google-go-lang" -VERSION="1.1.2" +VERSION="1.2" HOMEPAGE="http://golang.org" -DOWNLOAD="https://go.googlecode.com/files/go1.1.2.src.tar.gz" -MD5SUM="705feb2246c8ddaf820d7e171f1430c5" +DOWNLOAD="https://go.googlecode.com/files/go1.2.src.tar.gz" +MD5SUM="c2ace56f6b6413a5c6318b9527a8b763" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |