golang, docker in main iproute2 verbump
This commit is contained in:
Executable
+47
@@ -0,0 +1,47 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
shelltools.export("GOROOT", "%s/go-go1.4.2" % get.workDIR())
|
||||
shelltools.export("GOBIN", "$GOROOT/bin")
|
||||
shelltools.export("GOPATH", "%s" % get.workDIR())
|
||||
shelltools.export("GOROOT_FINAL", "/usr/lib/go")
|
||||
|
||||
shelltools.export("GOOS","linux")
|
||||
shelltools.export("GOARCH","amd64")
|
||||
|
||||
NoStrip=["/"]
|
||||
|
||||
def build():
|
||||
shelltools.cd("src")
|
||||
shelltools.system("bash make.bash")
|
||||
|
||||
shelltools.cd("%s/go-go1.4.2" % get.workDIR())
|
||||
|
||||
shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/godoc")
|
||||
shelltools.system("$GOROOT/bin/go build -o $GOPATH/godoc golang.org/x/tools/cmd/godoc")
|
||||
|
||||
for tool in ["cover", "vet", "callgraph"]:
|
||||
shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/%s" % tool)
|
||||
shelltools.system("$GOROOT/bin/go build -o $GOROOT/pkg/tool/$GOOS\_$GOARCH/%s golang.org/x/tools/cmd/%s" % (tool, tool))
|
||||
|
||||
|
||||
def install():
|
||||
shelltools.cd("%s/go-go1.4.2" % get.workDIR())
|
||||
|
||||
pisitools.dobin("bin/*")
|
||||
pisitools.dodir("/usr/lib/go")
|
||||
pisitools.insinto("/usr/lib/go", "doc")
|
||||
pisitools.insinto("/usr/lib/go", "include")
|
||||
pisitools.insinto("/usr/lib/go", "lib")
|
||||
pisitools.insinto("/usr/lib/go", "pkg")
|
||||
pisitools.insinto("/usr/lib/go", "src")
|
||||
|
||||
pisitools.dodoc("VERSION", "LICENSE", "PATENTS", "README", "AUTHORS", "CONTRIBUTORS")
|
||||
@@ -0,0 +1 @@
|
||||
export GOROOT=/usr/lib/go
|
||||
Executable
+66
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>go</Name>
|
||||
<Homepage>http://golang.org</Homepage>
|
||||
<Packager>
|
||||
<Name>Aydın Demirel</Name>
|
||||
<Email>aydin.demirel@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>BSD</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Compiler and tools for the Go programming language from Google</Summary>
|
||||
<Description>Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.</Description>
|
||||
<Archive sha1sum="7fad08fc0c884aa68f13d3cd82d3ad2aa1872368" type="targz">https://github.com/golang/go/archive/go1.4.2.tar.gz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>perl</Dependency>
|
||||
<Dependency>gawk</Dependency>
|
||||
<Dependency>mercurial</Dependency>
|
||||
<Dependency>glibc-32bit</Dependency>
|
||||
<Dependency>git</Dependency>
|
||||
</BuildDependencies>
|
||||
<Patches>
|
||||
</Patches>
|
||||
</Source>
|
||||
<Package>
|
||||
<Name>golang</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>glibc-32bit</Dependency>
|
||||
<Dependency>git</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin/</Path>
|
||||
<Path fileType="library">/usr/lib/</Path>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="data">/usr/share/</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/profile.d/go.sh">go.sh</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="3">
|
||||
<Date>2015-04-17</Date>
|
||||
<Version>1.4.2</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2014-12-24</Date>
|
||||
<Version>1.3.3</Version>
|
||||
<Comment>Version bump, remove unneded depse</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2014-09-27</Date>
|
||||
<Version>1.3.2</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Aydın Demirel</Name>
|
||||
<Email>aydin.demirel@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>go</Name>
|
||||
<Summary xml:lang="tr">Google'dan Go programlama dili için araçlar ve derleyici</Summary>
|
||||
<Description xml:lang="tr">Go basit, güvenilir ve verimli yazılım inşa etmek için onu kolay yapan açık kaynaklı bir programlama dilidir.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user