blob: 1d79b9bd5c6145fa7000a1d2d468de60193b4de2 (
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
43
44
45
46
47
48
49
50
51
52
53
54
|
# $FreeBSD$
PORTNAME= common_lib
PORTVERSION= 3.3.4
CATEGORIES= devel
MASTER_SITES= GH
MAINTAINER= olgeni@FreeBSD.org
COMMENT= Library of commonly used Erlang functions
BUILD_DEPENDS= erlc:${PORTSDIR}/lang/erlang \
txt2tags:${PORTSDIR}/textproc/txt2tags
RUN_DEPENDS= erl:${PORTSDIR}/lang/erlang
PLIST_SUB= VERSION="${PORTVERSION}"
USE_GITHUB= yes
GH_ACCOUNT= iamaleksey
GH_PROJECT= common_lib
GH_COMMIT= c242861
GH_TAGNAME= ${PORTVERSION}
USE_GMAKE= yes
USE_DOS2UNIX= Makefile
ALL_TARGET= compile doc
USES= iconv:build
MAN1= common_lib.1
MAN3= cl_application.3 cl_binary.3 cl_calendar.3 cl_consumer.3 \
cl_csv.3 cl_dqueue.3 cl_lists.3 cl_math.3 cl_pool.3 cl_queue.3 \
cl_queue_srv.3 cl_queue_tab.3 cl_stats.3 cl_string.3 cl_timer.3
.include <bsd.port.options.mk>
post-extract:
@${REINPLACE_CMD} -e "s@<@<@g" -e "s@>@>@g" ${WRKSRC}/doc/*.ndoc
do-install:
.for manpage in ${MAN1} ${MAN3}
@${ICONV_CMD} -f UTF-8 -t ISO-8859-1 ${WRKSRC}/doc/man/${manpage} > ${WRKSRC}/doc/man/${manpage}.iconv
.endfor
.for manpage in ${MAN1}
@${INSTALL_MAN} ${WRKSRC}/doc/man/${manpage}.iconv ${MAN1PREFIX}/man/man1/${manpage}
.endfor
.for manpage in ${MAN3}
@${INSTALL_MAN} ${WRKSRC}/doc/man/${manpage}.iconv ${MAN3PREFIX}/man/man3/${manpage}
.endfor
@${MKDIR} ${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}
@${MKDIR} ${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}/ebin
@${MKDIR} ${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}/src
@${INSTALL_DATA} ${WRKSRC}/ebin/* ${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}/ebin
@${INSTALL_DATA} ${WRKSRC}/src/* ${PREFIX}/lib/erlang/lib/common_lib-${PORTVERSION}/src
.include <bsd.port.mk>
|