Ignore:
Timestamp:
Dec 4, 2014, 2:53:38 PM (5 years ago)
Author:
ryandesign@…
Message:

pdftk: update to 2.02 (#37580); add zlib dependency; remove gcc42 variant (#34275); default to gcc47 variant; fix homepage; fix livecheck

Location:
trunk/dports/textproc/pdftk
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/pdftk/Portfile

    r114325 r129035  
    55
    66name                    pdftk
    7 version                 1.44
     7version                 2.02
    88categories              textproc graphics pdf
    99maintainers             ryandesign
    1010platforms               darwin
    1111license                 GPL-2+
    12 homepage                http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
     12homepage                https://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
    1313master_sites            ${homepage}
    1414use_zip                 yes
     
    3636    Repair Corrupted PDF (Where Possible)
    3737
    38 checksums               sha1    7cb137dcba885caff32ff96b7e11c9dc4ce2cba7 \
    39                         rmd160  cacd286759005f002f5a46c0af28d3a1aaad73eb
     38checksums               rmd160  4d9e75abc4a966041bd0be7b1db13bb73819d2ae \
     39                        sha256  118f6a25fd3acaafb58824dce6f97cdc07e56050e666b90e4c4ef426ea37b8c1
    4040
    4141distname                ${name}-${version}-src
    4242worksrcdir              ${name}-${version}-dist
    4343
    44 depends_lib \
    45     port:libiconv
     44depends_lib             port:libiconv \
     45                        port:zlib
    4646
    4747build.dir               ${worksrcpath}/${name}
     
    5454
    5555set versuff ""
    56 
    57 pre-configure {
    58     if {![file exists ${prefix}/bin/gcj${versuff}]} {
    59         return -code error "
    60 
    61 Cannot build ${name} because ${prefix}/bin/gcj${versuff}
    62 is missing, possibly because of this gcc bug:
    63 
    64 http://trac.macports.org/ticket/13553
    65 "
    66     }
    67 }
    6856
    6957pre-build {
     
    8270}
    8371
    84 variant gcc42 conflicts gcc45 gcc47 description {Build using gcc42} {
    85     patchfiles-append   patch-gcj-4.2-and-older.diff
    86     configure.compiler  macports-gcc-4.2
    87     depends_build-append port:fastjar
    88     set versuff         -mp-4.2
    89 }
    90 
    91 variant gcc45 conflicts gcc42 gcc47 description {Build using gcc45} {
     72variant gcc45 conflicts gcc47 description {Build using gcc45} {
    9273    configure.compiler  macports-gcc-4.5
    9374    set versuff         -mp-4.5
    9475}
    9576
    96 variant gcc47 conflicts gcc42 gcc45 description {Build using gcc47} {
     77variant gcc47 conflicts gcc45 description {Build using gcc47} {
    9778    configure.compiler  macports-gcc-4.7
    9879    set versuff         -mp-4.7
    9980}
    10081
    101 if {![variant_isset gcc42] && ![variant_isset gcc45] && ![variant_isset gcc47]} {
    102     if {${os.platform} eq "darwin"} {
    103         if {${os.major} < 10} {
    104             default_variants    +gcc42
    105         } elseif {${os.major} < 11} {
    106             default_variants    +gcc45
    107         } else {
    108             default_variants    +gcc47
    109         }
    110     } else {
    111         default_variants    +gcc45
    112     }
     82if {![variant_isset gcc45] && ![variant_isset gcc47]} {
     83    default_variants    +gcc47
    11384}
    11485
    11586livecheck.type          regex
     87livecheck.url           https://www.pdflabs.com/docs/install-pdftk-on-redhat-or-centos/
    11688livecheck.regex         ${name}-(\[0-9.\]+)-src${extract.suffix}
Note: See TracChangeset for help on using the changeset viewer.