PORTNAME=	CLDR
PORTVERSION=	48.2
CATEGORIES=	textproc
MASTER_SITES=	https://unicode.org/Public/cldr/${PORTVERSION}/:src	\
		http://www.unicode.org/:lic
DISTFILES=	${SRCFILE}:src	\
		copyright.html:lic
EXTRACT_ONLY=

MAINTAINER=	thierry@FreeBSD.org
COMMENT=	Unicode Common Locale Data Repository
WWW=		https://cldr.unicode.org/

LICENSE=	Unicode_License_Agreement
LICENSE_NAME=	Unicode License Agreement
LICENSE_FILE=	${_DISTDIR}/copyright.html
LICENSE_PERMS=	dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

SRCFILE=	${PORTNAME:tl}-common-${PORTVERSION}.zip

NO_ARCH=	yes
NO_BUILD=	yes

DATADIR=	${PREFIX}/share/unicode/cldr

do-install:
	${MKDIR} ${STAGEDIR}${DATADIR}
	(cd ${STAGEDIR}${DATADIR} &&	\
	${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${SRCFILE} ${EXTRACT_AFTER_ARGS})

.include <bsd.port.mk>
