Ticket #36396: icu-49.1.2.patch

File icu-49.1.2.patch, 3.6 KB (added by manphiz@…, 12 years ago)

Refresh again to fix doc installation. The directory structure and files has changed, so changed the script accordingly.

  • Portfile

    diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/icu/Portfile ./Portfile
    old new  
    88set my_name     icu4c
    99# Don't forget to increase the revision number of the dependents (e.g. boost)
    1010# whenever the library version number changes. Thanks.
    11 version         4.8.1
     11version         49.1.2
    1212categories      devel textproc
    1313platforms       darwin freebsd
    1414license         MIT
     
    3030patchfiles      patch-configure.diff \
    3131                patch-config-mh-darwin.diff
    3232checksums           ${distname}-src.tgz \
    33                     md5     af36f635271a239d76d038d6cf8da8df \
    34                     sha1    f0252b2b7ad1ef861ac39b177b7a6fcb6c94eb45 \
    35                     rmd160  2196dffbc2d074cf56f5dcbb4e2b802c950cfcf0
     33                    rmd160  e34aa54f4387ae4c195c72427a2bd25933456e94 \
     34                    sha256  cce83cc88a2ff79d65c05426facbf30530bbe13a1cfda04b3ab81b55414cf5a3
    3635
    3736worksrcdir      ${name}/source
    3837set docdir      ${prefix}/share/doc/${name}
     
    175174    extract.only        ${distname}-src${extract.suffix}
    176175    distfiles-append    ${distname}-docs.zip
    177176    checksums-append    ${distname}-docs.zip \
    178                         md5     b08fbc1a17139899612956aeb3fc3eb4 \
    179                         sha1    51f796df86f2e69c0ef1e398727a1fcb5fcbb7a3 \
    180                         rmd160  bc1794f99be91b7646f13ac06a96b912a1b388f5
     177                        rmd160  e0ffe7d2ff35480dcefb5dace1b21d5ac557a3af \
     178                        sha256  50fcc81a797b20ebaf12167479f24eac323bad21d012ca366701f62eccdabb94
    181179
    182180    post-extract {
    183181        xinstall -m 0755 -d ${worksrcpath}/doc
     
    186184
    187185    post-destroot {
    188186        xinstall -m 0755 -d ${destroot}${docdir}/html/search
    189         foreach f {*.css *.html *.png *.tag installdox} {
     187        foreach f {*} {
    190188            eval xinstall -m 0644 [glob ${worksrcpath}/doc/html/${f}] ${destroot}${docdir}/html
    191189        }
    192         eval xinstall -m 0644 [glob ${worksrcpath}/doc/html/search/*] ${destroot}${docdir}/html/search
    193190    }
    194191}
    195192
  • files/patch-universal.diff

    diff -urN /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/icu/files/patch-universal.diff ./files/patch-universal.diff
    old new  
    1 --- Makefile.in.orig    2010-10-07 09:23:38.000000000 +0900
    2 +++ Makefile.in 2010-12-03 10:53:07.000000000 +0900
    3 @@ -149,14 +149,17 @@
     1--- Makefile.in.orig    2012-06-01 07:56:18.000000000 -0700
     2+++ Makefile.in 2012-09-30 13:12:58.000000000 -0700
     3@@ -160,16 +160,19 @@
    44        $(INSTALL_SCRIPT) $(top_srcdir)/install-sh $(DESTDIR)$(pkgdatadir)/install-sh
    55        @$(MKINSTALLDIRS) $(DESTDIR)$(libdir)/pkgconfig
    66        $(INSTALL_DATA) $(ALL_PKGCONFIG_FILES) $(DESTDIR)$(libdir)/pkgconfig/
     
    1414+       $(INSTALL_SCRIPT) $(top_builddir)/config/icu-config $(DESTDIR)$(bindir)/icu-config-__ARCH__
    1515+       $(INSTALL_DATA) $(top_builddir)/config/Makefile.inc $(DESTDIR)$(pkglibdir)/Makefile-__ARCH__.inc
    1616+       $(INSTALL_DATA) $(top_builddir)/config/pkgdata.inc $(DESTDIR)$(pkglibdir)/pkgdata-__ARCH__.inc
     17 #      @echo icuinfo.xml is built after make check.
     18 #      -$(INSTALL_DATA) $(top_builddir)/config/icuinfo.xml $(DESTDIR)$(pkglibdir)/icuinfo.xml
    1719        cd $(DESTDIR)$(pkglibdir)/..; \
    1820            $(RM) current && ln -s $(VERSION) current; \
    1921-           $(RM) Makefile.inc && ln -s current/Makefile.inc Makefile.inc; \