1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/lang/erlang-doc/Makefile

50 lines
1.5 KiB
Makefile

# 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>