Ticket #32330: gnupg12.diff

File gnupg12.diff, 3.0 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago)

proposed patch

  • Portfile

     
    33PortSystem 1.0
    44
    55name                    gnupg12
    6 version                 1.2.7
    7 revision                1
     6version                 1.2.8
    87platforms               darwin linux
    98categories              mail
    109description             GNU Privacy Guard
     
    2120use_bzip2               yes
    2221distfiles               [suffix ${distname}]:gnupg
    2322checksums               [suffix ${distname}] \
    24                           md5  26f19692a9b8a870e3f156d7281f662c \
    25                           sha1 c8e47066e5bb61d74f4001b51117bf3a56a7dd3b
    26 patch                   { reinplace s/PACKAGE='gnupg/&12/ \
    27                             ${worksrcpath}/configure }
     23                        rmd160  eff26780bcf78a83931cee79a4e7e91e435f958e \
     24                        sha256  1151674ea2c14e9c1160a89fdf0d9433125738073e9324216af1a9c7aa4d7139
     25
     26post-patch              { reinplace s/PACKAGE='gnupg/&12/ \
     27                            ${worksrcpath}/configure
     28                          file rename ${worksrcpath}/po/gnupg.pot \
     29                            ${worksrcpath}/po/gnupg12.pot }
     30
    2831configure.args          --infodir=${prefix}/share/info \
    2932                        --mandir=${prefix}/share/man \
    3033                        --program-transform-name='s/pg/&12/' \
    3134                        --enable-static-rnd=linux \
    32                         --disable-nls \
    3335                        --with-libiconv-prefix=${prefix} \
     36                        --with-libintl-prefix=${prefix} \
    3437                        --with-zlib=${prefix} \
    35                         --without-bzip2
     38                        --with-bzip2=${prefix}
     39
     40depends_lib             port:libiconv \
     41                        port:gettext \
     42                        port:zlib \
     43                        port:bzip2
     44
    3645test.run                yes
    3746test.dir                ${worksrcpath}/checks
    3847test.target             check
     
    4049                            ${destroot}${prefix}/share/info/gpg12.info
    4150                          file rename \
    4251                            ${destroot}${prefix}/share/info/gpgv.info \
    43                             ${destroot}${prefix}/share/info/gpg12v.info }
    44 variant nls {
    45   post-patch            { file rename ${worksrcpath}/po/gnupg.pot \
    46                             ${worksrcpath}/po/gnupg12.pot }
    47   configure.args-delete --disable-nls
    48   configure.args-append --enable-nls \
    49                         --with-libintl-prefix=${prefix}
    50   post-destroot         { file delete ${destroot}${prefix}/lib/charset.alias \
     52                            ${destroot}${prefix}/share/info/gpg12v.info
     53                          file delete ${destroot}${prefix}/lib/charset.alias \
    5154                            ${destroot}${prefix}/share/locale/locale.alias }
    52 }
    53 variant bzip2 {
    54   depends_lib-append    lib:libbz2.1:bzip2
    55   configure.args-delete --without-bzip2
    56   configure.args-append --with-bzip2=${prefix}
    57 }
     55
    5856variant tiger {
    5957  configure.args-append --enable-tiger
    6058}