Changeset 98125


Ignore:
Timestamp:
Sep 25, 2012, 2:56:45 PM (12 years ago)
Author:
jmr@…
Message:

fontforge: cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/graphics/fontforge/Portfile

    r98124 r98125  
    3232use_bzip2       yes
    3333
    34 set docdistname ${name}_htdocs-${docversion}
     34set docdistfile ${name}_htdocs-${docversion}${extract.suffix}
    3535
    3636distfiles-append \
    3737    cidmaps.tgz:cidmaps \
    38     [suffix ${docdistname}]:docs
     38    ${docdistfile}:docs
     39
     40checksums       ${distname}${extract.suffix} \
     41                sha1    8fada07647f102351bb1d7d1c4da487356e7142f \
     42                rmd160  7f276e9e3ef673b78355bb7be50f6b2587aee633 \
     43                cidmaps.tgz \
     44                sha1    efbc7c9d3e95159f5600dc71f9cccb370e46bb94 \
     45                rmd160  d194355e61813d31fe4813bdf10a62d66a9f6d04 \
     46                ${docdistfile} \
     47                sha1    e966fea60a2f7f022af71669f67e15e258948e0e \
     48                rmd160  ac92a01aafbb39ccbecff2953f3b6f49c3721f71 \
     49                freetype-${ftversion}${extract.suffix} \
     50                sha1    1d136cbc51c67b212c91ba04dc5db797f35e64e6 \
     51                rmd160  6b9b37ccdc8d1bfe0883f0e25df6de49ab30379e
     52
     53worksrcdir      ${name}-${version}
     54
     55extract.only    ${distname}${extract.suffix}
     56
     57post-extract {
     58    xinstall -d \
     59        ${worksrcpath}/cidmap \
     60        ${worksrcpath}/htdocs
     61
     62    system "tar xzf ${distpath}/cidmaps.tgz -C ${worksrcpath}/cidmap"
     63    system "tar xjf ${distpath}/${docdistfile} -C ${worksrcpath}/htdocs"
     64}
    3965
    4066patchfiles      patch-Makefile.dynamic.in.diff \
     
    4470                patch-configure.in.diff
    4571post-patch {
    46     if {${os.major} > 11} {
    47         foreach file [glob ${worksrcpath}/fontforge/*.c] {
    48             reinplace s|AnchorPoint|FFAnchorPoint|g $file
    49         }
     72    if {${os.major} > 11 && ${os.platform} == "darwin"} {
     73        eval reinplace -W {${worksrcpath}/fontforge} "s|AnchorPoint|FFAnchorPoint|g" \
     74            [glob -tails -directory ${worksrcpath}/fontforge *.c]
     75            splinefont.h baseviews.h views.h
    5076    }
    51 }
    52 post-configure {
    53     if {${os.major} > 11} {
    54         reinplace s|AnchorPoint|FFAnchorPoint|g ${worksrcpath}/fontforge/splinefont.h \
    55              ${worksrcpath}/fontforge/baseviews.h \
    56              ${worksrcpath}/fontforge/views.h
    57     }
    58 }
    59 
    60 checksums       [suffix ${distname}] \
    61                 sha1    8fada07647f102351bb1d7d1c4da487356e7142f \
    62                 rmd160  7f276e9e3ef673b78355bb7be50f6b2587aee633 \
    63                 cidmaps.tgz \
    64                 sha1    efbc7c9d3e95159f5600dc71f9cccb370e46bb94 \
    65                 rmd160  d194355e61813d31fe4813bdf10a62d66a9f6d04 \
    66                 [suffix ${docdistname}] \
    67                 sha1    e966fea60a2f7f022af71669f67e15e258948e0e \
    68                 rmd160  ac92a01aafbb39ccbecff2953f3b6f49c3721f71 \
    69                 [suffix freetype-${ftversion}] \
    70                 sha1    1d136cbc51c67b212c91ba04dc5db797f35e64e6 \
    71                 rmd160  6b9b37ccdc8d1bfe0883f0e25df6de49ab30379e
    72 
    73 worksrcdir      ${name}-${version}
    74 
    75 extract.only    [suffix ${distname}]
    76 
    77 post-extract {
    78     xinstall -d \
    79         ${worksrcpath}/cidmap \
    80         ${worksrcpath}/htdocs
    81 
    82     system "tar xzf ${distpath}/cidmaps.tgz -C ${worksrcpath}/cidmap"
    83     system "tar xjf ${distpath}/[suffix ${docdistname}] -C ${worksrcpath}/htdocs"
    84 }
    85 
    86 post-patch {
    8777    reinplace "s|@PREFIX@|${prefix}|g" \
    8878        ${worksrcpath}/gutils/dynamic.c
Note: See TracChangeset for help on using the changeset viewer.