<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5594066d265b0bc099c779fecac57f6f14dc9297">https://github.com/macports/macports-ports/commit/5594066d265b0bc099c779fecac57f6f14dc9297</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5594066d265b0bc099c779fecac57f6f14dc9297
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Mon Dec 23 15:08:31 2019 -0500
<span style='display:block; white-space:pre;color:#404040;'> hlint: Bugfix version number in binary
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * Fix version number in Paths_hlint.hs
</span><span style='display:block; white-space:pre;color:#404040;'> * Fix ${macportsuser}
</span><span style='display:block; white-space:pre;color:#404040;'> * Minor Portfile fixes
</span>---
devel/hlint/Portfile | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/hlint/Portfile b/devel/hlint/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a0e23bb..8d5cc25 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/hlint/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/hlint/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,17 +5,18 @@ PortGroup haskell_cabal 1.0
</span>
name hlint
version 2.2.2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel haskell
maintainers nomaintainer
license GPL-3
platforms macosx
homepage https://www.haskell.org/alex/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-description A a tool for suggesting possible improvements to Haskell code.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- HLint is a tool for suggesting possible improvements to Haskell code. \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- These suggestions include ideas such as using alternative functions, \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- simplifying code and spotting redundancies.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description A tool for suggesting possible improvements to Haskell code.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description HLint is a tool for suggesting possible\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ improvements to Haskell code. These suggestions\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include ideas such as using alternative functions,\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ simplifying code and spotting redundancies.
</span>
master_sites https://hackage.haskell.org/package/${name}-${version}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,8 +28,13 @@ checksums rmd160 d2e7ae8bc0a53976ed1906b3649c8388911ed655 \
</span> set hlint_datadir share/${name}
post-extract {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -o macports -m 0755 -d \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/${hlint_datadir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[geteuid] == 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -o ${macportsuser} -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/${hlint_datadir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${destroot}${prefix}/${hlint_datadir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span>
# Fix for cabal data-files hardcoded path in binary
# See:
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -43,6 +49,8 @@ post-extract {
</span> ${worksrcpath}/src/Paths_${name}.hs
reinplace "s|@NAME@|${name}|g" \
${worksrcpath}/src/Paths_${name}.hs
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace -E "s|(Version\[\[:space:\]\]+)\\\[\[\[:digit:\]\]+(,\[\[:digit:\]\]+){1,4}\\\]|\\1\[[join [split ${version} .] ,]\]|" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${worksrcpath}/src/Paths_${name}.hs
</span> }
post-destroot {
</pre><pre style='margin:0'>
</pre>