Update to 58.1 * Fix regression with upstream patch, https://ssl.icu-project.org/trac/ticket/12827 Changelog: Common Changes CLDR 30.0.2: For details of the many changes in CLDR, see CLDR 30. Some things to note: For some combinations of numbering system (arab, arabext, latn) and/or locale (ar, fa, he), there were changes to the bidirectional control characters used with certain symbols (percent, minus, plus), and changes to number patterns (currency and/or percent, including addition of bidirectional control characters in some cases). New in this release, the bidirectional controls used for such purposes include U+061C ARABIC LETTER MARK (ALM), which requires use of the bidirectional algorithm from Unicode 6.3 or later. The time separator for Norwegian locales (nb, nn) was changed to be ':' throughout. Unicode 9.0: Version 9.0 adds exactly 7,500 characters, for a total of 128,172 characters. These additions include six new scripts, 19 symbols for the new 4K TV standard, and 72 new emoji characters. Draft Emoji 4.0 data Emoji updates for word & line breaking. (#12664 & Unicode 9 update #12526) UBiDiTransform/BidiTransform API for convenient transformation of text between different Bidi layouts. (#11679) MeasureFormat API for measurement unit display names. (#12029) Most COUNT and LIMIT enum constants have been deprecated. (#12420) SpoofChecker: Handling of "whole script confusables" has been removed from ICU, in accordance with its removal from UTS #39 Version 9.0.0 and the removal of the corresponding Unicode data file. (#12549) Greek uppercasing ("el" locale ID) removes most diacritics. (#5456) More robust locale data loading across ICU implementation code. Reduced heap memory usage in DateTimePatternGenerator. (#11782) ICU4C Specific Changes The layout engine code has been removed; the ParagraphLayout is not deprecated and remains (and must now be built on top of HarfBuzz). See http://userguide.icu-project.org/layoutengine (#12708) Windows: Supports & requires Visual Studio 2015.diff -r1.104 -r1.105 pkgsrc/textproc/icu/Makefile
(ryoon)
@@ -1,16 +1,16 @@ | @@ -1,16 +1,16 @@ | |||
1 | # $NetBSD: Makefile,v 1.104 2016/04/11 16:15:22 ryoon Exp $ | 1 | # $NetBSD: Makefile,v 1.105 2016/12/04 04:11:32 ryoon Exp $ | |
2 | 2 | |||
3 | DISTNAME= icu4c-57_1-src | 3 | DISTNAME= icu4c-58_1-src | |
4 | PKGNAME= ${DISTNAME:S/4c//:S/-src//:S/_/./g} | 4 | PKGNAME= ${DISTNAME:S/4c//:S/-src//:S/_/./g} | |
5 | CATEGORIES= textproc | 5 | CATEGORIES= textproc | |
6 | MASTER_SITES= http://download.icu-project.org/files/icu4c/${PKGVERSION_NOREV}/ | 6 | MASTER_SITES= http://download.icu-project.org/files/icu4c/${PKGVERSION_NOREV}/ | |
7 | EXTRACT_SUFX= .tgz | 7 | EXTRACT_SUFX= .tgz | |
8 | 8 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://www.icu-project.org/ | 10 | HOMEPAGE= http://www.icu-project.org/ | |
11 | COMMENT= Robust and full-featured Unicode services | 11 | COMMENT= Robust and full-featured Unicode services | |
12 | LICENSE= mit | 12 | LICENSE= mit | |
13 | 13 | |||
14 | WRKSRC= ${WRKDIR}/icu/source | 14 | WRKSRC= ${WRKDIR}/icu/source | |
15 | USE_LANGUAGES= c c++ | 15 | USE_LANGUAGES= c c++ | |
16 | USE_TOOLS+= gmake | 16 | USE_TOOLS+= gmake |
@@ -1,40 +1,25 @@ | @@ -1,40 +1,25 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.37 2016/04/12 19:51:54 tron Exp $ | 1 | @comment $NetBSD: PLIST,v 1.38 2016/12/04 04:11:32 ryoon Exp $ | |
2 | bin/derb | 2 | bin/derb | |
3 | bin/genbrk | 3 | bin/genbrk | |
4 | bin/gencfu | 4 | bin/gencfu | |
5 | bin/gencnval | 5 | bin/gencnval | |
6 | bin/gendict | 6 | bin/gendict | |
7 | bin/genrb | 7 | bin/genrb | |
8 | bin/icu-config | 8 | bin/icu-config | |
9 | bin/icuinfo | 9 | bin/icuinfo | |
10 | bin/makeconv | 10 | bin/makeconv | |
11 | bin/pkgdata | 11 | bin/pkgdata | |
12 | bin/uconv | 12 | bin/uconv | |
13 | include/layout/LEFontInstance.h | |||
14 | include/layout/LEGlyphFilter.h | |||
15 | include/layout/LEGlyphStorage.h | |||
16 | include/layout/LEInsertionList.h | |||
17 | include/layout/LELanguages.h | |||
18 | include/layout/LEScripts.h | |||
19 | include/layout/LESwaps.h | |||
20 | include/layout/LETableReference.h | |||
21 | include/layout/LETypes.h | |||
22 | include/layout/LayoutEngine.h | |||
23 | include/layout/ParagraphLayout.h | |||
24 | include/layout/RunArrays.h | |||
25 | include/layout/loengine.h | |||
26 | include/layout/playout.h | |||
27 | include/layout/plruns.h | |||
28 | include/unicode/alphaindex.h | 13 | include/unicode/alphaindex.h | |
29 | include/unicode/appendable.h | 14 | include/unicode/appendable.h | |
30 | include/unicode/basictz.h | 15 | include/unicode/basictz.h | |
31 | include/unicode/brkiter.h | 16 | include/unicode/brkiter.h | |
32 | include/unicode/bytestream.h | 17 | include/unicode/bytestream.h | |
33 | include/unicode/bytestrie.h | 18 | include/unicode/bytestrie.h | |
34 | include/unicode/bytestriebuilder.h | 19 | include/unicode/bytestriebuilder.h | |
35 | include/unicode/calendar.h | 20 | include/unicode/calendar.h | |
36 | include/unicode/caniter.h | 21 | include/unicode/caniter.h | |
37 | include/unicode/chariter.h | 22 | include/unicode/chariter.h | |
38 | include/unicode/choicfmt.h | 23 | include/unicode/choicfmt.h | |
39 | include/unicode/coleitr.h | 24 | include/unicode/coleitr.h | |
40 | include/unicode/coll.h | 25 | include/unicode/coll.h | |
@@ -108,26 +93,27 @@ include/unicode/stringtriebuilder.h | @@ -108,26 +93,27 @@ include/unicode/stringtriebuilder.h | |||
108 | include/unicode/stsearch.h | 93 | include/unicode/stsearch.h | |
109 | include/unicode/symtable.h | 94 | include/unicode/symtable.h | |
110 | include/unicode/tblcoll.h | 95 | include/unicode/tblcoll.h | |
111 | include/unicode/timezone.h | 96 | include/unicode/timezone.h | |
112 | include/unicode/tmunit.h | 97 | include/unicode/tmunit.h | |
113 | include/unicode/tmutamt.h | 98 | include/unicode/tmutamt.h | |
114 | include/unicode/tmutfmt.h | 99 | include/unicode/tmutfmt.h | |
115 | include/unicode/translit.h | 100 | include/unicode/translit.h | |
116 | include/unicode/tzfmt.h | 101 | include/unicode/tzfmt.h | |
117 | include/unicode/tznames.h | 102 | include/unicode/tznames.h | |
118 | include/unicode/tzrule.h | 103 | include/unicode/tzrule.h | |
119 | include/unicode/tztrans.h | 104 | include/unicode/tztrans.h | |
120 | include/unicode/ubidi.h | 105 | include/unicode/ubidi.h | |
106 | include/unicode/ubiditransform.h | |||
121 | include/unicode/ubrk.h | 107 | include/unicode/ubrk.h | |
122 | include/unicode/ucal.h | 108 | include/unicode/ucal.h | |
123 | include/unicode/ucasemap.h | 109 | include/unicode/ucasemap.h | |
124 | include/unicode/ucat.h | 110 | include/unicode/ucat.h | |
125 | include/unicode/uchar.h | 111 | include/unicode/uchar.h | |
126 | include/unicode/ucharstrie.h | 112 | include/unicode/ucharstrie.h | |
127 | include/unicode/ucharstriebuilder.h | 113 | include/unicode/ucharstriebuilder.h | |
128 | include/unicode/uchriter.h | 114 | include/unicode/uchriter.h | |
129 | include/unicode/uclean.h | 115 | include/unicode/uclean.h | |
130 | include/unicode/ucnv.h | 116 | include/unicode/ucnv.h | |
131 | include/unicode/ucnv_cb.h | 117 | include/unicode/ucnv_cb.h | |
132 | include/unicode/ucnv_err.h | 118 | include/unicode/ucnv_err.h | |
133 | include/unicode/ucnvsel.h | 119 | include/unicode/ucnvsel.h | |
@@ -193,71 +179,61 @@ include/unicode/utmscale.h | @@ -193,71 +179,61 @@ include/unicode/utmscale.h | |||
193 | include/unicode/utrace.h | 179 | include/unicode/utrace.h | |
194 | include/unicode/utrans.h | 180 | include/unicode/utrans.h | |
195 | include/unicode/utypes.h | 181 | include/unicode/utypes.h | |
196 | include/unicode/uvernum.h | 182 | include/unicode/uvernum.h | |
197 | include/unicode/uversion.h | 183 | include/unicode/uversion.h | |
198 | include/unicode/vtzone.h | 184 | include/unicode/vtzone.h | |
199 | lib/icu/${PKGVERSION}/Makefile.inc | 185 | lib/icu/${PKGVERSION}/Makefile.inc | |
200 | lib/icu/${PKGVERSION}/pkgdata.inc | 186 | lib/icu/${PKGVERSION}/pkgdata.inc | |
201 | lib/icu/Makefile.inc | 187 | lib/icu/Makefile.inc | |
202 | lib/icu/current | 188 | lib/icu/current | |
203 | lib/icu/pkgdata.inc | 189 | lib/icu/pkgdata.inc | |
204 | lib/libicudata.a | 190 | lib/libicudata.a | |
205 | lib/libicudata.so | 191 | lib/libicudata.so | |
206 | lib/libicudata.so.57 | 192 | lib/libicudata.so.58 | |
207 | lib/libicudata.so.${PKGVERSION} | 193 | lib/libicudata.so.${PKGVERSION} | |
208 | lib/libicui18n.a | 194 | lib/libicui18n.a | |
209 | lib/libicui18n.so | 195 | lib/libicui18n.so | |
210 | lib/libicui18n.so.57 | 196 | lib/libicui18n.so.58 | |
211 | lib/libicui18n.so.${PKGVERSION} | 197 | lib/libicui18n.so.${PKGVERSION} | |
212 | lib/libicuio.a | 198 | lib/libicuio.a | |
213 | lib/libicuio.so | 199 | lib/libicuio.so | |
214 | lib/libicuio.so.57 | 200 | lib/libicuio.so.58 | |
215 | lib/libicuio.so.${PKGVERSION} | 201 | lib/libicuio.so.${PKGVERSION} | |
216 | lib/libicule.a | |||
217 | lib/libicule.so | |||
218 | lib/libicule.so.57 | |||
219 | lib/libicule.so.${PKGVERSION} | |||
220 | lib/libiculx.a | |||
221 | lib/libiculx.so | |||
222 | lib/libiculx.so.57 | |||
223 | lib/libiculx.so.${PKGVERSION} | |||
224 | lib/libicutest.a | 202 | lib/libicutest.a | |
225 | lib/libicutest.so | 203 | lib/libicutest.so | |
226 | lib/libicutest.so.57 | 204 | lib/libicutest.so.58 | |
227 | lib/libicutest.so.${PKGVERSION} | 205 | lib/libicutest.so.${PKGVERSION} | |
228 | lib/libicutu.a | 206 | lib/libicutu.a | |
229 | lib/libicutu.so | 207 | lib/libicutu.so | |
230 | lib/libicutu.so.57 | 208 | lib/libicutu.so.58 | |
231 | lib/libicutu.so.${PKGVERSION} | 209 | lib/libicutu.so.${PKGVERSION} | |
232 | lib/libicuuc.a | 210 | lib/libicuuc.a | |
233 | lib/libicuuc.so | 211 | lib/libicuuc.so | |
234 | lib/libicuuc.so.57 | 212 | lib/libicuuc.so.58 | |
235 | lib/libicuuc.so.${PKGVERSION} | 213 | lib/libicuuc.so.${PKGVERSION} | |
236 | lib/pkgconfig/icu-i18n.pc | 214 | lib/pkgconfig/icu-i18n.pc | |
237 | lib/pkgconfig/icu-io.pc | 215 | lib/pkgconfig/icu-io.pc | |
238 | lib/pkgconfig/icu-le.pc | |||
239 | lib/pkgconfig/icu-lx.pc | |||
240 | lib/pkgconfig/icu-uc.pc | 216 | lib/pkgconfig/icu-uc.pc | |
241 | man/man1/derb.1 | 217 | man/man1/derb.1 | |
242 | man/man1/genbrk.1 | 218 | man/man1/genbrk.1 | |
243 | man/man1/gencfu.1 | 219 | man/man1/gencfu.1 | |
244 | man/man1/gencnval.1 | 220 | man/man1/gencnval.1 | |
245 | man/man1/gendict.1 | 221 | man/man1/gendict.1 | |
246 | man/man1/genrb.1 | 222 | man/man1/genrb.1 | |
247 | man/man1/icu-config.1 | 223 | man/man1/icu-config.1 | |
248 | man/man1/makeconv.1 | 224 | man/man1/makeconv.1 | |
249 | man/man1/pkgdata.1 | 225 | man/man1/pkgdata.1 | |
250 | man/man1/uconv.1 | 226 | man/man1/uconv.1 | |
251 | man/man8/genccode.8 | 227 | man/man8/genccode.8 | |
252 | man/man8/gencmn.8 | 228 | man/man8/gencmn.8 | |
253 | man/man8/gensprep.8 | 229 | man/man8/gensprep.8 | |
254 | man/man8/icupkg.8 | 230 | man/man8/icupkg.8 | |
255 | sbin/genccode | 231 | sbin/genccode | |
256 | sbin/gencmn | 232 | sbin/gencmn | |
257 | sbin/gennorm2 | 233 | sbin/gennorm2 | |
258 | sbin/gensprep | 234 | sbin/gensprep | |
259 | sbin/icupkg | 235 | sbin/icupkg | |
260 | share/icu/${PKGVERSION}/LICENSE | 236 | share/icu/${PKGVERSION}/LICENSE | |
261 | share/icu/${PKGVERSION}/config/${MH_NAME} | 237 | share/icu/${PKGVERSION}/config/mh-bsd-gcc | |
262 | share/icu/${PKGVERSION}/install-sh | 238 | share/icu/${PKGVERSION}/install-sh | |
263 | share/icu/${PKGVERSION}/mkinstalldirs | 239 | share/icu/${PKGVERSION}/mkinstalldirs |
@@ -1,13 +1,13 @@ | @@ -1,13 +1,13 @@ | |||
1 | # $NetBSD: buildlink3.mk,v 1.29 2016/04/11 16:15:22 ryoon Exp $ | 1 | # $NetBSD: buildlink3.mk,v 1.30 2016/12/04 04:11:32 ryoon Exp $ | |
2 | 2 | |||
3 | BUILDLINK_TREE+= icu | 3 | BUILDLINK_TREE+= icu | |
4 | 4 | |||
5 | .if !defined(ICU_BUILDLINK3_MK) | 5 | .if !defined(ICU_BUILDLINK3_MK) | |
6 | ICU_BUILDLINK3_MK:= | 6 | ICU_BUILDLINK3_MK:= | |
7 | 7 | |||
8 | BUILDLINK_API_DEPENDS.icu+= icu>=3.4 | 8 | BUILDLINK_API_DEPENDS.icu+= icu>=3.4 | |
9 | BUILDLINK_ABI_DEPENDS.icu+= icu>=57.1 | 9 | BUILDLINK_ABI_DEPENDS.icu+= icu>=58.1 | |
10 | BUILDLINK_PKGSRCDIR.icu?= ../../textproc/icu | 10 | BUILDLINK_PKGSRCDIR.icu?= ../../textproc/icu | |
11 | .endif # ICU_BUILDLINK3_MK | 11 | .endif # ICU_BUILDLINK3_MK | |
12 | 12 | |||
13 | BUILDLINK_TREE+= -icu | 13 | BUILDLINK_TREE+= -icu |
@@ -1,24 +1,29 @@ | @@ -1,24 +1,29 @@ | |||
1 | $NetBSD: distinfo,v 1.61 2016/04/11 16:15:22 ryoon Exp $ | 1 | $NetBSD: distinfo,v 1.62 2016/12/04 04:11:32 ryoon Exp $ | |
2 | 2 | |||
3 | SHA1 (icu4c-57_1-src.tgz) = ca5f5cc584f45e87bf56bf8b7f9244d12a5ada67 | 3 | SHA1 (icu4c-58_1-src.tgz) = 0739f45f985e4dfd0fcda978aecbb0de4d7ddaa6 | |
4 | RMD160 (icu4c-57_1-src.tgz) = a2b72756d7dddb0f459074dfc943fc9383d82d9b | 4 | RMD160 (icu4c-58_1-src.tgz) = f7b2401c18d5b786890a0cbc38fefdf2c3d30570 | |
5 | SHA512 (icu4c-57_1-src.tgz) = a3c701e9c81622db545bcf93f315c7b13159750f43f009d0aec59ceae3a8e1ccb751826d4b8a7387aca47f38bff2a85816b1a123b07d2bf731558c7b66e47b8a | 5 | SHA512 (icu4c-58_1-src.tgz) = 59b2a76834192a35125fda326587e613ef4486152cf0278c6f22568d4ae02c4b2d897efcea2654ef2b11bd1c3154aecd38cb68a70f69430736f343689f94c155 | |
6 | Size (icu4c-57_1-src.tgz) = 22360664 bytes | 6 | Size (icu4c-58_1-src.tgz) = 23366443 bytes | |
7 | SHA1 (patch-aa) = fd5c513e75ca17a46be4ed010455bda63731afff | 7 | SHA1 (patch-aa) = 67440d3af9b62b8c0be258c490255ba17f778ab4 | |
8 | SHA1 (patch-ab) = 32f0e4c241535e37e4cad9b871ed3d36b4184199 | 8 | SHA1 (patch-ab) = 32f0e4c241535e37e4cad9b871ed3d36b4184199 | |
9 | SHA1 (patch-ac) = e7cee161315321d2580074054d87714b55319886 | 9 | SHA1 (patch-ac) = e7cee161315321d2580074054d87714b55319886 | |
10 | SHA1 (patch-acinclude.m4) = f7de1a16aad0ca77c4bbc457ba76b6171199ce09 | 10 | SHA1 (patch-acinclude.m4) = f7de1a16aad0ca77c4bbc457ba76b6171199ce09 | |
11 | SHA1 (patch-ad) = c2a9469bf896b5f0702d5795c3b1c2b394893663 | 11 | SHA1 (patch-ad) = c2a9469bf896b5f0702d5795c3b1c2b394893663 | |
12 | SHA1 (patch-af) = 07421b669780e5eea5dc455cc39ca9737c0f728a | 12 | SHA1 (patch-af) = 07421b669780e5eea5dc455cc39ca9737c0f728a | |
13 | SHA1 (patch-common_putil.cpp) = 3058a542bcb2fdfa34b36acf389570990acd0da5 | 13 | SHA1 (patch-common_putil.cpp) = 3058a542bcb2fdfa34b36acf389570990acd0da5 | |
14 | SHA1 (patch-common_putilimp.h) = a68faa97c2bffeecaca1586e26f5bbe48e71b262 | 14 | SHA1 (patch-common_putilimp.h) = a68faa97c2bffeecaca1586e26f5bbe48e71b262 | |
15 | SHA1 (patch-common_ulist.c) = 8dd2c8152f99d762aab7e9d48293de3ccfb711cf | |||
15 | SHA1 (patch-common_umutex.h) = 096d3e15ef7b84533456af4570ed70747a4ef70c | 16 | SHA1 (patch-common_umutex.h) = 096d3e15ef7b84533456af4570ed70747a4ef70c | |
16 | SHA1 (patch-common_unicode_platform.h) = 8b7b8bcf6f5185225a1ca516ac212a495f7b47e8 | 17 | SHA1 (patch-common_unicode_platform.h) = 8b7b8bcf6f5185225a1ca516ac212a495f7b47e8 | |
17 | SHA1 (patch-common_uposixdefs.h) = 02dedd10282961dec66673069796122b447dac33 | 18 | SHA1 (patch-common_uposixdefs.h) = 02dedd10282961dec66673069796122b447dac33 | |
18 | SHA1 (patch-config_icu-config-bottom) = 168b89ee9180d4ae545125866ee91eb004010501 | 19 | SHA1 (patch-config_icu-config-bottom) = 168b89ee9180d4ae545125866ee91eb004010501 | |
19 | SHA1 (patch-config_mh-scoosr5) = 47703dcc184f58c0382da3225f849424ab74d472 | 20 | SHA1 (patch-config_mh-scoosr5) = 47703dcc184f58c0382da3225f849424ab74d472 | |
20 | SHA1 (patch-config_mh-solaris-gcc) = 19f76c27bef22cc3b572e4b67a526d5f1aa077bc | 21 | SHA1 (patch-config_mh-solaris-gcc) = 19f76c27bef22cc3b572e4b67a526d5f1aa077bc | |
21 | SHA1 (patch-configure) = 429c0b3eb3f7d0a8cf3d01a9bc359132eebe8cf4 | 22 | SHA1 (patch-configure) = 429c0b3eb3f7d0a8cf3d01a9bc359132eebe8cf4 | |
22 | SHA1 (patch-configure.ac) = b0291cf02351cbad9b0c7340baea9eb81cabb158 | 23 | SHA1 (patch-configure.ac) = b0291cf02351cbad9b0c7340baea9eb81cabb158 | |
24 | SHA1 (patch-i18n_digitlst.cpp) = 57decf47ef778b5931b3ab247ceb5e8c95344956 | |||
25 | SHA1 (patch-i18n_ucol__res.cpp) = 5e13b689941cf07bee997544aca19a6d6ce64511 | |||
26 | SHA1 (patch-test_intltest_apicoll.cpp) = e55d7cd13d2bb9f6b08f2c9c59ae475b875f110f | |||
27 | SHA1 (patch-test_intltest_apicoll.h) = e2a93be1da65e08abe3e6b28bd8aee33307a7c3e | |||
23 | SHA1 (patch-tools-toolutil-pkg_genc.c) = b5a9eb679908d9f579ff095c5389ec1aa8df8e1e | 28 | SHA1 (patch-tools-toolutil-pkg_genc.c) = b5a9eb679908d9f579ff095c5389ec1aa8df8e1e | |
24 | SHA1 (patch-tools_pkgdata_pkgdata.cpp) = 1c87fcc511f0e6cedbaf01c5164e522c33f19458 | 29 | SHA1 (patch-tools_pkgdata_pkgdata.cpp) = 1c87fcc511f0e6cedbaf01c5164e522c33f19458 |
@@ -1,52 +1,34 @@ | @@ -1,52 +1,34 @@ | |||
1 | $NetBSD: patch-aa,v 1.17 2014/10/07 16:09:53 adam Exp $ | 1 | $NetBSD: patch-aa,v 1.18 2016/12/04 04:11:33 ryoon Exp $ | |
2 | 2 | |||
3 | Add linker flags for finding the libraries to pkg-config files. | 3 | Add linker flags for finding the libraries to pkg-config files. | |
4 | Avoid using programs which need elevated privileges during the build. | 4 | Avoid using programs which need elevated privileges during the build. | |
5 | 5 | |||
6 | --- Makefile.in.orig 2014-10-03 16:18:36.000000000 +0000 | 6 | --- Makefile.in.orig 2016-09-09 21:28:18.000000000 +0000 | |
7 | +++ Makefile.in | 7 | +++ Makefile.in | |
8 | @@ -272,7 +272,7 @@ config/icu-i18n.pc: config/icu.pc Makefi | 8 | @@ -272,7 +272,7 @@ config/icu-i18n.pc: config/icu.pc Makefi | |
9 | @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Internationalization library" >> $@ | 9 | @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Internationalization library" >> $@ | |
10 | @echo "Name: $(PACKAGE)-i18n" >> $@ | 10 | @echo "Name: $(PACKAGE)-i18n" >> $@ | |
11 | @echo "Requires: icu-uc" >> $@ | 11 | @echo "Requires: icu-uc" >> $@ | |
12 | - @echo "Libs:" "${ICULIBS_I18N}" >> $@ | 12 | - @echo "Libs:" "${ICULIBS_I18N}" >> $@ | |
13 | + @echo "Libs:" '-L$${libdir}' "${ICULIBS_I18N}" >> $@ | 13 | + @echo "Libs:" '-L$${libdir}' "${ICULIBS_I18N}" >> $@ | |
14 | @echo $@ updated. | 14 | @echo $@ updated. | |
15 | 15 | |||
16 | config/icu-io.pc: config/icu.pc Makefile icudefs.mk | 16 | config/icu-io.pc: config/icu.pc Makefile icudefs.mk | |
17 | @@ -280,7 +280,7 @@ config/icu-io.pc: config/icu.pc Makefile | 17 | @@ -280,7 +280,7 @@ config/icu-io.pc: config/icu.pc Makefile | |
18 | @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Stream and I/O Library" >> $@ | 18 | @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Stream and I/O Library" >> $@ | |
19 | @echo "Name: $(PACKAGE)-io" >> $@ | 19 | @echo "Name: $(PACKAGE)-io" >> $@ | |
20 | @echo "Requires: icu-i18n" >> $@ | 20 | @echo "Requires: icu-i18n" >> $@ | |
21 | - @echo "Libs:" "${ICULIBS_IO}" >> $@ | 21 | - @echo "Libs:" "${ICULIBS_IO}" >> $@ | |
22 | + @echo "Libs:" '-L$${libdir}' "${ICULIBS_IO}" >> $@ | 22 | + @echo "Libs:" '-L$${libdir}' "${ICULIBS_IO}" >> $@ | |
23 | @echo $@ updated. | 23 | @echo $@ updated. | |
24 | 24 | |||
25 | config/icu-le.pc: config/icu.pc Makefile icudefs.mk | |||
26 | @@ -288,7 +288,7 @@ config/icu-le.pc: config/icu.pc Makefile | |||
27 | @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Layout library" >> $@ | |||
28 | @echo "Name: $(PACKAGE)-le" >> $@ | |||
29 | @echo "Requires: icu-uc" >> $@ | |||
30 | - @echo "Libs:" "${ICULIBS_LE}" >> $@ | |||
31 | + @echo "Libs:" '-L$${libdir}' "${ICULIBS_LE}" >> $@ | |||
32 | @echo $@ updated. | |||
33 | ||||
34 | ICULEHB_LIBS=@ICULEHB_LIBS@ | 25 | ICULEHB_LIBS=@ICULEHB_LIBS@ | |
35 | @@ -307,7 +307,7 @@ ifneq ($(ICULEHB_LIBS),) | 26 | @@ -299,7 +299,7 @@ ifneq ($(ICULEHB_LIBS),) | |
36 | else | 27 | else | |
37 | @echo "Requires: icu-le" >> $@ | 28 | @echo "Requires: icu-le" >> $@ | |
38 | endif | 29 | endif | |
39 | - @echo "Libs:" "${ICULIBS_LX}" >> $@ | 30 | - @echo "Libs:" "${ICULIBS_LX}" >> $@ | |
40 | + @echo "Libs:" '-L$${libdir}' "${ICULIBS_LX}" >> $@ | 31 | + @echo "Libs:" '-L$${libdir}' "${ICULIBS_LX}" >> $@ | |
41 | @echo $@ updated. | 32 | @echo $@ updated. | |
42 | 33 | |||
43 | 34 | |||
44 | @@ -329,7 +329,7 @@ $(top_builddir)/config/pkgdataMakefile: | |||
45 | ||||
46 | $(top_builddir)/config/icu-config: $(top_builddir)/Makefile $(top_srcdir)/config/icu-config-top $(top_srcdir)/config/icu-config-bottom $(top_builddir)/config/Makefile.inc @platform_make_fragment@ $(top_srcdir)/config/make2sh.sed | |||
47 | -$(RMV) $@ | |||
48 | - $(INSTALL_SCRIPT) $(top_srcdir)/config/icu-config-top $@ | |||
49 | + cp -f $(top_srcdir)/config/icu-config-top $@ | |||
50 | chmod u+w $@ | |||
51 | @echo "# Following from @platform_make_fragment@" >> $@ | |||
52 | LC_ALL=C sed -f $(top_srcdir)/config/make2sh.sed < $(top_builddir)/config/Makefile.inc | grep -v '#M#' | uniq >> $@ |
$NetBSD: patch-common_ulist.c,v 1.1 2016/12/04 04:11:33 ryoon Exp $
--- common/ulist.c.orig 2016-06-15 18:58:17.000000000 +0000
+++ common/ulist.c
@@ -29,7 +29,6 @@ struct UList {
UListNode *tail;
int32_t size;
- int32_t currentIndex;
};
static void ulist_addFirstItem(UList *list, UListNode *newItem);
@@ -51,7 +50,6 @@ U_CAPI UList *U_EXPORT2 ulist_createEmpt
newList->head = NULL;
newList->tail = NULL;
newList->size = 0;
- newList->currentIndex = -1;
return newList;
}
@@ -80,8 +78,9 @@ static void ulist_removeItem(UList *list
} else {
p->next->previous = p->previous;
}
- list->curr = NULL;
- list->currentIndex = 0;
+ if (p == list->curr) {
+ list->curr = p->next;
+ }
--list->size;
if (p->forceDelete) {
uprv_free(p->data);
@@ -150,7 +149,6 @@ U_CAPI void U_EXPORT2 ulist_addItemBegin
newItem->next = list->head;
list->head->previous = newItem;
list->head = newItem;
- list->currentIndex++;
}
list->size++;
@@ -193,7 +191,6 @@ U_CAPI void *U_EXPORT2 ulist_getNext(ULi
curr = list->curr;
list->curr = curr->next;
- list->currentIndex++;
return curr->data;
}
@@ -209,7 +206,6 @@ U_CAPI int32_t U_EXPORT2 ulist_getListSi
U_CAPI void U_EXPORT2 ulist_resetList(UList *list) {
if (list != NULL) {
list->curr = list->head;
- list->currentIndex = 0;
}
}
@@ -272,4 +268,3 @@ U_CAPI void U_EXPORT2 ulist_reset_keywor
U_CAPI UList * U_EXPORT2 ulist_getListFromEnum(UEnumeration *en) {
return (UList *)(en->context);
}
-
$NetBSD: patch-i18n_digitlst.cpp,v 1.1 2016/12/04 04:11:33 ryoon Exp $
--- i18n/digitlst.cpp.orig 2016-10-17 05:10:38.000000000 +0000
+++ i18n/digitlst.cpp
@@ -61,7 +61,7 @@
#endif
#if U_USE_STRTOD_L && !U_PLATFORM_USES_ONLY_WIN32_API
-# if U_PLATFORM == U_PF_CYGWIN
+# if (U_PLATFORM == U_PF_CYGWIN) || defined(__NetBSD__)
# include <locale.h>
# else
# include <xlocale.h>
$NetBSD: patch-i18n_ucol__res.cpp,v 1.1 2016/12/04 04:11:33 ryoon Exp $
--- i18n/ucol_res.cpp.orig 2016-09-28 02:26:02.000000000 +0000
+++ i18n/ucol_res.cpp
@@ -680,6 +680,7 @@ ucol_getKeywordValuesForLocale(const cha
return NULL;
}
memcpy(en, &defaultKeywordValues, sizeof(UEnumeration));
+ ulist_resetList(sink.values); // Initialize the iterator.
en->context = sink.values;
sink.values = NULL; // Avoid deletion in the sink destructor.
return en;
$NetBSD: patch-test_intltest_apicoll.cpp,v 1.1 2016/12/04 04:11:33 ryoon Exp $
--- test/intltest/apicoll.cpp.orig 2016-09-20 04:30:06.000000000 +0000
+++ test/intltest/apicoll.cpp
@@ -81,17 +81,10 @@ CollationAPITest::TestProperty(/* char*
logln("Test ctors : ");
col = Collator::createInstance(Locale::getEnglish(), success);
if (U_FAILURE(success)){
- errcheckln(success, "Default Collator creation failed. - %s", u_errorName(success));
+ errcheckln(success, "English Collator creation failed. - %s", u_errorName(success));
return;
}
- StringEnumeration* kwEnum = col->getKeywordValuesForLocale("", Locale::getEnglish(),true,success);
- if (U_FAILURE(success)){
- errcheckln(success, "Get Keyword Values for Locale failed. - %s", u_errorName(success));
- return;
- }
- delete kwEnum;
-
col->getVersion(versionArray);
// Check for a version greater than some value rather than equality
// so that we need not update the expected version each time.
@@ -231,6 +224,29 @@ CollationAPITest::TestProperty(/* char*
delete junk;
}
+void CollationAPITest::TestKeywordValues() {
+ IcuTestErrorCode errorCode(*this, "TestKeywordValues");
+ LocalPointer<Collator> col(Collator::createInstance(Locale::getEnglish(), errorCode));
+ if (errorCode.logIfFailureAndReset("English Collator creation failed")) {
+ return;
+ }
+
+ LocalPointer<StringEnumeration> kwEnum(
+ col->getKeywordValuesForLocale("collation", Locale::getEnglish(), TRUE, errorCode));
+ if (errorCode.logIfFailureAndReset("Get Keyword Values for English Collator failed")) {
+ return;
+ }
+ assertTrue("expect at least one collation tailoring for English", kwEnum->count(errorCode) > 0);
+ const char *kw;
+ UBool hasStandard = FALSE;
+ while ((kw = kwEnum->next(NULL, errorCode)) != NULL) {
+ if (strcmp(kw, "standard") == 0) {
+ hasStandard = TRUE;
+ }
+ }
+ assertTrue("expect at least the 'standard' collation tailoring for English", hasStandard);
+}
+
void
CollationAPITest::TestRuleBasedColl()
{
@@ -2466,6 +2482,7 @@ void CollationAPITest::runIndexedTest( i
if (exec) logln("TestSuite CollationAPITest: ");
TESTCASE_AUTO_BEGIN;
TESTCASE_AUTO(TestProperty);
+ TESTCASE_AUTO(TestKeywordValues);
TESTCASE_AUTO(TestOperators);
TESTCASE_AUTO(TestDuplicate);
TESTCASE_AUTO(TestCompare);
$NetBSD: patch-test_intltest_apicoll.h,v 1.1 2016/12/04 04:11:33 ryoon Exp $
--- test/intltest/apicoll.h.orig 2016-06-15 18:58:17.000000000 +0000
+++ test/intltest/apicoll.h
@@ -35,6 +35,7 @@ public:
* - displayable name in the desired locale
*/
void TestProperty(/* char* par */);
+ void TestKeywordValues();
/**
* This tests the RuleBasedCollator