<pre style='margin:0'>
Frank Schima (mf2k) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/51c700870f0490118e5a4261d6d65bcbef9f807a">https://github.com/macports/macports-ports/commit/51c700870f0490118e5a4261d6d65bcbef9f807a</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 51c7008 cabal: Submission of Haskell Cabal: Common Architecture for Building Applications
</span>51c7008 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 51c700870f0490118e5a4261d6d65bcbef9f807a
</span>Author: Steven Thomas Smith <s.t.smith@ieee.org>
AuthorDate: Sun Jun 30 12:18:06 2019 -0400
<span style='display:block; white-space:pre;color:#404040;'> cabal: Submission of Haskell Cabal: Common Architecture for Building Applications
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * Bootsrapped build of cabal
</span>---
lang/cabal/Portfile | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/cabal/Portfile b/lang/cabal/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f8e9ca4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/cabal/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,89 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name cabal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 3.0.0.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories lang haskell
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Haskell Cabal: Common Architecture for Building Applications and Libraries
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Cabal is a system for building and packaging Haskell libraries and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ programs. It defines a common interface for package authors and \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distributors to easily build their applications in a portable \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ way. Cabal is part of a larger infrastructure for distributing, \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ organizing, and cataloging Haskell libraries and programs.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.haskell.org/cabal
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# Bootstrapped cabal is the default build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant prebuilt \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ description {Do not bootstrap cabal; install the pre-built binary.} {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://downloads.haskell.org/~${name}/${name}-install-${version}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${name}-install-${version}-x86_64-apple-darwin17.7.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.suffix .tar.xz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums [lindex ${distfiles} end] \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 9b5fbf25fe1f9473766a3466aaa9d66d66cfb884 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 d4857e068560515e4cbb0e8ca124c370e07892f2a28804d87152834e5fe2b845 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 5022564
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.only [lindex ${distfiles} end]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs x86_64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:ghc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# the PATH environment must provide /usr/bin/clang, not ${prefix}/bin/gcc,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# along with bootstrap path
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PATH=/usr/bin:${workpath}:$env(PATH) \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PREFIX=${prefix} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC=${configure.cc}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# cabal must bootstrap itself
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+pre-build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # binary extract to ${workpath}/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -W ${workpath} -d ./bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -W ${workpath} ./${name} ./bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if { [variant_isset "prebuilt"] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${name}-install-${version}.tar.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${name}-install-${version}.tar.gz \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rmd160 7217d6334bdf98f18341fb0aff8208b20717f695 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 a432a7853afe96c0fd80f434bd80274601331d8c46b628cd19a0d8e96212aaf1 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 654045
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extract.only-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ${name}-install-${version}.tar.gz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ worksrcdir ${name}-install-${version}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # build cabal and overwrite ${workpath}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # the PATH environment must provide /usr/bin/clang, not ${prefix}/bin/gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${worksrcpath} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "${worksrcpath}/bootstrap.sh"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${workpath}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -W ${worksrcpath}/dist/build/${name} ${name} ${workpath}/bin/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -d ${destroot}${prefix}/share/man/man1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0644 -W ${worksrcpath}/dist/build/${name} ${name}.1 ${destroot}${prefix}/share/man/man1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 0755 -W ${workpath} ./bin/${name} ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span></pre><pre style='margin:0'>
</pre>