|
Lines 6-16
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= goprotobuf |
8 |
PORTNAME= goprotobuf |
| 9 |
PORTVERSION= 20120122 |
9 |
PORTVERSION= 20120409 |
| 10 |
PORTREVISION= 1 |
|
|
| 11 |
CATEGORIES= devel |
10 |
CATEGORIES= devel |
| 12 |
MASTER_SITES= http://m.ahze.net/packages/ \ |
11 |
MASTER_SITES= LOCAL/jlaffaye |
| 13 |
LOCAL/ahze |
|
|
| 14 |
|
12 |
|
| 15 |
MAINTAINER= ahze@FreeBSD.org |
13 |
MAINTAINER= ahze@FreeBSD.org |
| 16 |
COMMENT= Go support for Google's protocol buffers |
14 |
COMMENT= Go support for Google's protocol buffers |
|
Lines 20-31
Link Here
|
| 20 |
RUN_DEPENDS= protoc:${PORTSDIR}/devel/protobuf |
18 |
RUN_DEPENDS= protoc:${PORTSDIR}/devel/protobuf |
| 21 |
|
19 |
|
| 22 |
USE_GO= yes |
20 |
USE_GO= yes |
| 23 |
NO_BUILD= yes |
21 |
GO_PKGNAME= code.google.com/p/goprotobuf |
| 24 |
MAKE_ENV= GOBIN=${PREFIX}/bin |
22 |
GO_TARGET= ${GO_PKGNAME}/proto ${GO_PKGNAME}/protoc-gen-go |
| 25 |
|
23 |
|
| 26 |
post-install: |
24 |
do-install: |
| 27 |
${INSTALL} -d ${GOROOT}/src/pkg/goprotobuf.googlecode.com/hg/ |
25 |
${MKDIR} ${GO_LOCAL_LIBDIR}/${GO_PKGNAME} |
| 28 |
${INSTALL} -m 644 ${WRKSRC}/Make.protobuf ${GOROOT}/src/pkg/goprotobuf.googlecode.com/hg/ |
26 |
(cd ${GO_WRKDIR_PKG}/${GO_PKGNAME}/ && ${COPYTREE_SHARE} \* ${GO_LOCAL_LIBDIR}/${GO_PKGNAME}) |
|
|
27 |
${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/protoc-gen-go ${LOCALBASE}/bin |
| 29 |
|
28 |
|
| 30 |
.include <bsd.port.pre.mk> |
29 |
.include <bsd.port.pre.mk> |
| 31 |
.include "${PORTSDIR}/lang/go/files/bsd.go.mk" |
30 |
.include "${PORTSDIR}/lang/go/files/bsd.go.mk" |