<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/c35d54969280ff8e54741d637d131e30b788ba6c">https://github.com/macports/macports-ports/commit/c35d54969280ff8e54741d637d131e30b788ba6c</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 c35d549 infobot: Include ${prefix}/bin/infobot in destroot
</span>c35d549 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit c35d54969280ff8e54741d637d131e30b788ba6c
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Jun 23 13:49:52 2017 -0500
<span style='display:block; white-space:pre;color:#404040;'> infobot: Include ${prefix}/bin/infobot in destroot
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also indicate supported_archs noarch.
</span>---
irc/infobot/Portfile | 29 ++++++++++++++++++++++-------
irc/infobot/files/infobot.in | 2 ++
2 files changed, 24 insertions(+), 7 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/irc/infobot/Portfile b/irc/infobot/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index da61459..573c214 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/irc/infobot/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/irc/infobot/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -2,9 +2,12 @@ PortSystem 1.0
</span>
name infobot
version 0.45.3
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories irc
license {Artistic-1 GPL}
maintainers nomaintainer
<span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> description IRC Bot written in Perl with a rabid AI
long_description The infobot connects to an Internet Relay Chat (IRC) server, joins \
some channels (maybe), and begins accumulating factoids. To run one, \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,10 +20,22 @@ master_sites ${homepage}src/
</span> checksums md5 897a005182928613eadd30c267ce9c5b
use_configure no
build {}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot { xinstall -m 755 -d ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set script [open "${prefix}/bin/infobot" w 0755]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts $script "#!/bin/sh"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- puts $script "cd ${prefix}/share/infobot && perl infobot"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- close $script
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 755 -d ${destroot}${prefix}/share/infobot
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- file copy {*}[glob ${worksrcpath}/*] ${destroot}${prefix}/share/infobot }
</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 ${filespath}/infobot.in ${destroot}${prefix}/bin/infobot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|@PREFIX@|${prefix}|g" ${destroot}${prefix}/bin/infobot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d ${destroot}${prefix}/share
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath} ${destroot}${prefix}/share/infobot
</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;'>+pre-activate {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # infobot @0.45.3_0 installed files outside the destroot; remove them if found
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach file {bin/infobot} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set filepath ${prefix}/${file}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {[catch {delete ${filepath}}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ui_warn "Cannot delete ${filepath}; please remove it manually"
</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;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/irc/infobot/files/infobot.in b/irc/infobot/files/infobot.in
</span>new file mode 100755
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7741c5a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/irc/infobot/files/infobot.in
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,2 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+cd @PREFIX@/share/infobot && perl infobot
</span></pre><pre style='margin:0'>
</pre>