aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/babeld.rb
blob: 63a27bca3c7c30d9071989641ed28cceb0eae10c (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
class Babeld < Formula
  homepage "http://www.pps.univ-paris-diderot.fr/~jch/software/babel/"
  url "http://www.pps.univ-paris-diderot.fr/~jch/software/files/babeld-1.5.1.tar.gz"
  sha1 "6ff3a7685e62034df83b143a36a4960b2e4d89b9"
  head "https://github.com/jech/babeld.git"

  bottle do
    cellar :any
    sha1 "a965f70b84f8fea7ce7a7f92252e61d01a6b9e7b" => :yosemite
    sha1 "22262a12d06cf83d35f351a49d6af7e40e7f554d" => :mavericks
    sha1 "69e5c32092ccfdaeaff3615fbbaf15e41e327e41" => :mountain_lion
  end

  # https://lists.alioth.debian.org/pipermail/babel-users/2015-January/001826.html
  patch :DATA

  def install
    system "make", "LDLIBS=''"
    system "make", "install", "PREFIX=#{prefix}"
  end

  def caveats; <<-EOS.undent
    Due to changing network interfaces, this tool
    requires the usage of `sudo` at runtime.
    EOS
  end
end

__END__
diff --git a/Makefile b/Makefile
index 7ad8b78..39c415c 100644
--- a/Makefile
+++ b/Makefile
@@ -38,12 +38,12 @@ install.minimal: babeld
 	cp -f babeld $(TARGET)$(PREFIX)/bin
 
 install: install.minimal all
-	mkdir -p $(TARGET)$(PREFIX)/man/man8
-	cp -f babeld.man $(TARGET)$(PREFIX)/man/man8/babeld.8
+	mkdir -p $(TARGET)$(PREFIX)/share/man/man8
+	cp -f babeld.man $(TARGET)$(PREFIX)/share/man/man8/babeld.8
 
 uninstall:
 	-rm -f $(TARGET)$(PREFIX)/bin/babeld
-	-rm -f $(TARGET)$(PREFIX)/man/man8/babeld.8
+	-rm -f $(TARGET)$(PREFIX)/share/man/man8/babeld.8
 
 clean:
 	-rm -f babeld babeld.html *.o *~ core TAGS gmon.out