Ticket #45652: Portfile-ghostscript.diff

File Portfile-ghostscript.diff, 4.2 KB (added by Schamschula (Marius Schamschula), 9 years ago)
  • Portfile

    old new  
    44PortGroup       muniversal 1.0
    55
    66name            ghostscript
    7 version         9.10
    8 revision        2
     7version         9.16
    98categories      print
    109license         AGPL-3
    1110maintainers     takanori openmaintainer
     
    1817homepage        http://www.cs.wisc.edu/~ghost/
    1918master_sites    http://downloads.ghostscript.com/public/:source \
    2019                sourceforge:gs-fonts:fonts \
    21                 sourceforge:mapping-for-pdf.adobe:misc
    22 set mrversion   20091116
     20                https://github.com/adobe-type-tools/mapping-resources-pdf/archive/:misc
     21
     22# Note: this needs to be manually updated for new upstream commits
     23set mappingresources_commit \
     24                3128b3872aa14a4c066d5cbcdde66a3b6bba0982
     25
    2326distfiles       ${distname}.tar.gz:source \
    2427                ghostscript-fonts-other-6.0.tar.gz:fonts \
    25                 mappingresources4pdf_2unicode_${mrversion}.tar.Z:misc \
    26                 mappingresources4pdf_other_${mrversion}.tar.Z:misc
     28                ${mappingresources_commit}.zip:misc
    2729patchfiles      patch-base_unix-dll.mak.diff \
    2830                patch-base_stdpre.h.diff
    2931
    3032checksums           ${distname}.tar.gz \
    31                     md5     5f0c0a2670b08466a4050ddbd1f3de63 \
    32                     sha1    29d6538ae77565c09f399b06455e94e7bcd83d01 \
    33                     rmd160  b04fb3adeb207dfcba2dc1db99a8ef6e11d0e211 \
     33                    md5     829319325bbdb83f5c81379a8f86f38f \
     34                    sha1    cc06fbf8244b9e8d0694cee5bf3be5bdd444b888 \
     35                    rmd160  9c483b93ccd106bae6db36b3335fae4e91177aec \
    3436                    ghostscript-fonts-other-6.0.tar.gz \
    3537                    md5     1a643ae62ef166562e4d422b1a601272 \
    3638                    sha1    da62dfcb9c10d96743c7e30c1eebe7166489798c \
    3739                    rmd160  ab60dbf71e7d91283a106c3df381cadfe173082f \
    38                     mappingresources4pdf_2unicode_${mrversion}.tar.Z \
    39                     md5     59267a7d0b818267c8ce85d1dbc4479a \
    40                     sha1    aaf44cb1e5dd2043c932e641b0e41432aee2ca0d \
    41                     rmd160  bc1b86e6a5f0e022f88070195eb3e01e167114a7 \
    42                     mappingresources4pdf_other_${mrversion}.tar.Z \
    43                     md5     202fa0a291fc1f5b50cfa239106c1b92 \
    44                     sha1    fc4eabff932c1623f7ee0a34085e79a44d51d0e5 \
    45                     rmd160  1e2ea9af6be8b60c9a54963e542fa06ceb2daccd
     40                    ${mappingresources_commit}.zip \
     41                    md5     474705024ad12c5f9566b51fc8c645ba \
     42                    sha1    ecab5f607db89e1cdce2eb4d180eb563be666875 \
     43                    rmd160  1bb3b507ec48b559e4388553391ebece2468dc73
    4644
    4745depends_lib     port:expat \
    4846                port:fontconfig \
     
    6159depends_build   port:pkgconfig
    6260depends_run     port:perl5
    6361
     62extract.only    ${distname}.tar.gz ghostscript-fonts-other-6.0.tar.gz
     63
    6464post-extract {
     65    system "cd ${workpath} && unzip ${distpath}/${mappingresources_commit}.zip"
     66    system "cd ${workpath} && unzip ${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_2unicode.zip"
     67    system "cd ${workpath} && unzip ${workpath}/mapping-resources-pdf-${mappingresources_commit}/mappingresources4pdf_other.zip"
     68
    6569#   MacPorts's lcms2 is 2.4 and it doesn't support cmsPluginTHR() yet.
    6670#   foreach d {freetype jbig2dec jpeg lcms2 libpng tiff zlib}
    6771    foreach d {freetype jbig2dec jpeg       libpng tiff zlib} {
     
    6973    }
    7074
    7175    #move ${workpath}/MappingOther/Adobe-CNS1-ETen-B5 ${workpath}/MappingOther/Adobe-CNS1-ETenms-B5
    72     eval copy -force [glob ${workpath}/ToUnicode/*]    ${worksrcpath}/Resource/CMap
    73     eval copy -force [glob ${workpath}/MappingOther/*] ${worksrcpath}/Resource/CMap
     76    eval copy -force [glob ${workpath}/mappingresources4pdf_2unicode/*]    ${worksrcpath}/Resource/CMap
     77    eval copy -force [glob ${workpath}/mappingresources4pdf_other/*] ${worksrcpath}/Resource/CMap
    7478}
    7579
    7680post-patch {
    7781    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/base/unix-dll.mak
     82    reinplace "s|ZLIBDIR=src|ZLIBDIR=${prefix}/include|" configure.ac configure
    7883
    7984    # Ensure that MacPorts perl is used
    8085    fs-traverse f ${worksrcpath} {