summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-09-21 19:16:11 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-09-21 19:16:11 +0000
commit99ca5a66390659b3ff41d77bf8be49a0e4573851 (patch)
tree14cf024a9626421e40a17cea469c806600212a46
parentwww/kurly: Update 1.2.1 -> 1.2.2 (diff)
sysutils/ipfs-go: Switch to upstream-provided source tarball
Since v0.4.17, go-ipfs started to provide full source tarball [1] which includes all dependencies required for build. Switch port to use it instead of LOCAL/yuri/ipfs-go-gx-*.tar.xz [1] https://github.com/ipfs/go-ipfs/releases/download/v0.4.17/go-ipfs-source.tar.gz PR: 231107 Submitted by: Dmitri Goutnik <dg@syrec.org> Approved by: jhixson (maintainer's timeout; 19 days)
-rw-r--r--sysutils/ipfs-go/Makefile26
-rw-r--r--sysutils/ipfs-go/distinfo8
2 files changed, 12 insertions, 22 deletions
diff --git a/sysutils/ipfs-go/Makefile b/sysutils/ipfs-go/Makefile
index 55fd21b769dd..8f370a9fecd1 100644
--- a/sysutils/ipfs-go/Makefile
+++ b/sysutils/ipfs-go/Makefile
@@ -3,10 +3,11 @@
PORTNAME= ipfs
DISTVERSIONPREFIX= v
DISTVERSION= 0.4.17
+PORTREVISION= 1
CATEGORIES= sysutils
-MASTER_SITES= LOCAL/yuri:gx
+MASTER_SITES= https://github.com/ipfs/go-ipfs/releases/download/v${DISTVERSION}/
PKGNAMESUFFIX= -go
-DISTFILES= ${FULLNAME}-gx-${DISTVERSION}.tar.xz:gx
+DISTNAME= go-ipfs-source
MAINTAINER= jhixson@FreeBSD.org
COMMENT= IPFS implementation in Go
@@ -16,11 +17,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
ONLY_FOR_ARCHS= amd64 i386
-BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
+USES= go
-USE_GITHUB= yes
-GH_PROJECT= go-ipfs
-GH_SUBDIR= src/github.com/ipfs/go-ipfs
+GO_PKGNAME= github.com/ipfs/go-ipfs
+GO_TARGET= ./cmd/ipfs
+
+NO_WRKSUBDIR= yes
USE_RC_SUBR= ${PORTNAME}${PKGNAMESUFFIX}
@@ -43,19 +45,9 @@ GROUPS= ${IPFS_GROUP}
FULLNAME= ${PORTNAME}${PKGNAMESUFFIX}
-post-patch:
- @${RLN} ${WRKDIR}/gx ${WRKSRC}/src
-
-do-build:
- # To update ipfs-go-gx-${DISTVERSION}.tar.xz deps bundle:
- # comment out post-patch, run the command below, tar ${WRKSRC}/src/gx and re-upload .tar.xz
- # cd ${WRKSRC}/${GH_SUBDIR} && ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} gx install
- @cd ${WRKSRC}/${GH_SUBDIR} && \
- ${SETENV} ${MAKE_ENV} GOPATH=${WRKSRC} go build ./cmd/ipfs
-
do-install:
@${MKDIR} ${STAGEDIR}${IPFS_HOME}
@${MKDIR} ${STAGEDIR}${IPFS_LOGDIR}
- ${INSTALL_PROGRAM} ${WRKSRC}/ipfs ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
+ ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/ipfs ${STAGEDIR}${PREFIX}/bin/${PORTNAME}${PKGNAMESUFFIX}
.include <bsd.port.mk>
diff --git a/sysutils/ipfs-go/distinfo b/sysutils/ipfs-go/distinfo
index e46db4c36ee6..600bd8daac24 100644
--- a/sysutils/ipfs-go/distinfo
+++ b/sysutils/ipfs-go/distinfo
@@ -1,5 +1,3 @@
-TIMESTAMP = 1534183965
-SHA256 (ipfs-go-gx-0.4.17.tar.xz) = 7f9f233048b61416789ff8573ec4adddbccdc21557f135d998167f2c2b04144f
-SIZE (ipfs-go-gx-0.4.17.tar.xz) = 11255440
-SHA256 (ipfs-go-ipfs-v0.4.17_GH0.tar.gz) = 2562401bee0609d321bbf5e9c383de4124f634dcfd9394f1d23146a49f281718
-SIZE (ipfs-go-ipfs-v0.4.17_GH0.tar.gz) = 728972
+TIMESTAMP = 1535920571
+SHA256 (go-ipfs-source.tar.gz) = 4dce8bb71cdf11ed72731fb30db58ba6fbfcb78e73377171567fd6da846f1e93
+SIZE (go-ipfs-source.tar.gz) = 18659916