aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/goprotobuf/Makefile9
-rw-r--r--devel/goprotobuf/pkg-plist3
2 files changed, 12 insertions, 0 deletions
diff --git a/devel/goprotobuf/Makefile b/devel/goprotobuf/Makefile
index e1cf8227124c..c1ab2b9f7508 100644
--- a/devel/goprotobuf/Makefile
+++ b/devel/goprotobuf/Makefile
@@ -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 @@ MASTER_SITES= http://m.ahze.net/packages/ \
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 --git a/devel/goprotobuf/pkg-plist b/devel/goprotobuf/pkg-plist
index fc936cf1b411..3c2ef665411f 100644
--- a/devel/goprotobuf/pkg-plist
+++ b/devel/goprotobuf/pkg-plist
@@ -3,6 +3,9 @@ bin/protoc-gen-go
%%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