zmedico     15/05/21 05:48:43

  Modified:             ChangeLog
  Added:                go-text-1.4.2_p20150506.ebuild
  Log:
  Add 1.4.2_p20150506 snapshot.
  
  (Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 
FDE8EF85AE5719A3)

Revision  Changes    Path
1.3                  dev-go/go-text/ChangeLog

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

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/dev-go/go-text/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ChangeLog   21 May 2015 05:31:35 -0000      1.2
+++ ChangeLog   21 May 2015 05:48:42 -0000      1.3
@@ -1,6 +1,11 @@
 # 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.2 2015/05/21 
05:31:35 zmedico Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-go/go-text/ChangeLog,v 1.3 2015/05/21 
05:48:42 zmedico Exp $
+
+*go-text-1.4.2_p20150506 (21 May 2015)
+
+  21 May 2015; Zac Medico <[email protected]> +go-text-1.4.2_p20150506.ebuild:
+  Add 1.4.2_p20150506 snapshot.
 
   21 May 2015; Zac Medico <[email protected]> go-text-9999.ebuild:
   Add src_test.



1.1                  dev-go/go-text/go-text-1.4.2_p20150506.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/go-text-1.4.2_p20150506.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-go/go-text/go-text-1.4.2_p20150506.ebuild?rev=1.1&content-type=text/plain

Index: go-text-1.4.2_p20150506.ebuild
===================================================================
# 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-1.4.2_p20150506.ebuild,v 1.1 
2015/05/21 05:48:42 zmedico Exp $

EAPI=5

KEYWORDS=""
DESCRIPTION="Go text processing support"
MY_PN=${PN##*-}
GO_PN=golang.org/x/${MY_PN}
HOMEPAGE="https://godoc.org/${GO_PN}";
EGIT_COMMIT="c93e7c9fff19fb9139b5ab04ce041833add0134e"
SRC_URI="https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> 
${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
IUSE=""
DEPEND=">=dev-lang/go-1.4"
RDEPEND=""
S="${WORKDIR}/src/${GO_PN}"
EGIT_CHECKOUT_DIR="${S}"
STRIP_MASK="*.a"

src_unpack() {
        default
        mkdir -p src/${GO_PN%/*} || die
        mv ${MY_PN}-${EGIT_COMMIT} src/${GO_PN} || die
}

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 -v -x -work 
${GO_PN}/... || die
}

src_test() {
        GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
                go test -run "^(Example.*|"$(
                        echo -n 
'Test(Flush|Insert|Decomposition|Composition|IterNext|'
                        echo -n 
'IterSegmentation|DecomposeSegment|FirstBoundary|'
                        echo -n 
'DecomposeToLastBoundary|LastBoundary|QuickSpan|IsNormal|'
                        echo -n 
'IsNormalString|Append|AppendString|Bytes|String|Reader|'
                        echo -n 
'Writer|Transform|TransformNorm|CharacterByCharacter|'
                        echo -n 
'StandardTests|Performance|PlaceHolder|ExampleIter|Merge|'
                        echo -n 
'Tables|Ambiguous|FoldSingleRunes|Fold|WidenSingleRunes|'
                        echo -n 'Widen|NarrowSingleRunes|Narrow))$') \
                        -x -v ${GO_PN}/... || die $?
}

src_install() {
        exeinto /usr/lib/go/bin
        doexe "${WORKDIR}"/bin/*
        insinto /usr/lib/go
        find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
        doins -r "${WORKDIR}"/{pkg,src}
}




Reply via email to