blob: 1cfdaac73cadc979efacb6b9985fb916abdd3d96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Created by: Thierry Thomas <thierry@pompo.net>
# $FreeBSD$
PORTNAME= UCD
PORTVERSION= 9.0.0
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= http://www.unicode.org/Public/zipped/${PORTVERSION}/:src\
ftp://www.unicode.org/Public/zipped/${PORTVERSION}/:src \
http://www.unicode.org/:lic
DISTFILES= ${PORTNAME}.zip:src \
copyright.html:lic
DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
EXTRACT_ONLY=
MAINTAINER= thierry@FreeBSD.org
COMMENT= Unicode Character Database
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
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})
.endif
.include <bsd.port.mk>
|