homebrew-core/Formula/lsyncd.rb

104 lines
7.9 KiB
Ruby

class Lsyncd < Formula
desc "Synchronize local directories with remote targets"
homepage "https://github.com/axkibe/lsyncd"
url "https://github.com/axkibe/lsyncd/archive/release-2.2.3.tar.gz"
sha256 "7bcd0f4ae126040bb078c482ff856c87e61c22472c23fa3071798dcb1dc388dd"
license "GPL-2.0"
bottle do
cellar :any
rebuild 4
sha256 "571c5f5aa4069b5ed8a42a63e47e2e43512f95da0218f5ef7f0d5e8a9c0d66ea" => :catalina
sha256 "45c0f8bc62b9c7224241ff3d646f6c38d3f544890deb20c9670659f2637367f4" => :mojave
sha256 "335359bb356c753e6e286681d5bcb484d066df0f15910cf614de74ee131628be" => :high_sierra
end
depends_on "cmake" => :build
depends_on "lua"
xnu_headers = {
"10.7" => ["xnu-1699.22.73.tar.gz", "c9d24560af543e6099b6248bdbcef3581e7ba4af3afd92974719f7c5a8db5bd2"],
"10.7.1" => ["xnu-1699.22.81.tar.gz", "b1422aadf0d3842f3c97e61178adfddb6596e67ba1d877da7f11e2f455fa8dec"],
"10.7.2" => ["xnu-1699.24.8.tar.gz", "4268ce69799db51f1b48e400b6fa6a7041b266a1a5404034398aa51b7084b269"],
"10.7.3" => ["xnu-1699.24.23.tar.gz", "f91a2e8128e220c7ea21ff5c0b61cf76b2afcae83f057d2116837272fd46bead"],
"10.7.4" => ["xnu-1699.26.8.tar.gz", "76f0e6e703218b3b1620b29b7fabb5eb177c990af20711a90085a5a6afc54022"],
"10.7.5" => ["xnu-1699.32.7.tar.gz", "2163816aae990675d8f45cdced4b680bb112fb7a600eb0063af2c2bc2ea15e15"],
"10.8" => ["xnu-2050.7.9.tar.gz", "25c8fc346d1c209f6d20b456dcb256f1e829e844f67b262c090caf088559f4b1"],
"10.8.1" => ["xnu-2050.9.2.tar.gz", "f342179c625413ae3a74fc1a5747fc555c1353cfef6259c595626469744a6405"],
"10.8.2" => ["xnu-2050.18.24.tar.gz", "5d018b33efd9eebb05142958432b9a5058febe04a3b92ba5a16a285490a83445"],
"10.8.3" => ["xnu-2050.22.13.tar.gz", "54011448f0cbb84792146657f4f5f8f64beca52e63bd0eb6028aadedf153a4d6"],
"10.8.4" => ["xnu-2050.24.15.tar.gz", "24e6dc5d98d8f2be450832ea9cfaf2fc85c090422e5b89b24c2a80f0d2957a04"],
"10.8.5" => ["xnu-2050.48.11.tar.gz", "454203188d19a368f850f335a6b4c8fbfc383e929116b2b06e63d8365ccd207e"],
"10.9" => ["xnu-2422.1.72.tar.gz", "fbefe23943d0c4c12b3d7abd3f304224176f269b19ef6ad801314bc69cf773db"],
"10.9.1" => ["xnu-2422.1.72.tar.gz", "fbefe23943d0c4c12b3d7abd3f304224176f269b19ef6ad801314bc69cf773db"],
"10.9.2" => ["xnu-2422.90.20.tar.gz", "7bf3c6bc2f10b99e57b996631a7747b79d1e1684df719196db1e5c98a5585c23"],
"10.9.3" => ["xnu-2422.100.13.tar.gz", "0deb3a323804a18e23261b1f770a7b85b6329213cb77f525d5a2663e8961d87a"],
"10.9.4" => ["xnu-2422.110.17.tar.gz", "0b973913648d5773367f264002f7832bd01510687fa55a28ef1438c86affa141"],
"10.9.5" => ["xnu-2422.115.4.tar.gz", "1a505922bbf232a616a7398e17eff4477fb0621a6c046ff802a2c7b7bf2b5ceb"],
"10.10" => ["xnu-2782.1.97.tar.gz", "18fd93155c53fa66c48c2c876313311bba55cff260ea10e7b67dd7ed1f4b945c"],
"10.10.1" => ["xnu-2782.1.97.tar.gz", "18fd93155c53fa66c48c2c876313311bba55cff260ea10e7b67dd7ed1f4b945c"],
"10.10.2" => ["xnu-2782.10.72.tar.gz", "0725dfc77ce245e37b57d226445217c17d0a7750db099d3ca69a4ad1c7f39356"],
"10.10.3" => ["xnu-2782.20.48.tar.gz", "d1d7cfdf282b6b651415d5adb7f591f3d7ee0e0ccdd29db664c0ec3f9f827146"],
"10.10.4" => ["xnu-2782.30.5.tar.gz", "16fbd88fb5833fdfb6d8169b7c330d344c12b6a644678a1eb68f27c318b8811d"],
"10.10.5" => ["xnu-2782.40.9.tar.gz", "f9f2524124edebe81bb1ead2f69c3daeed1f37641aef68ac4df5bcffd2ab0898"],
"10.11" => ["xnu-3247.1.106.tar.gz", "660f8f107d284fe797675b0a266c63016876aa5bb4add99d88ffb9cd9001d84f"],
"10.11.1" => ["xnu-3247.10.11.tar.gz", "66ff554039e3b8351fdb2103c4dfb6bf8015c6f9a219f70c057b839cb10b1640"],
"10.11.2" => ["xnu-3248.20.55.tar.gz", "10c3acf0da74d6f4684d6a870b425546fc9c9dcb9c39541556f47cba2440a2ab"],
"10.11.3" => ["xnu-3248.30.4.tar.gz", "106a8a3a9e01bd73b06298f81b397fe3d772428e0a650edb24b340315a4d0e84"],
"10.11.4" => ["xnu-3248.40.184.tar.gz", "a9e1b03ae9cde203f83602260ea1994822cb4e38c81b99e74797a124f6cd10ab"],
"10.11.5" => ["xnu-3248.50.21.tar.gz", "e1daa3666c7cdf35d7d320a0b0dae8b7d03ea35c7383ea681371e0543fb5d4b5"],
"10.11.6" => ["xnu-3248.60.10.tar.gz", "295b69cee59f2a7419eab3d95744595fa8cd614716fb6ddc958b61dc088e1f7a"],
"10.12" => ["xnu-3789.1.32.tar.gz", "5bff9606bf32d9ae11d964d8eb280ed9543e4e4fef1cc394d272d7b6ce3f1e55"],
"10.12.1" => ["xnu-3789.21.4.tar.gz", "0e866d90f1b966ccb466ea0c7d4dd8f1e32d40132bbac5c21a857fb6c2522119"],
"10.12.2" => ["xnu-3789.31.2.tar.gz", "768087e43fd16e4ce93862070a91f4b8b47c8d27640b4c35d68bb49a2ca3e4bd"],
"10.12.3" => ["xnu-3789.41.3.tar.gz", "910a8a5d69330d635a5a716ae1d70a2c503c1700fba7612d3ce604feee4eb3dd"],
"10.12.4" => ["xnu-3789.51.2.tar.gz", "126c377a9f0b6364d6eb7618cb8ab863deab045c3d06338632f887e7e99261fa"],
"10.12.5" => ["xnu-3789.60.24.tar.gz", "00e0a95c0ba451863397680e9316dc579cbfacb114264cee417bceecaa256b22"],
"10.12.6" => ["xnu-3789.70.16.tar.gz", "e5b912036a7ceca92e7ada44ef4b264de928bd247a7c02c50604fd8f4f044bea"],
"10.13" => ["xnu-4570.1.46.tar.gz", "18c418c906d08acc7db471d0783269f50aeae73fff0aae0b61c848c4c926c767"],
"10.13.1" => ["xnu-4570.20.62.tar.gz", "4968ae345a83d7aca3a8da65bf09bdc637e2eefbc236f7931c38abb879fe05df"],
"10.13.2" => ["xnu-4570.31.3.tar.gz", "1c364646d001f1a6eee80fa71f746b1142121203eabd808f1eab18317ade576c"],
"10.13.3" => ["xnu-4570.41.2.tar.gz", "e26ea5451126278d22dff7399b956c0fd1fbbdca82d90d4bb105b1ad0731162d"],
"10.13.4" => ["xnu-4570.51.1.tar.gz", "2c392ff711d596ffd8833c794f45f2781d4f66e09b949df974f2fed4871d5642"],
"10.13.5" => ["xnu-4570.61.1.tar.gz", "7655d0864e2b1c45c543ea65deab41cf093dc2cda1c78707d75488849ddd9670"],
"10.13.6" => ["xnu-4570.71.2.tar.gz", "7dc621cbf4345315badae37dfab6bf133265fff43a4daaf47bea1feb00f490cc"],
"10.14" => ["xnu-4903.221.2.tar.gz", "c7a4f66bacfd4432b217ef4883798499fd223e1b717f7c5814fccc3a4ae7f4eb"],
"10.14.1" => ["xnu-4903.221.2.tar.gz", "c7a4f66bacfd4432b217ef4883798499fd223e1b717f7c5814fccc3a4ae7f4eb"],
"10.14.2" => ["xnu-4903.231.4.tar.gz", "4aeb745dd26aecc82e44d293fc125099d93e50fe1248bd9178df272e9503be0a"],
"10.14.3" => ["xnu-4903.241.1.tar.gz", "6de5253718f93401dc752eb69d08b6253c7abcd9a60349f7e0617776eeda1924"],
"10.14.4" => ["xnu-4903.241.1.tar.gz", "6de5253718f93401dc752eb69d08b6253c7abcd9a60349f7e0617776eeda1924"],
"10.14.5" => ["xnu-4903.241.1.tar.gz", "6de5253718f93401dc752eb69d08b6253c7abcd9a60349f7e0617776eeda1924"],
"10.14.6" => ["xnu-4903.270.47.tar.gz", "126856fa7a1aaa5f5480034855bd58d4c7f60693397b8279aaac2c83a502a552"],
"10.15" => ["xnu-6153.11.26.tar.gz", "ec75b9ec8aaed5619cc81836f09fac9aa2c26d5ffda8444d4ae0edbb10bac574"],
"10.15.1" => ["xnu-6153.41.3.tar.gz", "a1a8c57cf26a987760be3fe982a16d32714cc8eb49435704ef16f6160d549762"],
"10.15.2" => ["xnu-6153.61.1.tar.gz", "52926f41d47238485d3b98b341f8eb3932ace60f1d84849a2c55af5d90890ab7"],
"10.15.3" => ["xnu-6153.81.5.tar.gz", "ed3b255b9f90c24759aeddc06227cbfa1d11f17fc6e975e37d7be75d22dc2178"],
"10.15.4" => ["xnu-6153.101.6.tar.gz", "6b1aa4d60d83669d21da84c096733d5258b8ac9b20e136d08ffbc988aa69638a"],
"10.15.5" => ["xnu-6153.121.1.tar.gz", "8dedfc4dfc1b9cae6e3628fa8cb3eab024106c2b5929f8ce6217001546cc8276"],
"10.15.6" => ["xnu-6153.141.1.tar.gz", "01f95d12f84026c4d8359ebd64ae42958135468ad9ab5f613607a1ac4b27a6ee"],
"10.15.7" => ["xnu-6153.141.1.tar.gz", "01f95d12f84026c4d8359ebd64ae42958135468ad9ab5f613607a1ac4b27a6ee"],
}
tarball, checksum = if xnu_headers.key? MacOS.full_version
xnu_headers.fetch(MacOS.full_version)
else
xnu_headers.values.last # Fallback
end
resource "xnu" do
url "https://opensource.apple.com/tarballs/xnu/#{tarball}"
sha256 checksum
end
def install
inreplace "CMakeLists.txt", "DESTINATION man", "DESTINATION share/man/man1"
resource("xnu").stage buildpath/"xnu"
system "cmake", ".", "-DWITH_INOTIFY=OFF", "-DWITH_FSEVENTS=ON",
"-DXNU_DIR=#{buildpath}/xnu", *std_cmake_args
system "make", "install"
end
test do
system bin/"lsyncd", "--version"
end
end