source: trunk/dports/mail/gnupg12/Portfile @ 87715

Last change on this file since 87715 was 87715, checked in by ryandesign@…, 8 years ago

gnupg12: update to 1.2.8; make bzip2 and gettext support always-on, eliminating the variants; add missing libiconv and zlib dependencies; see #32330

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 KB
Line 
1# $Id: Portfile 87715 2011-12-02 07:31:05Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    gnupg12
6version                 1.2.8
7platforms               darwin linux
8categories              mail
9description             GNU Privacy Guard
10long_description        GnuPG is a complete and free replacement for PGP. \
11                        Because it does not use the patented IDEA algorithm, \
12                        it can be used without any restrictions. GnuPG is a \
13                        RFC2440 (OpenPGP) compliant application. PGP, on which \
14                        OpenPGP is based, was originally developed by Philip \
15                        Zimmermann in the early 1990s.
16homepage                http://www.gnupg.org/
17maintainers             freeshell.org:dms
18master_sites            gnupg:gnupg:gnupg
19distname                gnupg-${version}
20use_bzip2               yes
21distfiles               [suffix ${distname}]:gnupg
22checksums               [suffix ${distname}] \
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
31configure.args          --infodir=${prefix}/share/info \
32                        --mandir=${prefix}/share/man \
33                        --program-transform-name='s/pg/&12/' \
34                        --enable-static-rnd=linux \
35                        --with-libiconv-prefix=${prefix} \
36                        --with-libintl-prefix=${prefix} \
37                        --with-zlib=${prefix} \
38                        --with-bzip2=${prefix}
39
40depends_lib             port:libiconv \
41                        port:gettext \
42                        port:zlib \
43                        port:bzip2
44
45test.run                yes
46test.dir                ${worksrcpath}/checks
47test.target             check
48post-destroot           { file rename ${destroot}${prefix}/share/info/gpg.info \
49                            ${destroot}${prefix}/share/info/gpg12.info
50                          file rename \
51                            ${destroot}${prefix}/share/info/gpgv.info \
52                            ${destroot}${prefix}/share/info/gpg12v.info
53                          file delete ${destroot}${prefix}/lib/charset.alias \
54                            ${destroot}${prefix}/share/locale/locale.alias }
55
56variant tiger {
57  configure.args-append --enable-tiger
58}
59variant newtiger {
60  configure.args-append --enable-new-tiger
61}
62variant sha512 {
63  configure.args-append --enable-sha512
64}
65variant memoryguard {
66  configure.args-append --enable-m-guard
67}
68variant idea {
69  master_sites-append   http://www.gnupg.dk/contrib-dk/:idea
70  distfiles-append      idea.c.gz:idea
71  checksums-append      idea.c.gz md5  9dc3bc086824a8c7a331f35e09a3e57f \
72                                  sha1 82fded4ec31b97b3b2dd22741880b67cfee40f84
73  extract.only          [suffix ${distname}]
74  post-extract          { system "gzip -cd ${distpath}/idea.c.gz \
75                            > ${worksrcpath}/cipher/idea.c" }
76}
77
78livecheck.type  regex
79livecheck.url   ftp://ftp.gnupg.org/gcrypt/gnupg/
80livecheck.regex gnupg-(1\\.2\\.\\d+)
Note: See TracBrowser for help on using the repository browser.