/[gentoo-x86]/dev-go/go-net/go-net-1.4.2_p20150520.ebuild
Gentoo

Contents of /dev-go/go-net/go-net-1.4.2_p20150520.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Jul 1 20:24:19 2015 UTC (5 years, 5 months ago) by williamh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
move latest snapshot to a pre-release of version 0

(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x30C46538)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-go/go-net/go-net-1.4.2_p20150520.ebuild,v 1.3 2015/05/24 08:52:41 zmedico Exp $
4
5 EAPI=5
6
7 KEYWORDS="~amd64"
8 DESCRIPTION="Go supplementary network libraries"
9 MY_PN=${PN##*-}
10 GO_PN=golang.org/x/${MY_PN}
11 HOMEPAGE="https://godoc.org/${GO_PN}"
12 EGIT_COMMIT="7212a0803472eb1ec2686896a7c626528172a7a6"
13 SRC_URI="https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
14 LICENSE="BSD"
15 SLOT="0"
16 IUSE=""
17 DEPEND=">=dev-lang/go-1.4
18 dev-go/go-text"
19 RDEPEND=""
20 S="${WORKDIR}/src/${GO_PN}"
21 EGIT_CHECKOUT_DIR="${S}"
22 STRIP_MASK="*.a"
23
24 src_unpack() {
25 default
26 mkdir -p src/${GO_PN%/*} || die
27 mv ${MY_PN}-${EGIT_COMMIT} src/${GO_PN} || die
28 }
29
30 src_prepare() {
31 # disable broken tests
32 sed -e 's:TestReadProppatch(:_\0:' -i webdav/xml_test.go || die
33 sed -e 's:TestPingGoogle(:_\0:' -i icmp/ping_test.go || die
34 }
35
36 src_compile() {
37 # Create a writable GOROOT in order to avoid sandbox violations.
38 GOROOT="${WORKDIR}/goroot"
39 cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
40 rm -rf "${GOROOT}/src/${GO_PN}" \
41 "${GOROOT}/pkg/linux_${ARCH}/${GO_PN}" || die
42 GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die
43 }
44
45 src_test() {
46 GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
47 go test -x -v ${GO_PN}/... || die $?
48 }
49
50 src_install() {
51 insinto /usr/lib/go
52 find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
53 doins -r "${WORKDIR}"/{pkg,src}
54 }

  ViewVC Help
Powered by ViewVC 1.1.20