Files
macports-ports/php/php-mailparse/Portfile
2026-03-15 16:52:42 -04:00

65 lines
2.2 KiB
Tcl

# -*- 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
PortSystem 1.0
PortGroup php 1.1
name php-mailparse
license PHP
categories php mail devel
maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh BjarneDMat}
# Compatible with PHP 8.4 as of 3.1.8
php.branches 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5
php.pecl yes
# This extension must load after the mbstring extension.
php.extension_ini ~${php.extension_ini}
if {[vercmp ${php.branch} >= 7.3]} {
version 3.1.9
revision 0
checksums rmd160 c7a864da36dc8c49bb6c7cdc95bdb64bc43ca0f8 \
sha256 ecb3d3c9dc9f7ce034182d478b724ac3cb02098efc69a39c03534f0b1920922b \
size 947138
} elseif {[vercmp ${php.branch} >= 7.0]} {
version 3.1.3
revision 1
checksums rmd160 e8c952fca8989fbaf8a3d0131fbee24877399a80 \
sha256 8659ca62dc9a4d7d15f07f97a0e2142cb58251c8e772cd36669ec740d2292471 \
size 943785
} else {
version 2.1.6
revision 2
checksums rmd160 68b2fedcacda2850c10e3551131502429b8daee1 \
sha256 73705197d2b2ee782efa5477eb2a21432f592c2cb05a72c3a037bbe39e02b5cc \
size 36538
}
description Email message manipulation
long_description \
Mailparse is an extension for parsing and working with email messages. \
It can deal with rfc822 and rfc2045 (MIME) compliant messages.
if {${name} ne ${subport}} {
depends_build port:autoconf port:${php}-mbstring
depends_run port:${php}-mbstring
configure.cppflags-append -DHAVE_MBSTRING
use_parallel_build yes
test.run yes
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} CREDITS ${destroot}${docdir}
if {[vercmp ${version} >= 3.0.3]} {
xinstall -m 0644 -W ${worksrcpath} README.md ${destroot}${docdir}
} else {
xinstall -m 0644 -W ${worksrcpath} README ${destroot}${docdir}
}
}
}