aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorBaptiste Fontaine2013-09-28 10:31:30 +0200
committerAdam Vandenberg2013-10-01 22:37:26 -0700
commit3a156cb18bda80ca7379e24c0dbc9f3ee416703e (patch)
tree072330b408aaa2ddd5487bd971acf9f6c670561a /Library
parenta997d9eda0265af2637cadf92c3f5dc9786c0afa (diff)
downloadhomebrew-3a156cb18bda80ca7379e24c0dbc9f3ee416703e.tar.bz2
ahcpd 0.53
Closes #22904. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ahcpd.rb42
1 files changed, 42 insertions, 0 deletions
diff --git a/Library/Formula/ahcpd.rb b/Library/Formula/ahcpd.rb
new file mode 100644
index 000000000..928550199
--- /dev/null
+++ b/Library/Formula/ahcpd.rb
@@ -0,0 +1,42 @@
+require 'formula'
+
+class Ahcpd < Formula
+ homepage 'http://www.pps.univ-paris-diderot.fr/~jch/software/ahcp/'
+ url 'http://www.pps.univ-paris-diderot.fr/~jch/software/files/ahcpd-0.53.tar.gz'
+ sha1 '0d8ad31785357758abeb371f0431dbe08718af92'
+
+ def patches
+ # fixes man path for homebrew
+ DATA
+ end
+
+ def install
+ system "make", "LDLIBS=''"
+ system "make", "install", "PREFIX=", "TARGET=#{prefix}"
+ end
+end
+
+__END__
+diff --git a/Makefile b/Makefile
+index e52eeb7..28e1043 100644
+--- a/Makefile
++++ b/Makefile
+@@ -40,8 +40,8 @@ install.minimal: all
+ chmod +x $(TARGET)/etc/ahcp/ahcp-config.sh
+
+ install: all install.minimal
+- mkdir -p $(TARGET)$(PREFIX)/man/man8/
+- cp -f ahcpd.man $(TARGET)$(PREFIX)/man/man8/ahcpd.8
++ mkdir -p $(TARGET)$(PREFIX)/share/man/man8/
++ cp -f ahcpd.man $(TARGET)$(PREFIX)/share/man/man8/ahcpd.8
+
+ .PHONY: uninstall
+
+@@ -49,7 +49,7 @@ uninstall:
+ -rm -f $(TARGET)$(PREFIX)/bin/ahcpd
+ -rm -f $(TARGET)$(PREFIX)/bin/ahcp-config.sh
+ -rm -f $(TARGET)$(PREFIX)/bin/ahcp-dummy-config.sh
+- -rm -f $(TARGET)$(PREFIX)/man/man8/ahcpd.8
++ -rm -f $(TARGET)$(PREFIX)/share/man/man8/ahcpd.8
+
+ .PHONY: clean