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

Last change on this file since 20329 was 20329, checked in by blair@…, 11 years ago

Set the svn:keywords property to 'Id' for all Portfile's. This
re-enables the Id keyword substitution that was present in the CVS
repository.

See this thread for more information:
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000180.html

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