From owner-svn-ports-head@freebsd.org Fri Sep 21 19:16:12 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 195F710A1A88; Fri, 21 Sep 2018 19:16:12 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C110C8C5AD; Fri, 21 Sep 2018 19:16:11 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B708C112FD; Fri, 21 Sep 2018 19:16:11 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w8LJGBZ0038968; Fri, 21 Sep 2018 19:16:11 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w8LJGB8E038965; Fri, 21 Sep 2018 19:16:11 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201809211916.w8LJGB8E038965@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Fri, 21 Sep 2018 19:16:11 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r480304 - head/sysutils/ipfs-go X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/sysutils/ipfs-go X-SVN-Commit-Revision: 480304 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Sep 2018 19:16:12 -0000 Author: yuri Date: Fri Sep 21 19:16:11 2018 New Revision: 480304 URL: https://svnweb.freebsd.org/changeset/ports/480304 Log: 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 Approved by: jhixson (maintainer's timeout; 19 days) Modified: head/sysutils/ipfs-go/Makefile head/sysutils/ipfs-go/distinfo Modified: head/sysutils/ipfs-go/Makefile ============================================================================== --- head/sysutils/ipfs-go/Makefile Fri Sep 21 19:04:59 2018 (r480303) +++ head/sysutils/ipfs-go/Makefile Fri Sep 21 19:16:11 2018 (r480304) @@ -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,12 +17,13 @@ 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} SUB_FILES= ${FULLNAME} @@ -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 Modified: head/sysutils/ipfs-go/distinfo ============================================================================== --- head/sysutils/ipfs-go/distinfo Fri Sep 21 19:04:59 2018 (r480303) +++ head/sysutils/ipfs-go/distinfo Fri Sep 21 19:16:11 2018 (r480304) @@ -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