source: trunk/dports/security/tinyca2/Portfile @ 35353

Last change on this file since 35353 was 35353, checked in by landonf@…, 12 years ago

Update to 0.7.5 and fix the build on Leopard

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 35353 2008-03-25 18:13:44Z landonf@macports.org $
2PortSystem      1.0
3
4name                    tinyca2
5version                 0.7.5
6categories              security net
7maintainers             landonf@macports.org
8description             GUI Certificate Authority tool.
9long_description        TinyCA is a simple graphical user interface for \
10                        managing a small CA (Certification Authority). \
11                        TinyCA works as a frontend for openssl.
12platforms               darwin
13homepage                http://tinyca.sm-zone.net/
14master_sites            ${homepage}
15checksums               md5 d3b547305e89785fbe8262be244a2321 \
16                        sha1 841355ab8478a7e7b1a3d6bba4dd31293ae11cc4
17depends_lib             port:openssl port:zip \
18                        port:gettext port:p5-gtk2 \
19                        port:p5-locale-gettext
20
21patchfiles              patch-tinyca2
22
23use_configure           no
24
25build.dir               ${worksrcpath}/po
26build.target            ""
27
28post-patch {
29        reinplace s|@SHARE@|${prefix}/share|g ${worksrcpath}/tinyca2
30        reinplace s|@OPENSSL@|${prefix}/bin/openssl|g ${worksrcpath}/tinyca2
31        reinplace s|@ZIP@|${prefix}/bin/zip|g ${worksrcpath}/tinyca2
32        reinplace s|@TAR@|/usr/bin/tar|g ${worksrcpath}/tinyca2
33        reinplace s|/usr/bin/perl|${prefix}/bin/perl|g ${worksrcpath}/tinyca2
34}
35
36pre-build {
37        # Ensure that the .mo files are generated
38        system "touch ${worksrcpath}/po/*.po"
39}
40
41destroot {
42        set sharedir ${destroot}${prefix}/share/tinyca2
43        file mkdir ${sharedir}
44        file copy -force ${worksrcpath}/tinyca2 ${destroot}${prefix}/bin/
45        file copy -force ${worksrcpath}/lib ${sharedir}
46        file copy -force ${worksrcpath}/templates ${sharedir}
47        file copy -force ${worksrcpath}/locale/ ${destroot}${prefix}/share/locale
48        foreach file [exec find ${destroot}${prefix} -name CVS -type d] {
49                file delete -force ${file}
50        }
51}
Note: See TracBrowser for help on using the repository browser.