Changeset 128215


Ignore:
Timestamp:
Nov 16, 2014, 6:07:35 PM (5 years ago)
Author:
ionic@…
Message:

pinentry-mac: don't make the port fail to parse on 10.7 and below. Move the fail code to pre-fetch, so that the port (formally) exists on those platforms, too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/pinentry-mac/Portfile

    r128213 r128215  
    2525depends_lib
    2626
    27 platform darwin {
     27pre-fetch {
    2828    if {${os.major} < 12} {
    2929        ui_error    "This software utilizes ARC, which is only available on 10.7 and later.
     
    3131                     not compatible with 10.7 and below."
    3232        error       "Unsupported operating system."
    33     } else {
    34         notes       "
    35                      If you previously didn't have pinentry or gpg-agent installed
    36                      and ${name} has been installed as a dependency of gpg-agent,
    37                      you don't need to do anything to use ${name}.
     33    }
     34}
    3835
    39                      If you want to switch to the GTK2, ncurses or Qt4 based pinentry
    40                      program, please install pinentry with the correct use flags and
    41                      follow the instructions below substituting the ${name} program
    42                      path with ${prefix}/bin/pinentry.
     36platform darwin {
     37    notes   "
     38             If you previously didn't have pinentry or gpg-agent installed
     39             and ${name} has been installed as a dependency of gpg-agent,
     40             you don't need to do anything to use ${name}.
     41
     42             If you want to switch to the GTK2, ncurses or Qt4 based pinentry
     43             program, please install pinentry with the correct use flags and
     44             follow the instructions below substituting the ${name} program
     45             path with ${prefix}/bin/pinentry.
    4346
    4447
    45                      If you previously had pinentry and gpg-agent installed and would
    46                      like to switch to ${name}, you will have to set
    47                      it as your pinentry program in \$HOME/.gnupg/gpg-agent.conf.
     48             If you previously had pinentry and gpg-agent installed and would
     49             like to switch to ${name}, you will have to set
     50             it as your pinentry program in \$HOME/.gnupg/gpg-agent.conf.
    4851
    49                      Add the following line to the mentioned file:
    50                      pinentry-program ${applications_dir}/${name}.app/Contents/MacOS/${name}
     52             Add the following line to the mentioned file:
     53             pinentry-program ${applications_dir}/${name}.app/Contents/MacOS/${name}
    5154
    5255
    53                      Be sure to comment previous \"pinentry-program\" lines, for example:
     56             Be sure to comment previous \"pinentry-program\" lines, for example:
    5457
    55                      pinentry-program SAMPLE
     58             pinentry-program SAMPLE
    5659
    57                      becomes
     60             becomes
    5861
    59                      #pinentry-program SAMPLE
     62             #pinentry-program SAMPLE
    6063
    6164
    62                      Afterwards, run
    63                      killall -HUP gpg-agent
     65             Afterwards, run
     66             killall -HUP gpg-agent
    6467
    65                      or simply log out and back in again.
    66                     "
    67     }
     68             or simply log out and back in again.
     69            "
    6870}
    6971
Note: See TracChangeset for help on using the changeset viewer.