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

Last change on this file since 10470 was 10470, checked in by mww, 15 years ago

Bug: #2579
Submitted by: dms@…
Reviewed by: mww@

new port mail/gnupg12 - compatibility version of gnupg (not in conflict with gnupg 1.4!)

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
1# $Id: Portfile,v 1.1 2005/01/18 19:56:32 mww Exp $
2
3PortSystem 1.0
4
5name                    gnupg12
6version                 1.2.7
7platforms               darwin
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             dms@freeshell.org
18master_sites            ftp://ftp.gnupg.org/gcrypt/gnupg/:gnupg
19distname                gnupg-${version}
20use_bzip2               yes
21distfiles               [suffix ${distname}]:gnupg
22checksums               [suffix ${distname}] \
23                          md5  26f19692a9b8a870e3f156d7281f662c \
24                          sha1 c8e47066e5bb61d74f4001b51117bf3a56a7dd3b
25patch                   { reinplace s/PACKAGE='gnupg/&12/ \
26                            ${worksrcpath}/configure }
27configure.args          --infodir=${prefix}/share/info \
28                        --mandir=${prefix}/share/man \
29                        --program-transform-name='s/pg/&12/' \
30                        --enable-static-rnd=linux \
31                        --disable-nls \
32                        --with-libiconv-prefix=${prefix} \
33                        --with-zlib=${prefix} \
34                        --without-bzip2
35test.run                yes
36test.dir                ${worksrcpath}/checks
37test.target             check
38post-destroot           { file rename ${destroot}${prefix}/share/info/gpg.info \
39                            ${destroot}${prefix}/share/info/gpg12.info
40                          file rename \
41                            ${destroot}${prefix}/share/info/gpgv.info \
42                            ${destroot}${prefix}/share/info/gpg12v.info }
43variant nls {
44  post-patch            { file rename ${worksrcpath}/po/gnupg.pot \
45                            ${worksrcpath}/po/gnupg12.pot }
46  configure.args-delete --disable-nls
47  configure.args-append --enable-nls \
48                        --with-libintl-prefix=${prefix}
49  post-destroot         { file delete ${destroot}${prefix}/lib/charset.alias \
50                            ${destroot}${prefix}/share/locale/locale.alias }
51}
52variant bzip2 {
53  depends_lib-append    lib:libbz2.:bzip2
54  configure.args-delete --without-bzip2
55  configure.args-append --with-bzip2=${prefix}
56}
57variant tiger {
58  configure.args-append --enable-tiger
59}
60variant newtiger {
61  configure.args-append --enable-new-tiger
62}
63variant sha512 {
64  configure.args-append --enable-sha512
65}
66variant memoryguard {
67  configure.args-append --enable-m-guard
68}
69variant idea {
70  master_sites-append   http://www.gnupg.dk/contrib-dk/:idea
71  distfiles-append      idea.c.gz:idea
72  checksums-append      idea.c.gz md5  9dc3bc086824a8c7a331f35e09a3e57f \
73                                  sha1 82fded4ec31b97b3b2dd22741880b67cfee40f84
74  extract.only          [suffix ${distname}]
75  post-extract          { system "gzip -cd ${distpath}/idea.c.gz \
76                            > ${worksrcpath}/cipher/idea.c" }
77}
Note: See TracBrowser for help on using the repository browser.