williamh    15/06/26 22:54:48

  Modified:             go-text-9999.ebuild ChangeLog
  Log:
  make live ebuild copyable
  
  (Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 
0x30C46538)

Revision  Changes    Path
1.7                  dev-go/go-text/go-text-9999.ebuild

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

Index: go-text-9999.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-go/go-text/go-text-9999.ebuild,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- go-text-9999.ebuild 25 Jun 2015 17:43:02 -0000      1.6
+++ go-text-9999.ebuild 26 Jun 2015 22:54:48 -0000      1.7
@@ -1,13 +1,21 @@
 # Copyright 1999-2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/go-text-9999.ebuild,v 1.6 
2015/06/25 17:43:02 williamh Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/go-text-9999.ebuild,v 1.7 
2015/06/26 22:54:48 williamh Exp $
 
 EAPI=5
 
-inherit golang-build golang-vcs
 EGO_PN=golang.org/x/text/...
 EGO_SRC=golang.org/x/text
 
+if [[ ${PV} = *9999* ]]; then
+       inherit golang-vcs
+else
+       KEYWORDS="~amd64"
+       EGIT_COMMIT="df923bbb63f8ea3a26bb743e2a497abd0ab585f7"
+       SRC_URI="https://github.com/golang/text/archive/${EGIT_COMMIT}.tar.gz 
-> ${P}.tar.gz"
+fi
+inherit golang-build
+
 DESCRIPTION="Go text processing support"
 HOMEPAGE="https://godoc.org/golang.org/x/text";
 LICENSE="BSD"
@@ -16,6 +24,35 @@
 DEPEND=""
 RDEPEND=""
 
+if [[ ${PV} != *9999* ]]; then
+src_unpack() {
+       local f
+
+       for f in ${A}
+       do
+               case "${f}" in
+                       *.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
+                               local destdir=${WORKDIR}/${P}/src/${EGO_SRC}
+
+                               debug-print "${FUNCNAME}: unpacking ${f} to 
${destdir}"
+
+                               # XXX: check whether the directory structure 
inside is
+                               # fine? i.e. if the tarball has actually a 
parent dir.
+                               mkdir -p "${destdir}" || die
+                               tar -C "${destdir}" -x --strip-components 1 \
+                                       -f "${DISTDIR}/${f}" || die
+                               ;;
+                       *)
+                               debug-print "${FUNCNAME}: falling back to 
unpack for ${f}"
+
+                               # fall back to the default method
+                               unpack "${f}"
+                               ;;
+               esac
+       done
+}
+fi
+
 src_test() {
        # Create a writable GOROOT in order to avoid sandbox violations.
        cp -sR "$(go env GOROOT)" "${T}/goroot" || die



1.8                  dev-go/go-text/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/ChangeLog?rev=1.8&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/ChangeLog?rev=1.8&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/ChangeLog?r1=1.7&r2=1.8

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-go/go-text/ChangeLog,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ChangeLog   9 Jun 2015 03:07:26 -0000       1.7
+++ ChangeLog   26 Jun 2015 22:54:48 -0000      1.8
@@ -1,6 +1,9 @@
 # ChangeLog for dev-go/go-text
 # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/ChangeLog,v 1.7 2015/06/09 
03:07:26 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/ChangeLog,v 1.8 2015/06/26 
22:54:48 williamh Exp $
+
+  26 Jun 2015; William Hubbs <[email protected]> go-text-9999.ebuild:
+  make live ebuild copyable
 
 *go-text-1.4.2_p20150604 (09 Jun 2015)
 




Reply via email to