Ticket #41292: Portfile.2

File Portfile.2, 1.7 KB (added by Serge3leo (Serguei E. Leontiev), 9 years ago)

Last vmime trunk commit 9df44078b87785f114689fc0b12e084aba903df0 of 8 may 2015 successfully builds on OS X 10.10 Yosemite

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 120565 2014-06-01 16:53:49Z cal@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7name                libvmime
8version             0.9.2.s20150508
9revision            1
10categories          mail devel
11platforms           darwin
12maintainers         nomaintainer
13license             GPL-2+
14
15description         library for dealing with RFC-822, 2822, MIME messages
16
17long_description    VMime is a C++ class library for parsing, generating, or \
18                    editing Internet RFC-822, 2822 and MIME messages. It is \
19                    designed to provide a fast and an easy way to manipulate \
20                    Internet mail messages.
21
22homepage            http://www.vmime.org/
23fetch.type          git
24git.url             https://github.com/kisli/vmime.git
25git.branch          9df44078b87785f114689fc0b12e084aba903df0
26
27depends_build       port:doxygen \
28                    port:cppunit
29
30depends_lib         port:gnutls \
31                    port:libgsasl
32
33configure.args-append ${worksrcpath}
34    # for test.run disable rpath
35configure.args-append -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF
36configure.args-append -DVMIME_BUILD_DOCUMENTATION:BOOL=YES
37configure.args-append -DVMIME_BUILD_TESTS:BOOL=YES
38
39configure.dir     ${worksrcpath}/build
40build.dir         ${configure.dir}
41build.post_args   doc
42test.run          yes
43
44post-destroot {
45    system "install -d -m 0755 ${destroot}${prefix}/share/doc/${name}/html"
46    system "find ${configure.dir}/doc/html -type f -exec \
47             install -m 0444 {} ${destroot}${prefix}/share/doc/${name}/html \\;"
48}