aboutsummaryrefslogtreecommitdiffstats
path: root/lang/erlang-doc/Makefile
blob: 2d1954b3e4413f54a29f19f55f34518b78951b59 (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
41
42
43
44
45
46
47
48
49
# Created by: ruslan@shevchenko.kiev.ua
# $FreeBSD$

PORTNAME=   erlang
PORTVERSION=    19.3
PKGNAMESUFFIX=  -doc
CATEGORIES= lang parallel
MASTER_SITES=   http://www.erlang.org/download/:erlangorg           \
        http://erlang.stacken.kth.se/download/:erlangorg        \
        http://www.csd.uu.se/ftp/mirror/erlang/download/:erlangorg  \
        http://olgeni.olgeni.com/~olgeni/distfiles/:local       \
        LOCAL/olgeni:local                      \
        http://www.erlang.se/doc/:erlangse              \
        http://www.erlang.se/publications/:publications         \
        http://www.sics.se/~joe/thesis/:joe
DISTNAME=   otp_doc_html_${PORTVERSION}
DISTFILES=  ${DISTNAME}${EXTRACT_SUFX} ${BOOK_DISTFILES}
DIST_SUBDIR=    erlang
EXTRACT_ONLY=   ${DISTNAME}${EXTRACT_SUFX}

MAINTAINER= erlang@FreeBSD.org
COMMENT=    Erlang documentation

LICENSE=    APACHE20

NO_BUILD=   yes
WRKSRC=     ${WRKDIR}/${DISTNAME}
SUB_FILES=  pkg-message

BOOK_DISTFILES= armstrong_thesis_2003.pdf:local     \
        bjarnelic.pdf:publications      \
        erlang-book-part1.pdf:erlangorg     \
        master_thesis_patterns.pdf:local    \
        mnesia_overview.pdf:publications    \
        programming_rules.pdf:erlangse

do-extract:
    @${MKDIR} ${WRKSRC}
    ${TAR} -xzf ${_DISTDIR}/${DISTNAME}${EXTRACT_SUFX} --directory ${WRKSRC}

do-install:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/html
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/pdf
    (cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/html)
.for FILE in ${BOOK_DISTFILES}
    ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/$$(expr ${FILE} : '\([^:]*\)') ${STAGEDIR}/${DOCSDIR}/pdf
.endfor

.include <bsd.port.mk>