Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2012 02:06:58 -0700 (PDT)
From:      Julien Laffaye <jlaffaye@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        ahze@FreeBSD.org
Subject:   ports/167316: [PATCH] devel/goprotobuf: update to 20120409 for Go1
Message-ID:  <4f991032.c585cc0a.6116.3d56@mx.google.com>
Resent-Message-ID: <201204260910.q3Q9A56A056012@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         167316
>Category:       ports
>Synopsis:       [PATCH] devel/goprotobuf: update to 20120409 for Go1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 26 09:10:05 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Julien Laffaye
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD proclarush.jlaffaye.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:
- Update to 20120409
- Compile with Go1.

Please note that it uses the new bsd.go.mk which is not committed yet.

Port maintainer (ahze@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_5 (mode: update, diff: CVS)
>How-To-Repeat:
>Fix:

--- goprotobuf-20120409.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/goprotobuf/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile	23 Jan 2012 19:28:26 -0000	1.2
+++ Makefile	26 Apr 2012 09:05:28 -0000
@@ -6,11 +6,9 @@
 #
 
 PORTNAME=	goprotobuf
-PORTVERSION=	20120122
-PORTREVISION=	1
+PORTVERSION=	20120409
 CATEGORIES=	devel
-MASTER_SITES=	http://m.ahze.net/packages/ \
-		LOCAL/ahze
+MASTER_SITES=	LOCAL/jlaffaye
 
 MAINTAINER=	ahze@FreeBSD.org
 COMMENT=	Go support for Google's protocol buffers
@@ -20,12 +18,13 @@
 RUN_DEPENDS=	protoc:${PORTSDIR}/devel/protobuf
 
 USE_GO=		yes
-NO_BUILD=	yes
-MAKE_ENV=	GOBIN=${PREFIX}/bin
+GO_PKGNAME=	code.google.com/p/goprotobuf
+GO_TARGET=	${GO_PKGNAME}/proto ${GO_PKGNAME}/protoc-gen-go
 
-post-install:
-	${INSTALL} -d ${GOROOT}/src/pkg/goprotobuf.googlecode.com/hg/
-	${INSTALL} -m 644 ${WRKSRC}/Make.protobuf ${GOROOT}/src/pkg/goprotobuf.googlecode.com/hg/
+do-install:
+	${MKDIR} ${GO_LOCAL_LIBDIR}/${GO_PKGNAME}
+	(cd ${GO_WRKDIR_PKG}/${GO_PKGNAME}/ && ${COPYTREE_SHARE} \* ${GO_LOCAL_LIBDIR}/${GO_PKGNAME})
+	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/protoc-gen-go ${LOCALBASE}/bin
 
 .include <bsd.port.pre.mk>
 .include "${PORTSDIR}/lang/go/files/bsd.go.mk"
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/devel/goprotobuf/distinfo,v
retrieving revision 1.1
diff -u -r1.1 distinfo
--- distinfo	22 Jan 2012 18:48:30 -0000	1.1
+++ distinfo	26 Apr 2012 09:05:28 -0000
@@ -1,2 +1,2 @@
-SHA256 (goprotobuf-20120122.tar.gz) = e7f1e19584309ff9c445d2858910140d12f6b29b63e2ddd8655bffdf7eb991d2
-SIZE (goprotobuf-20120122.tar.gz) = 76105
+SHA256 (goprotobuf-20120409.tar.gz) = bc91396932f09b991e17d7b5dbff32e53264fa1c7aa382682f8d1b214288445c
+SIZE (goprotobuf-20120409.tar.gz) = 79354
Index: pkg-plist
===================================================================
RCS file: /home/pcvs/ports/devel/goprotobuf/pkg-plist,v
retrieving revision 1.2
diff -u -r1.2 pkg-plist
--- pkg-plist	23 Jan 2012 19:28:26 -0000	1.2
+++ pkg-plist	26 Apr 2012 09:05:28 -0000
@@ -1,11 +1,10 @@
 bin/protoc-gen-go
-%%GO_LIBDIR%%/goprotobuf.googlecode.com/hg/compiler/descriptor.a
-%%GO_LIBDIR%%/goprotobuf.googlecode.com/hg/compiler/generator.a
-%%GO_LIBDIR%%/goprotobuf.googlecode.com/hg/compiler/plugin.a
-%%GO_LIBDIR%%/goprotobuf.googlecode.com/hg/proto.a
-go/src/pkg/goprotobuf.googlecode.com/hg/Make.protobuf
-@dirrm %%GO_LIBDIR%%/goprotobuf.googlecode.com/hg/compiler
-@dirrm %%GO_LIBDIR%%/goprotobuf.googlecode.com/hg
-@dirrm %%GO_LIBDIR%%/goprotobuf.googlecode.com
-@dirrm go/src/pkg/goprotobuf.googlecode.com/hg
-@dirrm go/src/pkg/goprotobuf.googlecode.com
+%%GO_LIBDIR%%/%%GO_PKGNAME%%/proto.a
+%%GO_LIBDIR%%/%%GO_PKGNAME%%/protoc-gen-go/descriptor.a
+%%GO_LIBDIR%%/%%GO_PKGNAME%%/protoc-gen-go/generator.a
+%%GO_LIBDIR%%/%%GO_PKGNAME%%/protoc-gen-go/plugin.a
+@dirrm %%GO_LIBDIR%%/%%GO_PKGNAME%%/compiler
+@dirrm %%GO_LIBDIR%%/%%GO_PKGNAME%%/protoc-gen-go
+@dirrm %%GO_LIBDIR%%/%%GO_PKGNAME%%
+@dirrmtry %%GO_LIBDIR%%/code.google.com/p
+@dirrmtry %%GO_LIBDIR%%/code.google.com
--- goprotobuf-20120409.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f991032.c585cc0a.6116.3d56>