williamh 15/06/28 23:19:15 Modified: go-sys-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.4 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.4&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild?rev=1.4&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild?r1=1.3&r2=1.4 Index: go-sys-9999.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- go-sys-9999.ebuild 25 Jun 2015 17:56:49 -0000 1.3 +++ go-sys-9999.ebuild 28 Jun 2015 23:19:15 -0000 1.4 @@ -1,12 +1,20 @@ # 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.3 2015/06/25 17:56:49 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-sys/go-sys-9999.ebuild,v 1.4 2015/06/28 23:19:15 williamh Exp $ EAPI=5 -inherit golang-build golang-vcs EGO_PN=golang.org/x/sys/... EGO_SRC=golang.org/x/sys +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64" +EGIT_COMMIT="58e109635f5d754f4b3a8a0172db65a52fcab866" + SRC_URI="https://github.com/golang/sys/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +fi +inherit golang-build + DESCRIPTION="Go packages for low-level interaction with the operating system" HOMEPAGE="https://godoc.org/golang.org/x/sys" LICENSE="BSD" @@ -14,3 +22,32 @@ IUSE="" 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 1.4 dev-go/go-sys/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/ChangeLog?rev=1.4&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/ChangeLog?rev=1.4&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-sys/ChangeLog?r1=1.3&r2=1.4 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-go/go-sys/ChangeLog,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- ChangeLog 9 Jun 2015 03:28:08 -0000 1.3 +++ ChangeLog 28 Jun 2015 23:19:15 -0000 1.4 @@ -1,6 +1,9 @@ # ChangeLog for dev-go/go-sys # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-go/go-sys/ChangeLog,v 1.3 2015/06/09 03:28:08 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-sys/ChangeLog,v 1.4 2015/06/28 23:19:15 williamh Exp $ + + 28 Jun 2015; William Hubbs <willi...@gentoo.org> go-sys-9999.ebuild: + Make live ebuild copyable *go-sys-1.4.2_p20150518-r1 (09 Jun 2015)