lsyncd: install man page in #{man1} not #{man}

also clean up the formula

Closes #8525.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2017-01-05 07:42:32 -08:00
parent 63d5540947
commit 875aef4f8c

View file

@ -3,6 +3,7 @@ class Lsyncd < Formula
homepage "https://github.com/axkibe/lsyncd" homepage "https://github.com/axkibe/lsyncd"
url "https://github.com/axkibe/lsyncd/archive/release-2.2.0.tar.gz" url "https://github.com/axkibe/lsyncd/archive/release-2.2.0.tar.gz"
sha256 "fb4b49c314846c251b624f9ee3129483c4b3d4d53c5263bb36086feb17f2e800" sha256 "fb4b49c314846c251b624f9ee3129483c4b3d4d53c5263bb36086feb17f2e800"
revision 1
bottle do bottle do
cellar :any cellar :any
@ -60,19 +61,10 @@ class Lsyncd < Formula
end end
def install def install
# XNU Headers inreplace "CMakeLists.txt", "DESTINATION man", "DESTINATION share/man/man1"
resource("xnu").stage buildpath/"xnu" resource("xnu").stage buildpath/"xnu"
system "cmake", ".", "-DWITH_INOTIFY=OFF", "-DWITH_FSEVENTS=ON",
args = std_cmake_args "-DXNU_DIR=#{buildpath}/xnu", *std_cmake_args
args << "-DWITH_INOTIFY=OFF"
args << "-DWITH_FSEVENTS=ON"
args << "-DXNU_DIR=#{buildpath/"xnu"}"
# DESTINATION man
inreplace "CMakeLists.txt", "DESTINATION man",
"DESTINATION #{man}"
system "cmake", ".", *args
system "make", "install" system "make", "install"
end end