2010-03-16 04:25:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Alpine < Formula
|
2010-03-16 04:25:50 +00:00
|
|
|
homepage 'http://www.washington.edu/alpine/'
|
2012-03-15 00:57:44 +00:00
|
|
|
url 'ftp://ftp.cac.washington.edu/alpine/alpine-2.00.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '363b3aa5d3eb1319e168639fbbc42b033b16f15b'
|
2010-03-16 04:25:50 +00:00
|
|
|
|
2011-04-08 18:16:37 +00:00
|
|
|
def patches
|
2013-09-11 05:38:36 +00:00
|
|
|
p = []
|
|
|
|
# Upstream builds are broken on Snow Leopard due to a hack put in
|
|
|
|
# for prior versions of OS X. See:
|
|
|
|
# http://trac.macports.org/ticket/20971
|
|
|
|
p << "https://trac.macports.org/export/89747/trunk/dports/mail/alpine/files/alpine-osx-10.6.patch" if MacOS.version >= :snow_leopard
|
|
|
|
# Fails to build against Tcl 8.6; reported upstream:
|
|
|
|
# http://mailman2.u.washington.edu/pipermail/alpine-info/2013-September/005291.html
|
|
|
|
p << DATA
|
2013-09-15 16:39:15 +00:00
|
|
|
end
|
2010-03-16 04:25:50 +00:00
|
|
|
|
2011-04-08 18:16:37 +00:00
|
|
|
def install
|
2010-03-16 04:25:50 +00:00
|
|
|
ENV.j1
|
2011-04-08 18:16:37 +00:00
|
|
|
system "./configure", "--disable-debug",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--with-ssl-include-dir=/usr/include/openssl"
|
2010-03-16 04:25:50 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
2013-09-11 05:38:36 +00:00
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/web/src/alpined.d/alpined.c b/web/src/alpined.d/alpined.c
|
|
|
|
index 98c5a63..d2c63b5 100644
|
|
|
|
--- a/web/src/alpined.d/alpined.c
|
|
|
|
+++ b/web/src/alpined.d/alpined.c
|
|
|
|
@@ -751,10 +751,10 @@ main(int argc, char *argv[])
|
|
|
|
}
|
|
|
|
|
|
|
|
switch(Tcl_Eval(interp, &buf[co])){
|
|
|
|
- case TCL_OK : peReturn(cs, "OK", interp->result); break;
|
|
|
|
- case TCL_ERROR : peReturn(cs, "ERROR", interp->result); break;
|
|
|
|
- case TCL_BREAK : peReturn(cs, "BREAK", interp->result); break;
|
|
|
|
- case TCL_RETURN : peReturn(cs, "RETURN", interp->result); break;
|
|
|
|
+ case TCL_OK : peReturn(cs, "OK", Tcl_GetStringResult(interp)); break;
|
|
|
|
+ case TCL_ERROR : peReturn(cs, "ERROR", Tcl_GetStringResult(interp)); break;
|
|
|
|
+ case TCL_BREAK : peReturn(cs, "BREAK", Tcl_GetStringResult(interp)); break;
|
|
|
|
+ case TCL_RETURN : peReturn(cs, "RETURN", Tcl_GetStringResult(interp)); break;
|
|
|
|
default : peReturn(cs, "BOGUS", "eval returned unexpected value"); break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|