williamh 15/06/29 03:30:29 Modified: go-crypto-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-crypto/go-crypto-9999.ebuild file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild?rev=1.7&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild?rev=1.7&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild?r1=1.6&r2=1.7 Index: go-crypto-9999.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- go-crypto-9999.ebuild 25 Jun 2015 17:21:45 -0000 1.6 +++ go-crypto-9999.ebuild 29 Jun 2015 03:30:29 -0000 1.7 @@ -1,20 +1,57 @@ # Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild,v 1.6 2015/06/25 17:21:45 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-crypto/go-crypto-9999.ebuild,v 1.7 2015/06/29 03:30:29 williamh Exp $ EAPI=5 -inherit golang-build golang-vcs EGO_PN=golang.org/x/crypto/... EGO_SRC=golang.org/x/crypto +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64" + EGIT_COMMIT="1e856cbfdf9bc25eefca75f83f25d55e35ae72e0" + SRC_URI="https://github.com/golang/crypto/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +fi +inherit golang-build + DESCRIPTION="Go supplementary cryptography libraries" -HOMEPAGE="https://godoc.org/${GO_PN}" +HOMEPAGE="https://godoc.org/golang.org/x/crypto" LICENSE="BSD" SLOT="0" 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 + src_prepare() { # disable broken tests sed -e 's:TestAgentForward(:_\0:' \ 1.7 dev-go/go-crypto/ChangeLog file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-crypto/ChangeLog?rev=1.7&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-crypto/ChangeLog?rev=1.7&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-crypto/ChangeLog?r1=1.6&r2=1.7 Index: ChangeLog =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-go/go-crypto/ChangeLog,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- ChangeLog 9 Jun 2015 03:22:30 -0000 1.6 +++ ChangeLog 29 Jun 2015 03:30:29 -0000 1.7 @@ -1,6 +1,9 @@ # ChangeLog for dev-go/go-crypto # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-go/go-crypto/ChangeLog,v 1.6 2015/06/09 03:22:30 zmedico Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-crypto/ChangeLog,v 1.7 2015/06/29 03:30:29 williamh Exp $ + + 29 Jun 2015; William Hubbs <[email protected]> go-crypto-9999.ebuild: + make live ebuild copyable *go-crypto-1.4.2_p20150608 (09 Jun 2015)
