Package: libicu67-shlibs Version: 67.1 Revision: 3 # temp retain full package for php upgrade/development Source: https://github.com/unicode-org/icu/releases/download/release-67-1/icu4c-67_1-src.tgz Source-Checksum: SHA256(94a80cd6f251a53bd2a997f6f1b5ac6653fe791dfab66e1eb0227740fb86d5dc) SourceDirectory: icu BuildDepends: << fink-package-precedence, flag-sort << PatchFile: %n.patch PatchFile-MD5: 1ffcb2cf5a09729395b27e00ebc8b76c PatchScript: << #!/bin/sh -ev %{default_script} darwin_vers=`uname -r | cut -d. -f1` # darwin13: -ansi forces -std=c89, which changes the linkage of inlines test "$darwin_vers" -ge 14 && sed -i.orig -e 's/-ansi//' source/configure << SetCC: flag-sort -r gcc SetCXX: flag-sort -r g++ ConfigureParams: --enable-shared --disable-static --disable-layoutex # layout-engine requires icu-le-hb; not in fink for now UseMaxBuildJobs: false CompileScript: << #!/bin/sh -ev mkdir build cd build ../source/configure %c make fink-package-precedence --depfile-ext=.d --headers --libs \ --prohibit-bdep=libicu48-dev,libicu55-dev,libicu67-dev,libicu72-dev . << InfoTest: << TestScript: << #!/bin/sh -ev export ICU_DATA=%b/build/data/out/build cd build && make -j1 check || exit 2 << << InstallScript: << #!/bin/sh -ex cd build make DESTDIR="%d" install # O Libtool, whither art thou? ivers=67.1 pushd %i/lib for f in libicu*.*.*.dylib do if test ! -L $f then install_name_tool -id "%p/lib/$f" "$f" deplibs=`otool -L $f | sed 1,2d | awk '{print $1;}' | tr '\n' ' '` for d in $deplibs do # prefix absolute paths to installation case $d in /*) ;; # internal linking should not depend on symlinks from -dev *.67.dylib) repl=`echo "$d" | sed "s|67\.dylib|$ivers.dylib|"` install_name_tool -change "$d" "%p/lib/$repl" $f ;; *) install_name_tool -change "$d" "%p/lib/$d" $f ;; esac done fi done popd for b in bin sbin do pushd %i/$b for f in * do if test ! -L $f then deplibs=`otool -L $f | sed 1d | awk '{print $1;}' | tr '\n' ' '` for d in $deplibs do case $d in /*) ;; @*) ;; *.67.dylib) repl=`echo "$d" | sed "s|67\.dylib|$ivers.dylib|"` install_name_tool -change "$d" "%p/lib/$repl" $f ;; *) install_name_tool -change "$d" "%p/lib/$d" $f ;; esac done fi done popd done << DocFiles: *.css *.html Shlibs: << %p/lib/libicudata.67.1.dylib 67.0.0 %n (>= 67.1-1) %p/lib/libicui18n.67.1.dylib 67.0.0 %n (>= 67.1-1) %p/lib/libicuio.67.1.dylib 67.0.0 %n (>= 67.1-1) %p/lib/libicutest.67.1.dylib 67.0.0 %n (>= 67.1-1) %p/lib/libicutu.67.1.dylib 67.0.0 %n (>= 67.1-1) %p/lib/libicuuc.67.1.dylib 67.0.0 %n (>= 67.1-1) << SplitOff: << Package: libicu67-dev Depends: %N (= %v-%r) BuildDependsOnly: true Conflicts: << libicu48-dev, libicu55-dev, libicu67-dev, libicu72-dev << Replaces: << libicu48-dev, libicu55-dev, libicu67-dev, libicu72-dev << Files: << bin include lib/icu lib/libicudata{.67,}.dylib lib/libicui18n{.67,}.dylib lib/libicuio{.67,}.dylib lib/libicutest{.67,}.dylib lib/libicutu{.67,}.dylib lib/libicuuc{.67,}.dylib lib/pkgconfig sbin share/icu share/man << DocFiles: *.css *.html << # TODO? SplitOff2: some sort of -bin, analogous to Debian's icu-devtools License: BSD Description: International Components for Unicode library Maintainer: David Fang Homepage: https://icu.unicode.org/ DescDetail: << The International Components for Unicode (ICU) libraries provide robust and full-featured Unicode services on a wide variety of platforms. ICU supports the most current version of the Unicode standard, and they provide support for supplementary Unicode characters (needed for GB 18030 repertoire support). As computing environments become more heterogeneous, software portability becomes more important. ICU lets you produce the same results across all the various platforms you support, without sacrificing performance. It offers great flexibility to extend and customize the supplied services, which include: * Text: Unicode text handling, full character properties and character set conversions (500+ codepages) * Analysis: Unicode regular expressions; full Unicode sets; character, word and line boundaries * Comparison: Language sensitive collation and searching * Transformations: normalization, upper/lowercase, script transliterations (50+ pairs) * Locales: Comprehensive locale data (230+) and resource bundle architecture * Complex Text Layout: Arabic, Hebrew, Indic and Thai * Time: Multi-calendar and time zone * Formatting and Parsing: dates, times, numbers, currencies, messages and rule based Please note that this package is NOT based on the ICU source provided by Apple. << DescPackaging: << flag-sort is needed because Makefiles order in-source dirs after passed CPPFLAGS. Patch is needed to re-order linker flags to have -L../stubdata before -L../lib <<