PORTNAME= UCD PORTVERSION= 15.1.0 # must sync with deskutils/gucharmap PORTEPOCH= 1 CATEGORIES= textproc MASTER_SITES= https://www.unicode.org/Public/zipped/${DISTVERSION}/:src \ https://raw.githubusercontent.com/unicode-org/unihan-database/0da97601945f29dbd34ebc1a2f3bbd28bf3f8462/:lic DISTFILES= ${PORTNAME}.zip:src \ LICENSE.md:lic DIST_SUBDIR= unicode-${PORTNAME}/${DISTVERSION} EXTRACT_ONLY= MAINTAINER= thierry@FreeBSD.org COMMENT= Unicode Character Database WWW= https://unicode.org/ucd/ LICENSE= Unicode_License_Agreement LICENSE_NAME= Unicode License Agreement LICENSE_FILE= ${_DISTDIR}/LICENSE.md LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept OPTIONS_DEFINE= HAN OPTIONS_DEFAULT=HAN OPTIONS_SUB= yes HAN_DESC= Unified Han database of Hanzi/Kanji/Hanja Chinese characters NO_ARCH= yes NO_BUILD= yes .include .if ${PORT_OPTIONS:MHAN} DISTFILES+= Unihan.zip:src .endif DATADIR= ${PREFIX}/share/unicode/ucd do-install: ${MKDIR} ${STAGEDIR}${DATADIR} (cd ${STAGEDIR}${DATADIR} && \ ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${PORTNAME}.zip ${EXTRACT_AFTER_ARGS}) .if ${PORT_OPTIONS:MHAN} (cd ${STAGEDIR}${DATADIR} && \ ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/Unihan.zip ${EXTRACT_AFTER_ARGS}) # Gucharmap also needs this zipfile ${INSTALL_DATA} ${_DISTDIR}/Unihan.zip ${STAGEDIR}${DATADIR} .endif .include