Ticket #32330: gnupg12.diff
File gnupg12.diff, 3.0 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 5 5 name gnupg12 6 version 1.2.7 7 revision 1 6 version 1.2.8 8 7 platforms darwin linux 9 8 categories mail 10 9 description GNU Privacy Guard … … 21 20 use_bzip2 yes 22 21 distfiles [suffix ${distname}]:gnupg 23 22 checksums [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 26 post-patch { reinplace s/PACKAGE='gnupg/&12/ \ 27 ${worksrcpath}/configure 28 file rename ${worksrcpath}/po/gnupg.pot \ 29 ${worksrcpath}/po/gnupg12.pot } 30 28 31 configure.args --infodir=${prefix}/share/info \ 29 32 --mandir=${prefix}/share/man \ 30 33 --program-transform-name='s/pg/&12/' \ 31 34 --enable-static-rnd=linux \ 32 --disable-nls \33 35 --with-libiconv-prefix=${prefix} \ 36 --with-libintl-prefix=${prefix} \ 34 37 --with-zlib=${prefix} \ 35 --without-bzip2 38 --with-bzip2=${prefix} 39 40 depends_lib port:libiconv \ 41 port:gettext \ 42 port:zlib \ 43 port:bzip2 44 36 45 test.run yes 37 46 test.dir ${worksrcpath}/checks 38 47 test.target check … … 40 49 ${destroot}${prefix}/share/info/gpg12.info 41 50 file rename \ 42 51 ${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 \ 51 54 ${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 58 56 variant tiger { 59 57 configure.args-append --enable-tiger 60 58 }