39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
# $OpenBSD: Makefile,v 1.7 2019/07/12 20:50:16 sthen Exp $
|
|
|
|
COMMENT = Unicode Character Database (UCD)
|
|
|
|
# XXX: Don't forget to bump x11/gnome/gucharmap when updating
|
|
V = 12.0.0
|
|
DISTNAME = UCD
|
|
PKGNAME = unicode-ucd-$V
|
|
CATEGORIES = textproc
|
|
|
|
HOMEPAGE = https://www.unicode.org/ucd/
|
|
|
|
# https://www.unicode.org/copyright.html
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
MASTER_SITES = https://www.unicode.org/Public/zipped/$V/
|
|
DIST_SUBDIR = ucd/$V
|
|
DISTFILES = ${DISTNAME}${EXTRACT_SUFX} \
|
|
Unihan${EXTRACT_SUFX}
|
|
EXTRACT_SUFX = .zip
|
|
|
|
PKG_ARCH = *
|
|
|
|
NO_BUILD = Yes
|
|
NO_TEST = Yes
|
|
|
|
WRKDIST = ${WRKDIR}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/unicode/ucd/{auxiliary,extracted}/
|
|
${INSTALL_DATA} ${WRKSRC}/*.{txt,html,pdf} ${PREFIX}/share/unicode/ucd/
|
|
${INSTALL_DATA} ${WRKSRC}/auxiliary/* ${PREFIX}/share/unicode/ucd/auxiliary/
|
|
${INSTALL_DATA} ${WRKSRC}/extracted/* ${PREFIX}/share/unicode/ucd/extracted/
|
|
# Copy over the original Unihan zipfile as required by gucharmap
|
|
${INSTALL_DATA} ${FULLDISTDIR}/Unihan${EXTRACT_SUFX} \
|
|
${PREFIX}/share/unicode/ucd
|
|
|
|
.include <bsd.port.mk>
|