source: trunk/dports/security/pinentry/Portfile

Last change on this file was 149183, checked in by ionic@…, 14 months ago

pinentry: upgrade to 0.9.7. Qt5 can now be properly disabled.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 149183 2016-06-04 21:57:27Z ryandesign@macports.org $
3
4PortSystem                  1.0
5
6name                        pinentry
7version                     0.9.7
8revision                    0
9categories                  security
10license                     GPL-2+
11maintainers                 ionic openmaintainer
12homepage                    http://www.gnupg.org/aegypten2
13platforms                   darwin
14master_sites                gnupg
15
16description                 Passphrase entry dialog utilizing the Assuan protocol
17
18long_description            This is a collection of simple PIN or passphrase entry \
19                            dialogs which utilize the Assuan protocol as described by \
20                            the aegypten project.
21
22use_bzip2                   yes
23
24checksums                   rmd160  2f9a34fcef91a1538bd4436a6aa01810732ddc8f \
25                            sha256  6398208394972bbf897c3325780195584682a0d0c164ca5a0da35b93b1e4e7b2
26
27configure.args              --with-libiconv-prefix=${prefix} \
28                            --with-ncurses-include-dir=${prefix}/include/ncurses \
29                            --enable-pinentry-curses \
30                            --disable-pinentry-gtk2 \
31                            --disable-pinentry-qt \
32                            --disable-pinentry-qt5
33
34# Fix picking up the correct assuan version.
35# -isystem has the added benefit of moving the include
36# directory specified to the end of the include path list.
37# This will help the build system respect custom include
38# paths correctly (i.e., searching them before the MP include
39# directory.)
40configure.cppflags-replace  -I${prefix}/include -isystem${prefix}/include
41
42depends_build               port:pkgconfig
43depends_lib                 port:libiconv \
44                            port:ncurses \
45                            port:libassuan \
46                            port:libgpg-error
47
48variant gtk2 description {Enable gtk2-based pinentry tool} {
49    depends_lib-append      port:gtk2
50    configure.args-delete   --disable-pinentry-gtk2
51    configure.args-append   --enable-pinentry-gtk2 \
52                            --enable-fallback-curses
53}
54
55variant qt4 conflicts qt5 description {Enable qt4-based pinentry tool} {
56    PortGroup               qt4 1.0
57    configure.args-delete   --disable-pinentry-qt
58    configure.args-append   --enable-pinentry-qt \
59                            --enable-fallback-curses
60}
61
62variant qt5 conflicts qt4 description {Enable qt5-based pinentry tool} {
63    PortGroup               qt5 1.0
64    configure.args-delete   --disable-pinentry-qt \
65                            --disable-pinentry-qt5
66    configure.args-append   --enable-pinentry-qt \
67                            --enable-pinentry-qt5 \
68                            --enable-fallback-curses
69}
70
71platform darwin {
72    configure.args-append   --disable-rpath
73}
74
75livecheck.type              regex
76livecheck.url               ftp://ftp.gnupg.org/gcrypt/pinentry/
77livecheck.regex             ${name}-(\\d+\\.\\d+\\.\\d+)
Note: See TracBrowser for help on using the repository browser.