source: trunk/dports/security/tinyca2/Portfile

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

tinyca2: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 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 151844 2016-08-23 12:13:37Z ryandesign@macports.org $
3PortSystem          1.0
4PortGroup           perl5 1.0
5
6name                tinyca2
7version             0.7.5
8revision            6
9perl5.branches      5.24
10license             GPL
11categories          security net
12maintainers         nomaintainer
13description         GUI Certificate Authority tool.
14long_description    TinyCA is a simple graphical user interface for \
15                    managing a small CA (Certification Authority). \
16                    TinyCA works as a frontend for openssl.
17platforms           darwin
18homepage            http://www.wikipedia.org/wiki/TinyCA
19master_sites        macports_distfiles:${name}
20
21checksums           rmd160  db384b635030164b0c32a4a814c170002105a375 \
22                    sha256  4227af38fee310741da29ff0681bba55f547548d98b6a5e61b3f768588de47dd
23
24depends_lib         path:lib/libssl.dylib:openssl \
25                    port:zip \
26                    port:gettext \
27                    port:p${perl5.major}-gtk2 \
28                    port:p${perl5.major}-locale-gettext
29
30patchfiles          patch-tinyca2
31
32use_configure       no
33
34build.dir           ${worksrcpath}/po
35build.target        ""
36
37post-patch {
38    reinplace s|@SHARE@|${prefix}/share|g ${worksrcpath}/tinyca2
39    reinplace s|@OPENSSL@|${prefix}/bin/openssl|g ${worksrcpath}/tinyca2
40    reinplace s|@ZIP@|${prefix}/bin/zip|g ${worksrcpath}/tinyca2
41    reinplace s|@TAR@|/usr/bin/tar|g ${worksrcpath}/tinyca2
42    reinplace s|/usr/bin/perl|${perl5.bin}|g ${worksrcpath}/tinyca2
43}
44
45pre-build {
46    # Ensure that the .mo files are generated
47    system "touch ${worksrcpath}/po/*.po"
48}
49
50destroot {
51    set sharedir ${destroot}${prefix}/share/tinyca2
52    file mkdir ${sharedir}
53    file copy -force ${worksrcpath}/tinyca2 ${destroot}${prefix}/bin/
54    file copy -force ${worksrcpath}/lib ${sharedir}
55    file copy -force ${worksrcpath}/templates ${sharedir}
56    file copy -force ${worksrcpath}/locale/ ${destroot}${prefix}/share/locale
57    foreach file [exec find ${destroot}${prefix} -name CVS -type d] {
58        file delete -force ${file}
59    }
60}
61
62# no longer maintained upstream, only mirrored by macports
63livecheck.type      none
Note: See TracBrowser for help on using the repository browser.