Ticket #2579: Portfile

File Portfile, 3.3 KB (added by dms@…, 19 years ago)

mail/gnupg12/Portfile

Line 
1# $Id: $
2PortSystem 1.0
3name                    gnupg12
4version                 1.2.7
5platforms               darwin
6categories              mail
7description             GNU Privacy Guard
8long_description        GnuPG is a complete and free replacement for PGP. \
9                        Because it does not use the patented IDEA algorithm, \
10                        it can be used without any restrictions. GnuPG is a \
11                        RFC2440 (OpenPGP) compliant application. PGP, on which \
12                        OpenPGP is based, was originally developed by Philip \
13                        Zimmermann in the early 1990s.
14homepage                http://www.gnupg.org/
15maintainers             dms@freeshell.org
16master_sites            ftp://ftp.gnupg.org/gcrypt/gnupg/:gnupg
17distname                gnupg-${version}
18use_bzip2               yes
19distfiles               [suffix ${distname}]:gnupg
20checksums               [suffix ${distname}] \
21                          md5  26f19692a9b8a870e3f156d7281f662c \
22                          sha1 c8e47066e5bb61d74f4001b51117bf3a56a7dd3b
23patch                   { reinplace s/PACKAGE='gnupg/&12/ \
24                            ${worksrcpath}/configure }
25configure.args          --infodir=${prefix}/share/info \
26                        --mandir=${prefix}/share/man \
27                        --program-transform-name='s/pg/&12/' \
28                        --enable-static-rnd=linux \
29                        --disable-nls \
30                        --with-libiconv-prefix=${prefix} \
31                        --with-zlib=${prefix} \
32                        --without-bzip2
33test.run                yes
34test.dir                ${worksrcpath}/checks
35test.target             check
36post-destroot           { file rename ${destroot}${prefix}/share/info/gpg.info \
37                            ${destroot}${prefix}/share/info/gpg12.info
38                          file rename \
39                            ${destroot}${prefix}/share/info/gpgv.info \
40                            ${destroot}${prefix}/share/info/gpg12v.info }
41variant nls {
42  post-patch            { file rename ${worksrcpath}/po/gnupg.pot \
43                            ${worksrcpath}/po/gnupg12.pot }
44  configure.args-delete --disable-nls
45  configure.args-append --enable-nls \
46                        --with-libintl-prefix=${prefix}
47  post-destroot         { file delete ${destroot}${prefix}/lib/charset.alias \
48                            ${destroot}${prefix}/share/locale/locale.alias }
49}
50variant bzip2 {
51  depends_lib-append    lib:libbz2.:bzip2
52  configure.args-delete --without-bzip2
53  configure.args-append --with-bzip2=${prefix}
54}
55variant tiger {
56  configure.args-append --enable-tiger
57}
58variant newtiger {
59  configure.args-append --enable-new-tiger
60}
61variant sha512 {
62  configure.args-append --enable-sha512
63}
64variant memoryguard {
65  configure.args-append --enable-m-guard
66}
67variant idea {
68  master_sites-append   http://www.gnupg.dk/contrib-dk/:idea
69  distfiles-append      idea.c.gz:idea
70  checksums-append      idea.c.gz md5  9dc3bc086824a8c7a331f35e09a3e57f \
71                                  sha1 82fded4ec31b97b3b2dd22741880b67cfee40f84
72  extract.only          [suffix ${distname}]
73  post-extract          { system "gzip -cd ${distpath}/idea.c.gz \
74                            > ${worksrcpath}/cipher/idea.c" }
75}