<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/738860d40f685d0ae0f8f3bc7fdd9a97ad5fbf28">https://github.com/macports/macports-ports/commit/738860d40f685d0ae0f8f3bc7fdd9a97ad5fbf28</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 738860d40f685d0ae0f8f3bc7fdd9a97ad5fbf28
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sun Mar 12 09:09:20 2023 -0700
<span style='display:block; white-space:pre;color:#404040;'> highlight: use features from makefile PG
</span>---
textproc/highlight/Portfile | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/highlight/Portfile b/textproc/highlight/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index e9732d80e91..d17ed8ea69c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/highlight/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/highlight/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -12,7 +12,6 @@ checksums rmd160 c0a578058438adcc078ecf3929dffd7394af53ad \
</span> size 1482821
categories textproc devel
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> license GPL-3
maintainers {i0ntempest @i0ntempest} openmaintainer
description converts source code to formatted text with syntax highlighting
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,23 +32,16 @@ post-patch {
</span> reinplace "s|/usr/share/|${prefix}/share/|g" ${worksrcpath}/man/highlight.1
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-use_configure no
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> build.target cli lib
compiler.cxx_standard 2011
<span style='display:block; white-space:pre;background:#ffe0e0;'>-if {[string match *clang* ${configure.cxx}] && ${configure.cxx_stdlib} ne ""} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.ldflags-append -stdlib=${configure.cxx_stdlib}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span> configure.cxxflags-append -std=c++11
# Yes, this project's makefile uses CFLAGS to compile its C++ code.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.args CXX="${configure.cxx}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PREFIX="${prefix}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args CFLAGS="\$CPPFLAGS \$CXXFLAGS" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LDFLAGS="\$LDFLAGS \$CXXFLAGS"
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot.args PREFIX="${prefix}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+makefile.override PREFIX
</span>
post-destroot {
file rename ${destroot}${prefix}/etc/highlight/filetypes.conf \
</pre><pre style='margin:0'>
</pre>