[SM-Commit] GIT changes to master grimoire by Mathieu Lonjaret (eac1ab6f2a314a7bf04911b81856842b023886fc)

Mathieu Lonjaret scm at sourcemage.org
Sun May 9 16:41:38 EDT 2010


GIT changes to master grimoire by Mathieu Lonjaret <lejatorn at sourcemage.org>:

 devel/go/BUILD     |    6 ++++++
 devel/go/CONFIGURE |    1 +
 devel/go/DEPENDS   |    7 +++++++
 devel/go/DETAILS   |   23 +++++++++++++++++++++++
 devel/go/DOWNLOAD  |   31 +++++++++++++++++++++++++++++++
 devel/go/HISTORY   |    3 +++
 devel/go/INSTALL   |    2 ++
 7 files changed, 73 insertions(+)

New commits:
commit eac1ab6f2a314a7bf04911b81856842b023886fc
Author: Mathieu Lonjaret <lejatorn at sourcemage.org>
Commit: Mathieu Lonjaret <lejatorn at sourcemage.org>

    new spell: go

diff --git a/devel/go/BUILD b/devel/go/BUILD
new file mode 100755
index 0000000..7bd6b99
--- /dev/null
+++ b/devel/go/BUILD
@@ -0,0 +1,6 @@
+export GOROOT=${SOURCE_DIRECTORY}      &&
+export GOARCH                          &&
+export GOOS=linux                      &&
+export GOBIN=${INSTALL_ROOT}/usr/bin/  &&
+cd ${SOURCE_DIRECTORY}/src             &&
+./all.bash
diff --git a/devel/go/CONFIGURE b/devel/go/CONFIGURE
new file mode 100755
index 0000000..bfcdf16
--- /dev/null
+++ b/devel/go/CONFIGURE
@@ -0,0 +1 @@
+config_query_list GOARCH "What is your arch?" amd64 386 arm
diff --git a/devel/go/DEPENDS b/devel/go/DEPENDS
new file mode 100755
index 0000000..3b4ed5b
--- /dev/null
+++ b/devel/go/DEPENDS
@@ -0,0 +1,7 @@
+depends SYSTEM-LOGGER &&
+depends mercurial     &&
+depends bison         &&
+depends gcc           &&
+depends gawk          &&
+depends ed            &&
+depends make  
diff --git a/devel/go/DETAILS b/devel/go/DETAILS
new file mode 100755
index 0000000..838d133
--- /dev/null
+++ b/devel/go/DETAILS
@@ -0,0 +1,23 @@
+           SPELL="go"
+         VERSION="release"
+          SOURCE="${SPELL}-${VERSION}.tgz"
+   SOURCE_URL[0]="https://go.googlecode.com/hg/"
+   SOURCE_IGNORE=volatile
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}"
+        WEB_SITE="http://golang.org"
+         ENTERED="20100509"
+      LICENSE[0]="BSD"
+           SHORT="a systems programming language;
+expressive, concurrent, garbage-collected."
+cat << EOF
+Go is simple.
+Go is type safe and memory safe.  Go has pointers but no pointer
+arithmetic.  For random access, use slices, which know their limits.
+Go promotes writing systems and servers as sets of lightweight
+communicating processes, called goroutines, with strong support from
+the language.  Run thousands of goroutines if you want—and say
+good-bye to stack overflows.
+Go has fast builds, clean syntax, garbage collection, methods for any
+type, and run-time reflection.  It feels like a dynamic language but
+has the speed and safety of a static language.  It's a joy to use.
+EOF
diff --git a/devel/go/DOWNLOAD b/devel/go/DOWNLOAD
new file mode 100755
index 0000000..3a714ea
--- /dev/null
+++ b/devel/go/DOWNLOAD
@@ -0,0 +1,31 @@
+function url_hg_crack() {
+
+  URL=${SOURCE_URL}
+  HG_MODULE=${SPELL}
+  HG_TAG=${VERSION}
+
+}
+url_hg_crack 
+message "${MESSAGE_COLOR}Starting Mercurial checkout of" \
+        "${FILE_COLOR}${SOURCE}${MESSAGE_COLOR}...${DEFAULT_COLOR}"  &&
+if [[ -f $SOURCE_CACHE/${SOURCE} ]]
+then
+  message "${MESSAGE_COLOR}Previous source found unpacking...${DEFAULT_COLOR}"  &&
+  tar -jxf $SOURCE_CACHE/${SOURCE}  &&
+  cd ${HG_MODULE}  &&
+  message "${MESSAGE_COLOR}Running Mercurial update...${DEFAULT_COLOR}"  &&
+  hg pull -u -r ${HG_TAG}
+  cd ..
+  message "${MESSAGE_COLOR}Done...${DEFAULT_COLOR}"
+else
+  message "${MESSAGE_COLOR}Running initial Mercurial clone...${DEFAULT_COLOR}"  &&
+  hg clone -r${HG_TAG} ${URL} ${HG_MODULE}
+  message "${MESSAGE_COLOR}Done...${DEFAULT_COLOR}"
+fi   &&
+message "${MESSAGE_COLOR}Generating tarball...${DEFAULT_COLOR}" &&
+tar -jcf                                                        \
+    ${SOURCE}                                                   \
+    ${HG_MODULE}                                                &&
+cp  ${SOURCE} ${SOURCE_CACHE}/${SOURCE}                         &&
+rm  ${SOURCE}                                                   &&
+message "${MESSAGE_COLOR}Mercurial checkout complete...${DEFAULT_COLOR}"
diff --git a/devel/go/HISTORY b/devel/go/HISTORY
new file mode 100644
index 0000000..4e396cf
--- /dev/null
+++ b/devel/go/HISTORY
@@ -0,0 +1,3 @@
+2010-05-09 Mathieu Lonjaret <lejatorn at sourcemage.org>
+	* BUILD, CONFIGURE, DEPENDS, DETAILS, DOWNLOAD, HISTORY, INSTALL: created this spell
+
diff --git a/devel/go/INSTALL b/devel/go/INSTALL
new file mode 100755
index 0000000..37e5dad
--- /dev/null
+++ b/devel/go/INSTALL
@@ -0,0 +1,2 @@
+mkdir -p ${INSTALL_ROOT}/opt &>/dev/null       &&
+cp -r ${SOURCE_DIRECTORY} ${INSTALL_ROOT}/opt/ 



More information about the SM-Commit mailing list