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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (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.2: +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_p20150604.ebuild,v 1.2 2015/06/09 06:52:46 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="dfe268fd2bb5c793f4c083803609fce9806c6f80"
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:' \
34 -e 's:TestNonPrivilegedPing(:_\0:' \
35 -i icmp/ping_test.go || die
36 }
37
38 src_compile() {
39 # Create a writable GOROOT in order to avoid sandbox violations.
40 GOROOT="${WORKDIR}/goroot"
41 cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die
42 rm -rf "${GOROOT}/src/${GO_PN}" \
43 "${GOROOT}/pkg/linux_${ARCH}/${GO_PN}" || die
44 GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die
45 }
46
47 src_test() {
48 GOROOT="${GOROOT}" GOPATH=${WORKDIR} \
49 go test -x -v ${GO_PN}/... || die $?
50 }
51
52 src_install() {
53 insinto /usr/lib/go
54 find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null
55 insopts -m0644 -p # preserve timestamps for bug 551486
56 doins -r "${WORKDIR}"/{pkg,src}
57 }

  ViewVC Help
Powered by ViewVC 1.1.20