aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/calcurse.rb
blob: 3f0424aa9667b8ae8a9e619429a78c0bb67a3b09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require 'formula'

class Calcurse < Formula
  url 'http://culot.org/cgi-bin/get.cgi?calcurse-2.7.tar.gz'
  homepage 'http://culot.org/calcurse/'
  md5 'eddfae36370fd89532149fe80c312e1e'

  depends_on 'gettext'

  def patches
    DATA
  end

  def install
    ENV.append 'CFLAGS', "-I#{include} -fnested-functions"
    ENV.append 'LDFLAGS', "-lintl"
    ENV.O3
    system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--mandir=#{man}"
    system "make"
    system "make install"
  end

end
__END__
diff --git a/configure b/configure
index 69d2800..175871e 100755
--- a/configure
+++ b/configure
@@ -1488,7 +1488,8 @@ else
   if test -f "$ac_aux_dir/mkinstalldirs"; then
     mkdir_p='$(mkinstalldirs)'
   else
-    mkdir_p='$(SHELL) $(install_sh) -d'
+    #mkdir_p='$(SHELL) $(install_sh) -d'
+    mkdir_p='$(install_sh) -d'
   fi
 fi
 
@@ -1706,7 +1707,8 @@ else
 fi
 
 fi
-INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
+#INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
+INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
 # We need awk for the "check" target.  The system "awk" is bad on
 # some platforms.