blob: 670f7318e90f68a5830dda3010fdc50f5fb3fcd1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $FreeBSD$
PORTNAME= protobuffs
PORTVERSION= 0.8.1p5
CATEGORIES= devel
PKGNAMEPREFIX= erlang-
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Protocol Buffers interface for Erlang
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \
rebar:${PORTSDIR}/devel/rebar
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
PLIST_SUB= VERSION="${PORTVERSION}"
USE_GITHUB= yes
GH_ACCOUNT= basho
GH_PROJECT= erlang_protobuffs
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e "s/%%PORTVERSION%%/${PORTVERSION}/" ${WRKSRC}/src/protobuffs.app.src
@${RM} ${WRKSRC}/src/*.bak ${WRKSRC}/src/*.orig
do-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.markdown ${STAGEDIR}${DOCSDIR}
.endif
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/ebin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/src
${INSTALL_DATA} ${WRKSRC}/ebin/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/ebin
${INSTALL_DATA} ${WRKSRC}/src/* ${STAGEDIR}${PREFIX}/lib/erlang/lib/protobuffs-${PORTVERSION}/src
.include <bsd.port.mk>
|