Date: Sun, 22 Jan 2012 23:02:12 GMT From: Grzegorz Blach <magik@roorback.net> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/164387: devel/goprotobuf: Making port usable Message-ID: <201201222302.q0MN2Cmn082179@red.freebsd.org> Resent-Message-ID: <201201222310.q0MNA8GA082563@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 164387 >Category: ports >Synopsis: devel/goprotobuf: Making port usable >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Jan 22 23:10:08 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Grzegorz Blach >Release: 9.0 amd64 >Organization: >Environment: FreeBSD silver.nine 9.0-RELEASE FreeBSD 9.0-RELEASE #5 r229491: Wed Jan 4 19:17:56 CET 2012 magik@silver.nine:/usr/obj/usr/src/sys/SILVER amd64 >Description: Currently goprotobuf raise errors when I try to use its. To fix problem two changes need to be done: - Add devel/protbuf to RUN_DEPENDS - Install Make.protobuf file >How-To-Repeat: Try to build this code: http://files.roorback.net/goprotobuf-test.tar.gz >Fix: Apply my patches Patch attached with submission follows: diff -ruN devel/goprotobuf/Makefile devel/goprotobuf/Makefile --- devel/goprotobuf/Makefile 2012-01-22 19:48:30.000000000 +0100 +++ devel/goprotobuf/Makefile 2012-01-22 23:36:37.962111778 +0100 @@ -7,6 +7,7 @@ PORTNAME= goprotobuf PORTVERSION= 20120122 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://m.ahze.net/packages/ \ LOCAL/ahze @@ -14,10 +15,18 @@ MAINTAINER= ahze@FreeBSD.org COMMENT= Go support for Google's protocol buffers +LICENSE= BSD + +RUN_DEPENDS= protoc:${PORTSDIR}/devel/protobuf + USE_GO= yes NO_BUILD= yes MAKE_ENV= GOBIN=${PREFIX}/bin +post-install: + ${INSTALL} -d ${GOROOT}/src/pkg/goprotobuf.googlecode.com/hg/ + ${INSTALL} -m 644 ${WRKSRC}/Make.protobuf ${GOROOT}/src/pkg/goprotobuf.googlecode.com/hg/ + .include <bsd.port.pre.mk> .include "${PORTSDIR}/lang/go/files/bsd.go.mk" .include <bsd.port.post.mk> diff -ruN devel/goprotobuf/pkg-plist devel/goprotobuf/pkg-plist --- devel/goprotobuf/pkg-plist 2012-01-22 19:48:30.000000000 +0100 +++ devel/goprotobuf/pkg-plist 2012-01-22 23:10:16.880113579 +0100 @@ -3,6 +3,9 @@ %%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 >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201222302.q0MN2Cmn082179>