williamh    15/06/25 17:56:49

  Modified:             go-sys-9999.ebuild
  Log:
  Convert live ebuild to use the new eclasses
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
0x30C46538)

Revision  Changes    Path
1.3                  dev-go/go-sys/go-sys-9999.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild?rev=1.3&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild?rev=1.3&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild?r1=1.2&r2=1.3

Index: go-sys-9999.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- go-sys-9999.ebuild  9 Jun 2015 03:28:08 -0000       1.2
+++ go-sys-9999.ebuild  25 Jun 2015 17:56:49 -0000      1.3
@@ -1,45 +1,16 @@
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild,v 1.2 
2015/06/09 03:28:08 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild,v 1.3 
2015/06/25 17:56:49 williamh Exp $
 
 EAPI=5
-inherit git-r3
+inherit golang-build golang-vcs
+EGO_PN=golang.org/x/sys/...
+EGO_SRC=golang.org/x/sys
 
-KEYWORDS=""
 DESCRIPTION="Go packages for low-level interaction with the operating system"
-GO_PN=golang.org/x/${PN##*-}
-HOMEPAGE="https://godoc.org/${GO_PN}";
-EGIT_REPO_URI="https://go.googlesource.com/${PN##*-}";
+HOMEPAGE="https://godoc.org/golang.org/x/sys";
 LICENSE="BSD"
 SLOT="0"
 IUSE=""
-DEPEND=">=dev-lang/go-1.4"
+DEPEND=""
 RDEPEND=""
-S="${WORKDIR}/src/${GO_PN}"
-EGIT_CHECKOUT_DIR="${S}"
-STRIP_MASK="*.a"
-
-src_compile() {
-       # Create a writable GOROOT in order to avoid sandbox violations.
-       GOROOT="${WORKDIR}/goroot"
-       cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
-       rm -rf "${GOROOT}/src/${GO_PN%%/*}" \
-               "${GOROOT}/pkg/linux_${ARCH}/${GO_PN%%/*}" || die
-       GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
-               go install -x -v -work ${GO_PN}/unix/... || die
-}
-
-src_test() {
-       GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
-               go test -x -v golang.org/x/sys/unix/... || die
-}
-
-src_install() {
-       insinto /usr/lib/go
-       doins -r "${WORKDIR}"/pkg
-       insinto /usr/lib/go/src/${GO_PN}
-       find "${WORKDIR}"/src/${GO_PN} -name '.git*' -exec \
-               rm -rf {} \; 2>/dev/null
-       insopts -m0644 -p # preserve timestamps for bug 551486
-       doins -r "${WORKDIR}"/src/${GO_PN}/unix
-}




Reply via email to