1 | # $Id: $ |
---|
2 | PortSystem 1.0 |
---|
3 | name gnupg12 |
---|
4 | version 1.2.7 |
---|
5 | platforms darwin |
---|
6 | categories mail |
---|
7 | description GNU Privacy Guard |
---|
8 | long_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. |
---|
14 | homepage http://www.gnupg.org/ |
---|
15 | maintainers dms@freeshell.org |
---|
16 | master_sites ftp://ftp.gnupg.org/gcrypt/gnupg/:gnupg |
---|
17 | distname gnupg-${version} |
---|
18 | use_bzip2 yes |
---|
19 | distfiles [suffix ${distname}]:gnupg |
---|
20 | checksums [suffix ${distname}] \ |
---|
21 | md5 26f19692a9b8a870e3f156d7281f662c \ |
---|
22 | sha1 c8e47066e5bb61d74f4001b51117bf3a56a7dd3b |
---|
23 | patch { reinplace s/PACKAGE='gnupg/&12/ \ |
---|
24 | ${worksrcpath}/configure } |
---|
25 | configure.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 |
---|
33 | test.run yes |
---|
34 | test.dir ${worksrcpath}/checks |
---|
35 | test.target check |
---|
36 | post-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 } |
---|
41 | variant 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 | } |
---|
50 | variant bzip2 { |
---|
51 | depends_lib-append lib:libbz2.:bzip2 |
---|
52 | configure.args-delete --without-bzip2 |
---|
53 | configure.args-append --with-bzip2=${prefix} |
---|
54 | } |
---|
55 | variant tiger { |
---|
56 | configure.args-append --enable-tiger |
---|
57 | } |
---|
58 | variant newtiger { |
---|
59 | configure.args-append --enable-new-tiger |
---|
60 | } |
---|
61 | variant sha512 { |
---|
62 | configure.args-append --enable-sha512 |
---|
63 | } |
---|
64 | variant memoryguard { |
---|
65 | configure.args-append --enable-m-guard |
---|
66 | } |
---|
67 | variant 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 | } |
---|