aboutsummaryrefslogtreecommitdiff
path: root/devel/goprotobuf
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2012-01-23 19:28:26 +0000
committerMichael Johnson <ahze@FreeBSD.org>2012-01-23 19:28:26 +0000
commit1e50776cea3a24ff0f8b70e0c0f8ba9dbb39ce85 (patch)
treef07fd95bed15dc69aa14ca66d8c38cc535243352 /devel/goprotobuf
parent75e5ed63e071899aa477b4fb3f925ff596999077 (diff)
downloadports-1e50776cea3a24ff0f8b70e0c0f8ba9dbb39ce85.tar.gz
ports-1e50776cea3a24ff0f8b70e0c0f8ba9dbb39ce85.zip
Notes
Diffstat (limited to 'devel/goprotobuf')
-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