Ticket #45652: gs-9.16.diff

File gs-9.16.diff, 6.2 KB (added by mojca (Mojca Miklavec), 9 years ago)

Preliminary (non-working) attempt towards GS 9.16

  • Portfile

     
    11# $Id$
    22
    3 PortSystem      1.0
    4 PortGroup       muniversal 1.0
     3PortSystem          1.0
     4PortGroup           muniversal 1.0
    55
    6 name            ghostscript
    7 version         9.10
    8 revision        2
    9 categories      print
    10 license         AGPL-3
    11 maintainers     takanori openmaintainer
    12 description     GPL Ghostscript, An interpreter for PostScript and PDF
    13 long_description \
    14                 Ghostscript is the well-known PostScript interpreter which \
    15                 is available for all common and most esoteric platforms and \
    16                 supports many different printers and some displays.
    17 platforms       darwin
    18 homepage        http://www.cs.wisc.edu/~ghost/
    19 master_sites    http://downloads.ghostscript.com/public/:source \
    20                 sourceforge:gs-fonts:fonts \
    21                 sourceforge:mapping-for-pdf.adobe:misc
    22 set mrversion   20091116
    23 distfiles       ${distname}.tar.gz:source \
    24                 ghostscript-fonts-other-6.0.tar.gz:fonts \
    25                 mappingresources4pdf_2unicode_${mrversion}.tar.Z:misc \
    26                 mappingresources4pdf_other_${mrversion}.tar.Z:misc
    27 patchfiles      patch-base_unix-dll.mak.diff \
    28                 patch-base_stdpre.h.diff
     6name                ghostscript
     7version             9.16
     8categories          print
     9license             AGPL-3
     10maintainers         nomaintainer
     11description         GPL Ghostscript, An interpreter for PostScript and PDF
     12long_description    Ghostscript is the well-known PostScript interpreter which \
     13                    is available for all common and most esoteric platforms and \
     14                    supports many different printers and some displays.
     15platforms           darwin
     16homepage            http://www.cs.wisc.edu/~ghost/
    2917
     18# mapping resources now on https://github.com/adobe-type-tools/mapping-resources-pdf
     19set mrversion       3128b3872aa14a4c066d5cbcdde66a3b6bba0982
     20master_sites        http://downloads.ghostscript.com/public/:source \
     21                    sourceforge:gs-fonts:fonts \
     22                    https://raw.githubusercontent.com/adobe-type-tools/mapping-resources-pdf/${mrversion}/:misc
     23distfiles           ${distname}.tar.gz:source \
     24                    ghostscript-fonts-other-6.0.tar.gz:fonts \
     25                    mappingresources4pdf_2unicode.zip:misc \
     26                    mappingresources4pdf_other.zip:misc
     27
     28patchfiles          patch-base_unix-dll.mak.diff \
     29                    patch-base_stdpre.h.diff
     30
    3031checksums           ${distname}.tar.gz \
    31                     md5     5f0c0a2670b08466a4050ddbd1f3de63 \
    32                     sha1    29d6538ae77565c09f399b06455e94e7bcd83d01 \
    33                     rmd160  b04fb3adeb207dfcba2dc1db99a8ef6e11d0e211 \
     32                    rmd160  9c483b93ccd106bae6db36b3335fae4e91177aec \
     33                    sha256  746d77280cca8afdd3d4c2c1389e332ed9b0605bd107bcaae1d761b061d1a68d \
    3434                    ghostscript-fonts-other-6.0.tar.gz \
    35                     md5     1a643ae62ef166562e4d422b1a601272 \
    36                     sha1    da62dfcb9c10d96743c7e30c1eebe7166489798c \
    3735                    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
     36                    sha256  4fa051e341167008d37fe34c19d241060cd17b13909932cd7ca7fe759243c2de \
     37                    mappingresources4pdf_2unicode.zip \
     38                    rmd160  23d26b4eccf35149ad6147422f359becd6b06223 \
     39                    sha256  ef6011539ec3a898700bc6297cb1f5b9f8d9da24a8a92c4784e3172112cf0454 \
     40                    mappingresources4pdf_other.zip \
     41                    rmd160  7d8ecaba2f1cdf902ea94dd0a9419271b00454cd \
     42                    sha256  9a6c252610540a8718f01c2578a5a4ccb9faf3eecc4af94ce48ca1bfdbd5e67c
    4643
    47 depends_lib     port:expat \
    48                 port:fontconfig \
    49                 port:freetype \
    50                 port:jbig2dec \
    51                 port:jpeg \
    52                 port:libiconv \
    53                 port:libidn \
    54                 port:libpaper \
    55                 port:libpng \
    56                 port:tiff \
    57                 port:zlib
    58 #               port:lcms2
    59 #               port:ijs
     44extract.only        ${distname}.tar.gz \
     45                    ghostscript-fonts-other-6.0.tar.gz
    6046
    61 depends_build   port:pkgconfig
    62 depends_run     port:perl5
     47depends_lib         port:expat \
     48                    port:fontconfig \
     49                    port:freetype \
     50                    port:jbig2dec \
     51                    port:jpeg \
     52                    port:libiconv \
     53                    port:libidn \
     54                    port:libpaper \
     55                    port:libpng \
     56                    port:tiff \
     57                    port:zlib
     58#                   port:lcms2
     59#                   port:ijs
    6360
     61depends_build       port:pkgconfig
     62depends_run         port:perl5
     63
    6464post-extract {
     65    system -W ${workpath} "unzip ${distpath}/mappingresources4pdf_2unicode.zip"
     66    system -W ${workpath} "unzip ${distpath}/mappingresources4pdf_other.zip"
     67
    6568#   MacPorts's lcms2 is 2.4 and it doesn't support cmsPluginTHR() yet.
    6669#   foreach d {freetype jbig2dec jpeg lcms2 libpng tiff zlib}
    6770    foreach d {freetype jbig2dec jpeg       libpng tiff zlib} {
     
    6972    }
    7073
    7174    #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
     75    eval copy -force [glob ${workpath}/mappingresources4pdf_2unicode/*] ${worksrcpath}/Resource/CMap
     76    eval copy -force [glob ${workpath}/mappingresources4pdf_other/*]    ${worksrcpath}/Resource/CMap
    7477}
    7578
    7679post-patch {