libuninameslist 20211114
[git/cygwin-packages/libuninameslist.git] / libuninameslist.cygport
1 NAME="libuninameslist"
2 VERSION=20211114
3 RELEASE=1
4 CATEGORY="Libs"
5 SUMMARY="Unicode NamesList library"
6 DESCRIPTION="The Unicode consortium provides a file containing annotations on
7 many unicode characters. This library contains a compiled version of this file
8 so that programs can access these data easily. The library contains a very
9 large (sparse) array with one entry for each unicode code point. The library
10 also contains a (much smaller) list of all the Unicode blocks."
11 HOMEPAGE="https://github.com/fontforge/libuninameslist/releases"
12
13 ################################
14 ## Settings for 'download'
15 ################################
16 # Source from a git repository
17 GIT_REPO="https://github.com/fontforge/libuninameslist"
18 declare -A GIT_DATEHASH_BY_NAME=(
19 # git log --date=iso-strict --format='%cd/%H' -1
20 [20211114]=2021-11-14T00:36:12-08:00/20211114
21 [20210917]=2021-09-17T15:45:15-07:00/20210917
22 [20200413p3]=2020-06-26T09:11:42-07:00/5d26f1f514f7fd712d8e8faca0202598b0f0d7d9
23 [20200413]=2020-04-13T12:13:13-07:00/20200413
24 )
25 REV_HASH="${GIT_DATEHASH_BY_NAME[${VERSION}]#*/}"
26 REV_DATE="${GIT_DATEHASH_BY_NAME[${VERSION}]%%/*}"
27 REV_DATE_SHORT="${REV_DATE%%T*}"
28 GIT_BASENAME="${GIT_REPO##*/}"
29 SRC_URI="${GIT_REPO}/archive/${REV_HASH}/${GIT_BASENAME}-${VERSION}.tar.gz"
30 SRC_DIR="${GIT_BASENAME}-${REV_HASH#v}"
31
32 ################################
33 ## Settings for 'prep'
34 ################################
35 # Apply patches whose filenames are in a default style of 'git format-patch'.
36 PATCH_URI=$(\
37 find -maxdepth 1 -type f -name '[0-9][0-9][0-9][0-9]-*.patch' \
38 | sort \
39 )
40 # And then, additional patches, if any.
41 PATCH_URI+="
42 "
43 # A list of files to be deleted immediately upon unpacking sources
44 # (cf. /usr/share/cygport/lib/src_prep.cygpart).
45 DISTCLEANFILES="aclocal.m4"
46
47 ################################
48 ## Settings for 'compile'
49 ################################
50 # Any options to be passed to 'make' through 'cygmake'
51 # (cf. /usr/share/cygport/lib/src_compile.cygpart).
52 MAKEOPTS="-j1" # Avoid running multiple jobs in parallel.
53
54 # Additional flags to be passed to 'configure' through 'cygconf'
55 # (cf. /usr/share/cygport/cygclass/autotools.cygclass).
56 CYGCONF_ARGS="--enable-frenchlib"
57
58 ################################
59 ## Settings for 'package'
60 ################################
61 ABI=1
62 PKG_NAMES="${PN}${ABI} ${PN}-devel"
63
64 printf -v "${PN}${ABI}_CATEGORY" "%s" "${CATEGORY}"
65 printf -v "${PN}${ABI}_SUMMARY" "%s" "${SUMMARY} (runtime)"
66 # Runtime libraries only.
67 printf -v "${PN}${ABI}_CONTENTS" "%s" "\
68 usr/bin/ \
69 "
70
71 printf -v "${PN}_devel_CATEGORY" "%s" "Devel ${CATEGORY}"
72 printf -v "${PN}_devel_SUMMARY" "%s" "${SUMMARY} (development)"
73 printf -v "${PN}_devel_CONTENTS" "%s" "\
74 usr/include/ \
75 usr/lib/ \
76 usr/share/doc/ \
77 usr/share/man/ \
78 "
This page took 0.034274 seconds and 5 git commands to generate.