blob: ead0e1c5722ca6bd5b979034ed4bd0d888119241 (
plain)
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
41
42
|
# $FreeBSD$
PORTNAME= ranch
PORTVERSION= 0.8.3
CATEGORIES= net
MASTER_SITES= GH
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Erlang socket acceptor pool for TCP protocols
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
PLIST_SUB= VERSION="${PORTVERSION}"
USE_GMAKE= yes
USE_GITHUB= yes
GH_ACCOUNT= extend
GH_PROJECT= ranch
GH_COMMIT= 53be20d
GH_TAGNAME= ${PORTVERSION}
PORTDOCS= *
.include <bsd.port.options.mk>
do-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/guide/* ${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${EXAMPLESDIR}
.endif
@${MKDIR} ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION}
@${MKDIR} ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION}/ebin
@${MKDIR} ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION}/src
${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION}/ebin
${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/lib/erlang/lib/ranch-${PORTVERSION}/src
.include <bsd.port.mk>
|