mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
69 lines
2.4 KiB
Tcl
69 lines
2.4 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
|
|
|
|
# BYTEORDER doesn't get defined during a normal universal build.
|
|
PortGroup muniversal 1.0
|
|
|
|
name expat
|
|
version 2.8.2
|
|
revision 0
|
|
checksums rmd160 60d9b52208da31a3aff01c63bbc7f04cc2a75b76 \
|
|
sha256 69e7f52417d85b1c2b7fe855e176eec55d0b2d7d92d691372d833a1c7df7923b \
|
|
size 660292
|
|
|
|
categories textproc devel
|
|
platforms darwin freebsd
|
|
maintainers {ryandesign @ryandesign} openmaintainer
|
|
license MIT
|
|
|
|
description XML 1.0 parser written in C
|
|
|
|
long_description Expat is an XML parser library written in C. It is a \
|
|
stream-oriented parser in which an application \
|
|
registers handlers for things the parser might find \
|
|
in the XML document (like start tags).
|
|
|
|
homepage http://www.libexpat.org/
|
|
master_sites sourceforge:project/${name}/${name}/${version}
|
|
# Don't use a compression format that necessitates a dependency on another
|
|
# port since that causes a dependency cycle on older OS versions since
|
|
# e.g. clang-3.4 depends on python27-bootstrap which depends on expat.
|
|
use_bzip2 yes
|
|
|
|
patchfiles O_CLOEXEC.patch
|
|
|
|
if {${os.platform} eq "darwin" && ${os.major} < 11} {
|
|
# Having the stdlib set to libc++ on 10.6 causes a dependency on a
|
|
# macports-clang compiler to be added, which would be a dep cycle.
|
|
configure.cxx_stdlib
|
|
}
|
|
|
|
configure.args --without-docbook
|
|
|
|
if {${os.platform} eq "darwin" && ${os.major} < 13} {
|
|
configure.args-append \
|
|
--without-tests
|
|
} else {
|
|
compiler.cxx_standard \
|
|
2011
|
|
|
|
test.run yes
|
|
test.target check
|
|
}
|
|
|
|
post-destroot {
|
|
set docdir ${destroot}${prefix}/share/doc/${name}
|
|
set examplesdir ${destroot}${prefix}/share/examples/${name}
|
|
xinstall -m 0755 -d ${examplesdir} ${docdir}/html
|
|
|
|
xinstall -m 0644 -W ${worksrcpath} COPYING Changes README.md ${docdir}
|
|
xinstall -m 0644 {*}[glob -directory ${worksrcpath}/doc *.css *.html] \
|
|
${docdir}/html
|
|
|
|
xinstall -m 0644 {*}[glob -directory ${worksrcpath}/examples *.c] \
|
|
${examplesdir}
|
|
}
|
|
|
|
livecheck.regex /${name}-(\[0-9.\]+)[quotemeta ${extract.suffix}]
|