summaryrefslogtreecommitdiff
path: root/lang/erlang-man/Makefile
blob: e0b5415683473c749c482bee059ca8d1ad95db57 (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
PORTNAME=	erlang
PORTVERSION=	26.2
CATEGORIES=	lang parallel
MASTER_SITES=	https://github.com/erlang/otp/releases/download/OTP-${PORTVERSION}/
PKGNAMESUFFIX=	-man
DISTNAME=	otp_doc_man_${PORTVERSION}
DIST_SUBDIR=	erlang

MAINTAINER=	erlang@FreeBSD.org
COMMENT=	Manual pages for Erlang/OTP
WWW=		https://www.erlang.org/

LICENSE=	APACHE20

NO_ARCH=	yes
NO_BUILD=	yes
WRKSRC=		${WRKDIR}

# The man-pages are put (in spite of FreeBSD's port convention) in a private
# subdir. This is to avoid cluttering up the man page name space. Also the
# Erlang man pages are more of internal documentation using the man format than
# actual system man pages. (erl.1 and epmd.1 perhaps being the exception).

do-install:
	@${ECHO_CMD} "MANPATH ${PREFIX}/lib/erlang/man" > ${WRKDIR}/erlang.conf
	${INSTALL_DATA} ${WRKDIR}/erlang.conf ${STAGEDIR}${PREFIX}/etc/man.d/erlang.conf
	for SECTION in 1 3 4 6 7; do \
		cd ${WRKSRC}/man/ && ${COPYTREE_SHARE} man$${SECTION} ${STAGEDIR}${PREFIX}/lib/erlang/man; \
	done

.include <bsd.port.mk>