Ticket #11529: pinentry-0.7.2.diff

File pinentry-0.7.2.diff, 2.4 KB (added by pipping@…, 18 years ago)

new patch (mirrors)

  • Portfile

     
    22
    33PortSystem  1.0
    44name        pinentry
    5 version     0.7.1
    6 revision    2
     5version     0.7.2
    76categories  security
    87maintainers yeled@macports.org
    98description Passphrase entry dialog utilizing the Assuan protocol
     
    1413
    1514homepage    http://www.gnupg.org/aegypten2
    1615platforms   darwin
    17 master_sites    ftp://ftp.freenet.de/pub/ftp.gnupg.org/gcrypt/pinentry \
    18                 ftp://ftp.gnupg.org/gcrypt/pinentry/
     16master_sites    http://mirrors.rootmode.com/ftp.gnupg.org/${name}/ \
     17        ftp://ftp.freenet.de/pub/ftp.gnupg.org/gcrypt/${name}/ \
     18        ftp://ftp.gnupg.org/gcrypt/${name}/
    1919       
    20 checksums   md5 7861d63dea6434a5a05da84e83f209e6
     20checksums   md5 55626ce13ed76d82ec5330d19bdf3ab4 \
     21            sha1 aa113b08e315d22b6f70a634f459fdfbaa4dcaba \
     22            rmd160 db667256801545ef065d9d47cafe5e67137fa6ce
    2123
    2224configure.args  --mandir=${prefix}/share/man \
    23         --infodir=${prefix}/share/info
     25        --infodir=${prefix}/share/info \
     26        --with-libiconv-prefix=${prefix} \
     27        --with-ncurses-include-dir=${prefix}/include/ncurses \
     28        --enable-pinentry-curses \
     29        --disable-pinentry-gtk2 \
     30        --disable-pinentry-gtk \
     31        --disable-pinentry-qt
    2432
    25 depends_lib lib:libgcrypt.11:libgcrypt lib:libksba.8:libksba \
    26         lib:libassuan:libassuan
     33depends_lib     port:libiconv port:ncurses
    2734
    28 #test.run   yes
    29 #test.dir   ${worksrcpath}/checks
    30 #test.target    check
     35variant gtk1 {
     36        depends_lib port:gtk1
     37        configure.args-append --enable-pinentry-gtk --enable-fallback-curses
     38}
    3139
    32 post-destroot  {
    33     file delete -force ${destroot}${prefix}/share/info/dir
    34     system "cd ${destroot}/${prefix}/bin && ln -s pinentry-curses pinentry"
     40variant gtk2 {
     41        depends_lib lib:libgtk-x11-2.0:gtk2
     42        configure.args-append --enable-pinentry-gtk2 --enable-fallback-curses
    3543}
     44
     45variant qt3 {
     46        depends_lib lib:libqt-mt.3:qt3
     47        configure.env-append QTDIR=/opt/local/lib MOC=/opt/local/bin/moc
     48        configure.args-append --enable-pinentry-qt --enable-fallback-curses \
     49                --with-qt-includes=/opt/local/include/qt3 \
     50                --with-qt-libraries=/opt/local/lib
     51}
     52
     53platform darwin {
     54        configure.args-append --disable-rpath
     55}