View | Details | Raw Unified | Return to bug 217835
Collapse All | Expand All

(-)sysutils/ipfs-go/distinfo (-2 / +3 lines)
Lines 1-2 Link Here
1
SHA256 (ipfs-go-ipfs-v0.3.10_GH0.tar.gz) = 5f3e465ed0b37e1886ea71bd89586faf5968048be18e8105b7ca908376865edc
1
TIMESTAMP = 1489661432
2
SIZE (ipfs-go-ipfs-v0.3.10_GH0.tar.gz) = 3047589
2
SHA256 (jhixson74-ipfs-go-v0.4.7_GH0.tar.gz) = 2aeaa4da7593c5d05536af12620896d02df51f05d6b5d2bd5233c90574263372
3
SIZE (jhixson74-ipfs-go-v0.4.7_GH0.tar.gz) = 33007329
(-)sysutils/ipfs-go/files/extra-patch-32bit (-11 lines)
Lines 1-11 Link Here
1
--- src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-reuseport/poll/poll_bsd.go.orig	2015-08-02 14:00:34 UTC
2
+++ src/github.com/ipfs/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-reuseport/poll/poll_bsd.go
3
@@ -21,7 +21,7 @@ func New(fd int) (p *Poller, err error) 
4
 	}
5
 
6
 	p.event = syscall.Kevent_t{
7
-		Ident:  uint64(fd),
8
+		Ident:  uint32(fd),
9
 		Filter: syscall.EVFILT_WRITE,
10
 		Flags:  syscall.EV_ADD | syscall.EV_ENABLE | syscall.EV_ONESHOT,
11
 		Fflags: 0,
(-)sysutils/ipfs-go/Makefile (-21 / +19 lines)
Lines 1-23 Link Here
1
# $FreeBSD: head/sysutils/ipfs-go/Makefile 420796 2016-08-24 14:50:17Z mat $
1
# $FreeBSD$
2
2
3
PORTNAME=	ipfs-go
3
PORTNAME=	ipfs-go
4
PORTVERSION=	0.3.10
4
PORTVERSION=	0.4.7
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
CATEGORIES=	sysutils
6
CATEGORIES=	sysutils
7
7
8
MAINTAINER=	wg@FreeBSD.org
8
MAINTAINER=	jhixson@gmail.com
9
COMMENT=	IPFS implementation in Go
9
COMMENT=	IPFS implementation in Go
10
10
11
BUILD_DEPENDS=	${LOCALBASE}/bin/go:lang/go
11
LICENSE=	MIT
12
12
13
BROKEN_i386=	does not build
13
BUILD_DEPENDS=	go>=1.7:lang/go
14
14
15
USES=		gmake
15
ONLY_FOR_ARCHS=	amd64
16
17
USES=		compiler go
16
18
17
USE_GITHUB=	yes
19
USE_GITHUB=	yes
18
GH_ACCOUNT=	ipfs
20
GH_ACCOUNT=	jhixson74
19
GH_PROJECT=	go-ipfs
20
GH_SUBDIR=	src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
21
21
22
MAKE_ENV+=	GOPATH=${WRKSRC}
22
MAKE_ENV+=	GOPATH=${WRKSRC}
23
23
Lines 27-46 Link Here
27
27
28
STRIP=		# stripping can break go binaries
28
STRIP=		# stripping can break go binaries
29
29
30
.include <bsd.port.pre.mk>
31
32
.if ${ARCH} == i386
33
EXTRA_PATCHES+=	${FILESDIR}/extra-patch-32bit
34
.endif
35
36
post-patch:
37
	${GREP} -lR github.com/ipfs/go-ipfs/vendor/QmQg1J6vikuXF9oDvm4wpdeAUvvkVEKW1EYDw9HhTMnP2b/go-log ${WRKSRC} 2>/dev/null | \
38
	 while read gosrc; do sed -i.bak 's#github.com/ipfs/go-ipfs/vendor/##g' $$gosrc; done
39
40
do-build:
30
do-build:
41
	cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} build
31
	cd ${WRKSRC}/src/github.com/ipfs/go-ipfs/cmd/ipfs; \
32
		${SETENV} ${BUILD_ENV} ${MAKE_ENV} go build -v -x \
33
			-ldflags "-X main.GitDescribe=${DISTVERSIONFULL}" -o bin/${PORTNAME}
42
34
43
do-install:
35
do-install:
44
	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/cmd/ipfs/ipfs ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
36
	${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/ipfs/go-ipfs/cmd/ipfs/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
37
38
.include <bsd.port.pre.mk>
39
40
.if ${COMPILER_TYPE} == clang
41
BUILD_ENV=  CC=clang
42
.endif
45
43
46
.include <bsd.port.post.mk>
44
.include <bsd.port.post.mk>

Return to bug 217835