# Created by: Alex Dupre <ale@FreeBSD.org>
# $FreeBSD: tags/RELEASE_10_1_0/lang/scala-docs/Makefile 364001 2014-08-04 13:21:23Z ale $

PORTNAME=	scala-docs
PORTVERSION=	2.11.2
CATEGORIES=	lang java
MASTER_SITES=	http://www.scala-lang.org/files/archive/
EXTRACT_SUFX=	.txz

MAINTAINER=	ale@FreeBSD.org
COMMENT=	The documentation for the Scala standard library

USES=		tar:xz
NO_BUILD=	yes

PORTDOCS=	*

OPTIONS_DEFINE=	DOCS

.include <bsd.port.options.mk>

.if ! ${PORT_OPTIONS:MDOCS}
IGNORE=		port only installs documentation
.endif

do-install:
	@${ECHO} -n ">> Installing documentation in ${DOCSDIR}..."
	@${MKDIR} ${STAGEDIR}/${DOCSDIR}
	@(cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${STAGEDIR}/${DOCSDIR}/)
	@${ECHO} " [ DONE ]"

.include <bsd.port.mk>
