Package: libicu48-dev Version: 4.8.1.1 Revision: 3 Source: http://download.icu-project.org/files/icu4c/%v/icu4c-4_8_1_1-src.tgz Source-MD5: ea93970a0275be6b42f56953cd332c17 SourceDirectory: icu Conflicts: libicu28, libicu28-dev, libicu30, libicu30-dev, libicu31, libicu31-dev, libicu32-dev, libicu36-dev, libicu48-dev, libicu55-dev Replaces: libicu28, libicu28-dev, libicu30, libicu30-dev, libicu31, libicu31-dev, libicu32-dev, libicu36-dev, libicu48-dev, libicu55-dev BuildDepends: fink (>= 0.24.12-1), fink-package-precedence, flag-sort Depends: libicu48-shlibs (= %v-%r) BuildDependsOnly: true PatchFile: %n.patch PatchFile-MD5: fe1eef8d4a938915d368b0006c66fe1a 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" -lt 13 || sed -i.orig -e 's/-ansi//' source/configure << SetCC: flag-sort -r gcc SetCXX: flag-sort -r g++ ConfigureParams: --enable-shared --disable-static UseMaxBuildJobs: false CompileScript: << #!/bin/sh -ev mkdir build cd build ../source/configure %c make fink-package-precedence --depfile-ext=.d --headers --libs \ --prohibit-bdep=libicu36-dev,libicu32-dev,%n . << InfoTest: TestScript: cd build && make -k check || exit 2 InstallScript: << #!/bin/sh -ex cd build make DESTDIR="%d" install # O Libtool, whither art thou? prefix="%p" iprefix="%i" ivers=48.1.1 pushd $iprefix/lib for f in libicu*.*.*.*.dylib do if test ! -L $f then install_name_tool -id "$prefix/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 *.48.dylib) repl=`echo "$d" | sed "s|48\.dylib|$ivers.dylib|"` install_name_tool -change "$d" "$prefix/lib/$repl" $f ;; *) install_name_tool -change "$d" "$prefix/lib/$d" $f ;; esac done fi done popd for b in bin sbin do pushd $iprefix/$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 /*) ;; @*) ;; *.48.dylib) repl=`echo "$d" | sed "s|48\.dylib|$ivers.dylib|"` install_name_tool -change "$d" "$prefix/lib/$repl" $f ;; *) install_name_tool -change "$d" "$prefix/lib/$d" $f ;; esac done fi done popd done << DocFiles: *.css *.html *.txt SplitOff: << Package: libicu48-shlibs Description: Shared libraries for ICU 4.8 DocFiles: *.css *.html *.txt Files: lib/libicu*.48.*.dylib Shlibs: << %p/lib/libicudata.48.1.1.dylib 48.0.0 %n (>= 4.8-0) %p/lib/libicui18n.48.1.1.dylib 48.0.0 %n (>= 4.8-0) %p/lib/libicuio.48.1.1.dylib 48.0.0 %n (>= 4.8-0) %p/lib/libicule.48.1.1.dylib 48.0.0 %n (>= 4.8-0) %p/lib/libiculx.48.1.1.dylib 48.0.0 %n (>= 4.8-0) %p/lib/libicutest.48.1.1.dylib 48.0.0 %n (>= 4.8-0) %p/lib/libicutu.48.1.1.dylib 48.0.0 %n (>= 4.8-0) %p/lib/libicuuc.48.1.1.dylib 48.0.0 %n (>= 4.8-0) << << # SplitOff2: -bin? License: BSD Description: Headers for ICU libraries Maintainer: David Fang Homepage: http://site.icu-project.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 intltest: Patch needed after 2014 that is less than 20 years from the 2034 the test is expecting. And that makes it think '34' is 2034 and not 1934. http://sourceforge.net/p/icu/mailman/message/32443311/ https://gist.github.com/nawawi/dbe0021e3c439d9ccd85 <<