aboutsummaryrefslogtreecommitdiffstats
path: root/lang/go
diff options
context:
space:
mode:
authorwxs <wxs@FreeBSD.org>2010-01-24 01:44:55 +0800
committerwxs <wxs@FreeBSD.org>2010-01-24 01:44:55 +0800
commitb594fe2a030d1947228bded41fbc3f43c5865dc1 (patch)
tree92b5db25d3898c7109b8652477577ed168e3af70 /lang/go
parent2ef20c01360070eeffd37a6a02ceba4c8001fb37 (diff)
downloadfreebsd-ports-gnome-b594fe2a030d1947228bded41fbc3f43c5865dc1.tar.gz
freebsd-ports-gnome-b594fe2a030d1947228bded41fbc3f43c5865dc1.tar.zst
freebsd-ports-gnome-b594fe2a030d1947228bded41fbc3f43c5865dc1.zip
An experimental, concurrent, garbage collected language.
Submitted by: devon.odell@gmail.com (private mail)
Diffstat (limited to 'lang/go')
-rw-r--r--lang/go/Makefile70
-rw-r--r--lang/go/distinfo3
-rw-r--r--lang/go/pkg-descr3
-rw-r--r--lang/go/pkg-message18
-rw-r--r--lang/go/pkg-plist203
5 files changed, 297 insertions, 0 deletions
diff --git a/lang/go/Makefile b/lang/go/Makefile
new file mode 100644
index 000000000000..752ee09d29c1
--- /dev/null
+++ b/lang/go/Makefile
@@ -0,0 +1,70 @@
+# Ports collection makefile for: go
+# Date created: 04 December 2010
+# Whom: Devon H. O'Dell <devon.odell@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= go
+PORTVERSION= 20100113
+CATEGORIES= lang
+MASTER_SITES= ${MASTER_SITE_LOCAL} \
+ http://www.atarininja.org/~wxs/distfiles/
+MASTER_SITE_SUBDIR= wxs
+DISTNAME= go-${PORTVERSION}
+
+MAINTAINER= devon.odell@gmail.com
+COMMENT= An experimental, concurrent, garbage-collected language
+
+BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash \
+ bison:${PORTSDIR}/devel/bison
+
+ONLY_FOR_ARCHS= i386 amd64
+USE_BZIP2= yes
+USE_GMAKE= yes
+MAKEFILE= ${WRKSRC}/src/Makefile
+.if !defined(MAINTAINER_MODE)
+ALL_TARGET= build
+.endif
+
+.include <bsd.port.pre.mk>
+
+.if ${ARCH} == "i386"
+GOARCH=386
+GOOBJ=8
+.else
+GOARCH=amd64
+GOOBJ=6
+.endif
+
+GOBIN= ${WRKDIR}/bin
+MAKE_ENV= GOROOT=${WRKSRC} \
+ GOARCH=${GOARCH} \
+ GOBIN=${GOBIN} \
+ GOOS=freebsd
+PLIST_SUB+= ARCH=${GOARCH} \
+ GOOBJ=${GOOBJ}
+
+pre-build:
+ @${MKDIR} ${GOBIN}
+
+post-install:
+ @${CAT} ${PKGMESSAGE} | ${SED} \
+ -e "s|%%PREFIX%%|${PREFIX}|g" \
+ -e "s|%%ARCH%%|${GOARCH}|g" \
+ -e "s|%%GOOBJ%%|${GOOBJ}|g"
+
+do-install:
+.if !defined(NOPORTDOCS)
+ ${INSTALL} -d -m 0755 ${DOCSDIR}
+ ${CP} -R ${WRKSRC}/doc/ ${DOCSDIR}
+.endif
+ ${INSTALL} -d -m 0755 ${DATADIR}
+ ${INSTALL} -d -m 0755 ${PREFIX}/lib/go
+ ${INSTALL} -m 0644 ${WRKSRC}/src/Make.${GOARCH} ${DATADIR}
+ ${INSTALL} -m 0644 ${WRKSRC}/src/Make.pkg ${DATADIR}
+ ${INSTALL} -m 0644 ${WRKSRC}/src/Make.cmd ${DATADIR}
+ ${CP} -R ${WRKSRC}/pkg/ ${PREFIX}/lib/go
+ ${CP} -R ${WRKDIR}/bin/ ${PREFIX}/bin
+
+.include <bsd.port.post.mk>
diff --git a/lang/go/distinfo b/lang/go/distinfo
new file mode 100644
index 000000000000..bfc283d49ed8
--- /dev/null
+++ b/lang/go/distinfo
@@ -0,0 +1,3 @@
+MD5 (go-20100113.tar.bz2) = d0843e0be963ea44a33dceaa020c55a6
+SHA256 (go-20100113.tar.bz2) = e418f0d1a6ab2621fa31908a5fce401ddee69240a3b3efc69611d6d9de57f02e
+SIZE (go-20100113.tar.bz2) = 19885406
diff --git a/lang/go/pkg-descr b/lang/go/pkg-descr
new file mode 100644
index 000000000000..02e642e2e40f
--- /dev/null
+++ b/lang/go/pkg-descr
@@ -0,0 +1,3 @@
+An experimental, concurrent, garbage collected language.
+
+WWW: http://golang.org
diff --git a/lang/go/pkg-message b/lang/go/pkg-message
new file mode 100644
index 000000000000..8f11e10b1444
--- /dev/null
+++ b/lang/go/pkg-message
@@ -0,0 +1,18 @@
+------------------------------------------------------------------
+ To build Go programs for FreeBSD, you'll want to set up your
+ environment properly. The following environment variables should
+ be set:
+
+ GOOS=freebsd
+ GOARCH=%%ARCH%%
+ GOROOT=%%PREFIX%%/lib/go
+
+ To build Go programs, you may include %%PREFIX%%/share/go/Make.pkg
+ or %%PREFIX%%/share/go/Make.cmd in your build infrastructure
+ (note: this requires gmake).
+
+ Your compiler is %%GOOBJ%%g and your linker is %%GOOBJ%%l.
+
+ For more information on programming in Go and for more
+ documentation, see http://www.golang.org.
+------------------------------------------------------------------
diff --git a/lang/go/pkg-plist b/lang/go/pkg-plist
new file mode 100644
index 000000000000..c8a5b5d49bed
--- /dev/null
+++ b/lang/go/pkg-plist
@@ -0,0 +1,203 @@
+lib/go/freebsd_%%ARCH%%/runtime.a
+lib/go/freebsd_%%ARCH%%/sort.a
+lib/go/freebsd_%%ARCH%%/json.a
+lib/go/freebsd_%%ARCH%%/patch.a
+lib/go/freebsd_%%ARCH%%/rpc.a
+lib/go/freebsd_%%ARCH%%/ebnf.a
+lib/go/freebsd_%%ARCH%%/utf8.a
+lib/go/freebsd_%%ARCH%%/image/png.a
+lib/go/freebsd_%%ARCH%%/image/jpeg.a
+lib/go/freebsd_%%ARCH%%/encoding/base64.a
+lib/go/freebsd_%%ARCH%%/encoding/ascii85.a
+lib/go/freebsd_%%ARCH%%/encoding/hex.a
+lib/go/freebsd_%%ARCH%%/encoding/binary.a
+lib/go/freebsd_%%ARCH%%/encoding/git85.a
+lib/go/freebsd_%%ARCH%%/encoding/pem.a
+lib/go/freebsd_%%ARCH%%/bytes.a
+lib/go/freebsd_%%ARCH%%/debug/gosym.a
+lib/go/freebsd_%%ARCH%%/debug/proc.a
+lib/go/freebsd_%%ARCH%%/debug/macho.a
+lib/go/freebsd_%%ARCH%%/debug/dwarf.a
+lib/go/freebsd_%%ARCH%%/debug/elf.a
+lib/go/freebsd_%%ARCH%%/container/ring.a
+lib/go/freebsd_%%ARCH%%/container/heap.a
+lib/go/freebsd_%%ARCH%%/container/list.a
+lib/go/freebsd_%%ARCH%%/container/vector.a
+lib/go/freebsd_%%ARCH%%/strconv.a
+lib/go/freebsd_%%ARCH%%/io/ioutil.a
+lib/go/freebsd_%%ARCH%%/websocket.a
+lib/go/freebsd_%%ARCH%%/flag.a
+lib/go/freebsd_%%ARCH%%/crypto/sha256.a
+lib/go/freebsd_%%ARCH%%/crypto/sha1.a
+lib/go/freebsd_%%ARCH%%/crypto/md4.a
+lib/go/freebsd_%%ARCH%%/crypto/md5.a
+lib/go/freebsd_%%ARCH%%/crypto/xtea.a
+lib/go/freebsd_%%ARCH%%/crypto/x509.a
+lib/go/freebsd_%%ARCH%%/crypto/aes.a
+lib/go/freebsd_%%ARCH%%/crypto/block.a
+lib/go/freebsd_%%ARCH%%/crypto/rsa.a
+lib/go/freebsd_%%ARCH%%/crypto/tls.a
+lib/go/freebsd_%%ARCH%%/crypto/rc4.a
+lib/go/freebsd_%%ARCH%%/crypto/hmac.a
+lib/go/freebsd_%%ARCH%%/crypto/subtle.a
+lib/go/freebsd_%%ARCH%%/regexp.a
+lib/go/freebsd_%%ARCH%%/malloc.a
+lib/go/freebsd_%%ARCH%%/sync.a
+lib/go/freebsd_%%ARCH%%/os.a
+lib/go/freebsd_%%ARCH%%/os/signal.a
+lib/go/freebsd_%%ARCH%%/go/scanner.a
+lib/go/freebsd_%%ARCH%%/go/printer.a
+lib/go/freebsd_%%ARCH%%/go/parser.a
+lib/go/freebsd_%%ARCH%%/go/token.a
+lib/go/freebsd_%%ARCH%%/go/doc.a
+lib/go/freebsd_%%ARCH%%/go/ast.a
+lib/go/freebsd_%%ARCH%%/net.a
+lib/go/freebsd_%%ARCH%%/exec.a
+lib/go/freebsd_%%ARCH%%/io.a
+lib/go/freebsd_%%ARCH%%/compress/zlib.a
+lib/go/freebsd_%%ARCH%%/compress/flate.a
+lib/go/freebsd_%%ARCH%%/compress/gzip.a
+lib/go/freebsd_%%ARCH%%/libcgo.so
+lib/go/freebsd_%%ARCH%%/rand.a
+lib/go/freebsd_%%ARCH%%/http.a
+lib/go/freebsd_%%ARCH%%/expvar.a
+lib/go/freebsd_%%ARCH%%/once.a
+lib/go/freebsd_%%ARCH%%/testing.a
+lib/go/freebsd_%%ARCH%%/hash.a
+lib/go/freebsd_%%ARCH%%/tabwriter.a
+lib/go/freebsd_%%ARCH%%/template.a
+lib/go/freebsd_%%ARCH%%/log.a
+lib/go/freebsd_%%ARCH%%/path.a
+lib/go/freebsd_%%ARCH%%/strings.a
+lib/go/freebsd_%%ARCH%%/exp/parser.a
+lib/go/freebsd_%%ARCH%%/exp/datafmt.a
+lib/go/freebsd_%%ARCH%%/exp/exception.a
+lib/go/freebsd_%%ARCH%%/exp/eval.a
+lib/go/freebsd_%%ARCH%%/exp/draw.a
+lib/go/freebsd_%%ARCH%%/exp/iterable.a
+lib/go/freebsd_%%ARCH%%/bignum.a
+lib/go/freebsd_%%ARCH%%/reflect.a
+lib/go/freebsd_%%ARCH%%/math.a
+lib/go/freebsd_%%ARCH%%/testing/quick.a
+lib/go/freebsd_%%ARCH%%/testing/iotest.a
+lib/go/freebsd_%%ARCH%%/testing/script.a
+lib/go/freebsd_%%ARCH%%/image.a
+lib/go/freebsd_%%ARCH%%/unicode.a
+lib/go/freebsd_%%ARCH%%/xgb.a
+lib/go/freebsd_%%ARCH%%/hash/crc32.a
+lib/go/freebsd_%%ARCH%%/hash/adler32.a
+lib/go/freebsd_%%ARCH%%/gob.a
+lib/go/freebsd_%%ARCH%%/archive/tar.a
+lib/go/freebsd_%%ARCH%%/fmt.a
+lib/go/freebsd_%%ARCH%%/big.a
+lib/go/freebsd_%%ARCH%%/bufio.a
+lib/go/freebsd_%%ARCH%%/asn1.a
+lib/go/freebsd_%%ARCH%%/time.a
+lib/go/freebsd_%%ARCH%%/scanner.a
+lib/go/freebsd_%%ARCH%%/syscall.a
+lib/go/freebsd_%%ARCH%%/syslog.a
+lib/go/freebsd_%%ARCH%%/xml.a
+lib/go/~place-holder~
+bin/%%GOOBJ%%g
+bin/hgpatch
+bin/godefs
+bin/godoc
+bin/cgo
+bin/6cov
+bin/gomake
+bin/%%GOOBJ%%c
+bin/%%GOOBJ%%a
+bin/%%GOOBJ%%l
+bin/6prof
+bin/ebnflint
+bin/gofmt
+bin/gotest
+bin/gopack
+bin/goyacc
+bin/6nm
+bin/quietgcc
+%%DATADIR%%/Make.%%ARCH%%
+%%DATADIR%%/Make.pkg
+%%DATADIR%%/Make.cmd
+%%PORTDOCS%%%%DOCSDIR%%/gccgo_contribute.html
+%%PORTDOCS%%%%DOCSDIR%%/prog.sh
+%%PORTDOCS%%%%DOCSDIR%%/install.html
+%%PORTDOCS%%%%DOCSDIR%%/makehtml
+%%PORTDOCS%%%%DOCSDIR%%/Makefile
+%%PORTDOCS%%%%DOCSDIR%%/go_mem.html
+%%PORTDOCS%%%%DOCSDIR%%/root.html
+%%PORTDOCS%%%%DOCSDIR%%/godocs.js
+%%PORTDOCS%%%%DOCSDIR%%/go-logo-blue.png
+%%PORTDOCS%%%%DOCSDIR%%/sieve.gif
+%%PORTDOCS%%%%DOCSDIR%%/go_tutorial.html
+%%PORTDOCS%%%%DOCSDIR%%/style.css
+%%PORTDOCS%%%%DOCSDIR%%/progs/helloworld3.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/cat_rot13.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/cat.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/echo.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/sortmain.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/server1.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/file.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/server.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/sum.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/sort.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/sieve1.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/helloworld.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/print.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/sieve.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/print_string.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/strings.go
+%%PORTDOCS%%%%DOCSDIR%%/progs/run
+%%PORTDOCS%%%%DOCSDIR%%/video-snap.jpg
+%%PORTDOCS%%%%DOCSDIR%%/GoCourseDay1.pdf
+%%PORTDOCS%%%%DOCSDIR%%/code.html
+%%PORTDOCS%%%%DOCSDIR%%/gordon/bumper640x360.png
+%%PORTDOCS%%%%DOCSDIR%%/gordon/gophercolor.png
+%%PORTDOCS%%%%DOCSDIR%%/gordon/bumper320x180.png
+%%PORTDOCS%%%%DOCSDIR%%/gordon/gophercolor16x16.png
+%%PORTDOCS%%%%DOCSDIR%%/gordon/gopherbw.png
+%%PORTDOCS%%%%DOCSDIR%%/gordon/bumper480x270.png
+%%PORTDOCS%%%%DOCSDIR%%/gordon/bumper.png
+%%PORTDOCS%%%%DOCSDIR%%/gordon/bumper192x108.png
+%%PORTDOCS%%%%DOCSDIR%%/GoCourseDay2.pdf
+%%PORTDOCS%%%%DOCSDIR%%/effective_go.html
+%%PORTDOCS%%%%DOCSDIR%%/go_faq.html
+%%PORTDOCS%%%%DOCSDIR%%/gccgo_install.html
+%%PORTDOCS%%%%DOCSDIR%%/go_spec.html
+%%PORTDOCS%%%%DOCSDIR%%/GoCourseDay3.pdf
+%%PORTDOCS%%%%DOCSDIR%%/logo-153x55.png
+%%PORTDOCS%%%%DOCSDIR%%/go_tutorial.txt
+%%PORTDOCS%%%%DOCSDIR%%/htmlgen.go
+%%PORTDOCS%%%%DOCSDIR%%/go_for_cpp_programmers.html
+%%PORTDOCS%%%%DOCSDIR%%/contribute.html
+%%PORTDOCS%%%%DOCSDIR%%/go-logo-black.png
+%%PORTDOCS%%%%DOCSDIR%%/go_lang_faq.html
+%%PORTDOCS%%%%DOCSDIR%%/talks/slidy.js
+%%PORTDOCS%%%%DOCSDIR%%/talks/slidy.css
+%%PORTDOCS%%%%DOCSDIR%%/talks/go_talk-20091030.pdf
+%%PORTDOCS%%%%DOCSDIR%%/talks/go_talk-20100112.html
+%%PORTDOCS%%%%DOCSDIR%%/go-logo-white.png
+%%PORTDOCS%%%%DOCSDIR%%/devel/release.html
+%%PORTDOCS%%%%DOCSDIR%%/devel/roadmap.html
+%%PORTDOCS%%%%DOCSDIR%%/devel/index.html
+@dirrm lib/go/freebsd_%%ARCH%%/os
+@dirrm lib/go/freebsd_%%ARCH%%/exp
+@dirrm lib/go/freebsd_%%ARCH%%/testing
+@dirrm lib/go/freebsd_%%ARCH%%/hash
+@dirrm lib/go/freebsd_%%ARCH%%/debug
+@dirrm lib/go/freebsd_%%ARCH%%/archive
+@dirrm lib/go/freebsd_%%ARCH%%/image
+@dirrm lib/go/freebsd_%%ARCH%%/crypto
+@dirrm lib/go/freebsd_%%ARCH%%/io
+@dirrm lib/go/freebsd_%%ARCH%%/encoding
+@dirrm lib/go/freebsd_%%ARCH%%/compress
+@dirrm lib/go/freebsd_%%ARCH%%/go
+@dirrm lib/go/freebsd_%%ARCH%%/container
+@dirrm lib/go/freebsd_%%ARCH%%
+@dirrm lib/go/
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/devel
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/progs
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/talks
+%%PORTDOCS%%@dirrm %%DOCSDIR%%/gordon
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+@dirrm %%DATADIR%%