freebsd-ports/textproc/UCD/Makefile
Charlie Li 0750606fdf
textproc/UCD and deskutils/gucharmap: update to 15.1.0
Add comments about version sync requirement, and strengthen
deskutils/gucharmap BUILD_DEPENDS version specifier.

This also reverts commit 6ca002d89c.

Reported by:	olgeni
PR:		273796
Approved by:	vishwin (gnome, maintainer deskutils/gucharmap)
		thierry (maintainer textproc/UCD)
2023-09-14 18:00:50 -04:00

48 lines
1.4 KiB
Makefile

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 <bsd.port.options.mk>
.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 <bsd.port.mk>