source: trunk/dports/php/php-mailparse/Portfile

Last change on this file was 153207, checked in by ryandesign@…, 10 months ago

php-mailparse: add php70-mailparse subport version 3.0.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.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 153207 2016-09-27 11:34:23Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       php 1.1
6
7name            php-mailparse
8license         PHP
9categories      php mail devel
10platforms       darwin
11maintainers     ryandesign openmaintainer
12
13php.branches    5.3 5.4 5.5 5.6 7.0
14php.pecl        yes
15
16if {[vercmp ${php.branch} 7] >= 0} {
17    version     3.0.1
18    revision    0
19    checksums   rmd160  d06d2d94f83b75065323fe03d204145490798348 \
20                sha256  42ee10de881a3739acf73ddef8800d80c3c57f70072f41bdb22e6e87ebc9cc62
21} else {
22    version     2.1.6
23    revision    1
24    checksums   rmd160  68b2fedcacda2850c10e3551131502429b8daee1 \
25                sha256  73705197d2b2ee782efa5477eb2a21432f592c2cb05a72c3a037bbe39e02b5cc
26}
27
28description     Email message manipulation
29
30long_description \
31    Mailparse is an extension for parsing and working with email messages. \
32    It can deal with rfc822 and rfc2045 (MIME) compliant messages.
33
34if {${name} ne ${subport}} {
35    depends_run         port:${php}-mbstring
36   
37    configure.cppflags-append -DHAVE_MBSTRING
38   
39    use_parallel_build  yes
40   
41    test.run            yes
42   
43    post-destroot {
44        set docdir ${prefix}/share/doc/${subport}
45        xinstall -d ${destroot}${docdir}
46        xinstall -m 644 -W ${worksrcpath} CREDITS README ${destroot}${docdir}
47    }
48}
Note: See TracBrowser for help on using the repository browser.