source: trunk/dports/mail/signing-party/Portfile

Last change on this file was 151921, checked in by mojca@…, 15 months ago

signing-party: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151921 2016-08-23 22:21:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                signing-party
8version             2.1
9revision            1
10checksums           rmd160  d50a5f1e9c366d0102341e38fd4606a228d13737 \
11                    sha256  ca87849a74ea4c271e92422bfe6b1be2bfe2c2de9a723bf11aa088e4ea88965d
12
13categories          mail security
14maintainers         cal openmaintainer
15platforms           darwin
16description         Various OpenPGP related tools
17long_description    signing-party is a collection for all kinds of PGP/GnuPG \
18                    related things, including signing scripts, party \
19                    preparation scripts, etc.
20
21homepage            http://pgp-tools.alioth.debian.org/
22license             BSD GPL-2 GPL-2+
23master_sites        debian:s/signing-party/
24distname            ${name}_${version}
25worksrcdir          ${name}-${version}
26extract.mkdir       yes
27extract.suffix      .orig.tar.gz
28
29patchfiles          gpgwrap-makefile-usingtherightcompiler.patch \
30                    keyanalyze-makefile-usingtherightcompiler.patch
31
32use_configure       no
33
34depends_build       port:automake17 \
35                    port:autoconf
36
37perl5.branches      5.24
38
39depends_lib         port:perl${perl5.major} \
40                    port:p${perl5.major}-class-methodmaker \
41                    port:p${perl5.major}-mailtools \
42                    port:p${perl5.major}-term-readkey \
43                    port:p${perl5.major}-gnupg-interface \
44                    port:p${perl5.major}-text-iconv \
45                    port:p${perl5.major}-text-template \
46                    port:p${perl5.major}-mime-tools \
47                    port:p${perl5.major}-net-idn-encode \
48                    port:qprint
49depends_run         port:gnupg \
50                    port:dialog \
51                    port:python27
52
53variant universal   {}
54
55build.env-append    CC=${configure.cc} \
56                    CFLAGS="${configure.cflags} [get_canonical_archflags]"
57
58pre-build {
59    reinplace "s|/usr/bin/perl|#!${perl5.bin}|g" \
60        ${worksrcpath}/caff/caff \
61        ${worksrcpath}/caff/pgp-clean \
62        ${worksrcpath}/caff/pgp-fixkey \
63        ${worksrcpath}/gpg-key2latex/gpg-key2latex \
64        ${worksrcpath}/gpg-key2ps/gpg-key2ps \
65        ${worksrcpath}/gpgdir/gpgdir \
66        ${worksrcpath}/gpgdir/install.pl \
67        ${worksrcpath}/gpglist/gpglist \
68        ${worksrcpath}/gpgsigs/gpgsigs \
69        ${worksrcpath}/keyanalyze/scripts/htmlify_report \
70        ${worksrcpath}/keyanalyze/scripts/top50.pl \
71        ${worksrcpath}/keyanalyze/willy/cosign \
72        ${worksrcpath}/keyanalyze/willy/msd2html \
73        ${worksrcpath}/keyanalyze/willy/non-recip \
74        ${worksrcpath}/keyanalyze/willy/party-table.pl \
75        ${worksrcpath}/keyanalyze/willy/unsign \
76        ${worksrcpath}/keylookup/keylookup \
77        ${worksrcpath}/sig2dot/sig2dot \
78        ${worksrcpath}/springgraph/springgraph
79    reinplace "s|/usr/bin/python|${prefix}/bin/python2.7|g" \
80        ${worksrcpath}/keyart/keyart \
81        ${worksrcpath}/gpgparticipants/gpgparticipants-prefill
82}
83
84platform macosx {
85    post-patch {
86        reinplace "s!getent.*$!dscl . -read /Users/\$USER \| awk \'\{print \$2\}\'\`!" ${worksrcpath}/gpg-mailkeys/gpg-mailkeys
87    }
88}
89
90destroot {
91        # install executables
92        xinstall -m 0755 \
93            ${worksrcpath}/caff/caff \
94            ${worksrcpath}/caff/pgp-clean \
95            ${worksrcpath}/caff/pgp-fixkey \
96            ${worksrcpath}/gpg-key2ps/gpg-key2ps \
97            ${worksrcpath}/gpg-mailkeys/gpg-mailkeys \
98            ${worksrcpath}/gpglist/gpglist \
99            ${worksrcpath}/gpgparticipants/gpgparticipants \
100            ${worksrcpath}/gpgparticipants/gpgparticipants-prefill \
101            ${worksrcpath}/gpgsigs/gpgsigs \
102            ${worksrcpath}/gpgwrap/bin/gpgwrap \
103            ${worksrcpath}/keyanalyze/keyanalyze \
104            ${worksrcpath}/keyanalyze/pgpring/pgpring \
105            ${worksrcpath}/keyanalyze/process_keys \
106            ${worksrcpath}/keyart/keyart \
107            ${worksrcpath}/keylookup/keylookup \
108            ${worksrcpath}/sig2dot/sig2dot \
109            ${worksrcpath}/springgraph/springgraph \
110            ${destroot}${prefix}/bin
111        # install manpages
112        xinstall -m 0644 \
113            ${worksrcpath}/caff/caff.1 \
114            ${worksrcpath}/caff/pgp-clean.1 \
115            ${worksrcpath}/caff/pgp-fixkey.1 \
116            ${worksrcpath}/gpg-key2ps/gpg-key2ps.1 \
117            ${worksrcpath}/gpg-mailkeys/gpg-mailkeys.1 \
118            ${worksrcpath}/gpglist/gpglist.1 \
119            ${worksrcpath}/gpgparticipants/gpgparticipants-prefill.1 \
120            ${worksrcpath}/gpgparticipants/gpgparticipants.1 \
121            ${worksrcpath}/gpgsigs/gpgsigs.1 \
122            ${worksrcpath}/gpgwrap/doc/gpgwrap.1 \
123            ${worksrcpath}/keyanalyze/keyanalyze.1 \
124            ${worksrcpath}/keyanalyze/pgpring/pgpring.1 \
125            ${worksrcpath}/keyanalyze/process_keys.1 \
126            ${worksrcpath}/keyart/doc/keyart.1 \
127            ${worksrcpath}/keylookup/keylookup.1 \
128            ${worksrcpath}/sig2dot/sig2dot.1 \
129            ${worksrcpath}/springgraph/springgraph.1 \
130            ${destroot}${prefix}/share/man/man1
131        # install example configurations and scripts in share/doc
132        xinstall -d -m 0755 \
133            ${destroot}${prefix}/share/doc/${name} \
134            ${destroot}${prefix}/share/doc/${name}/examples \
135            ${destroot}${prefix}/share/doc/${name}/examples/keyanalyze \
136            ${destroot}${prefix}/share/doc/${name}/examples/keyart
137        xinstall -m 0644 \
138            ${worksrcpath}/caff/caffrc.sample \
139            ${worksrcpath}/gpg-mailkeys/example.gpg-mailkeysrc \
140            ${destroot}${prefix}/share/doc/${name}
141        copy \
142            ${worksrcpath}/keyanalyze/scripts \
143            ${worksrcpath}/keyanalyze/willy \
144            ${worksrcpath}/keyanalyze/analyze.sh \
145            ${destroot}${prefix}/share/doc/${name}/examples/keyanalyze
146        copy \
147            ${worksrcpath}/keyart/doc/druken-bishop.txt \
148            ${worksrcpath}/keyart/doc/examples \
149            ${worksrcpath}/keyart/doc/party-worksheet \
150            ${destroot}${prefix}/share/doc/${name}/examples/keyart
151}
152
153notes               "Some example configuration files have been installed to ${prefix}/share/doc/signing-party."
154
155livecheck.type      regex
156livecheck.url       http://packages.debian.org/unstable/misc/${name}
157livecheck.regex     ${name} .(\[0-9.\]+)
Note: See TracBrowser for help on using the repository browser.