Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (42 sloc) 1.768 kb
require 'formula'
require 'etc'
class Slashem < Formula
homepage 'http://slashem.sourceforge.net'
url 'https://downloads.sourceforge.net/project/slashem/slashem-source/0.0.8E0F1/se008e0f1.tar.gz'
sha1 'eec6615f8ed04691a996ef62a7305f6812e6ae26'
version "0.0.8E0F1"
skip_clean 'slashemdir/save'
depends_on 'pkg-config' => :build
# Fixes compilation error in OS X:
# http://sourceforge.net/tracker/index.php?func=detail&aid=1644971&group_id=9746&atid=109746
patch :DATA
# Fixes user check on older versions of OS X: http://sourceforge.net/p/slashem/bugs/895/
# Fixed upstream: http://slashem.cvs.sourceforge.net/viewvc/slashem/slashem/configure?r1=1.13&r2=1.14&view=patch
patch :p0 do
url "https://gist.githubusercontent.com/mistydemeo/76dd291c77a509216418/raw/65a41804b7d7e1ae6ab6030bde88f7d969c955c3/slashem-configure.patch"
sha1 "b05bab5b2f93ca598d9c9c0ad935374a150c4e9d"
end
def install
ENV.j1
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-mandir=#{man}",
"--with-group=admin",
"--with-owner=#{Etc.getpwuid.name}",
"--enable-wizmode=#{Etc.getpwuid.name}"
system "make install"
man6.install 'doc/slashem.6'
man6.install 'doc/recover.6'
end
end
__END__
diff --git a/win/tty/termcap.c b/win/tty/termcap.c
index c3bdf26..8d00b11 100644
--- a/win/tty/termcap.c
+++ b/win/tty/termcap.c
@@ -960,7 +960,7 @@ cl_eos() /* free after Robert Viduya */
#include <curses.h>
-#if !defined(LINUX) && !defined(__FreeBSD__)
+#if !defined(LINUX) && !defined(__FreeBSD__) && !defined(__APPLE__)
extern char *tparm();
#endif
Jump to Line
Something went wrong with that request. Please try again.