Skip to content

Commit 4194d0c

Browse files
authored
Merge pull request #24527 from kandu/fswatch
[new release] conf-fswatch 11-0.1.3 & fswatch 11-0.1.3
2 parents f3ba932 + 630d3df commit 4194d0c

File tree

3 files changed

+63
-0
lines changed
  • packages
    • conf-fswatch/conf-fswatch.11-0.1.3
    • fswatch/fswatch.11-0.1.3

3 files changed

+63
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <libfswatch.h>
2+
3+
int main(void) {
4+
return 0;
5+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
opam-version: "2.0"
2+
maintainer: "[email protected]"
3+
authors: [ "ZAN DoYe" ]
4+
homepage: "https://github.com/kandu/ocaml-fswatch/"
5+
bug-reports: "https://github.com/kandu/ocaml-fswatch/issues"
6+
license: "MIT"
7+
8+
build: [
9+
["sh" "-exec" "cc -I/usr/local/include/libfswatch/c -I/usr/include/libfswatch/c $CFLAGS test.c -lfswatch"] { !(os-distribution = "homebrew" & arch = "arm64") }
10+
["sh" "-exec" "cc -I$(brew --prefix)/include/libfswatch/c -L$(brew --prefix)/lib $CFLAGS test.c -lfswatch"] { os-distribution = "homebrew" & arch = "arm64" }
11+
]
12+
13+
depexts: [
14+
["libfswatch-dev"] {os-family = "debian"}
15+
["fswatch-devel"] {os-distribution = "fedora"}
16+
["fswatch"] {os-distribution = "arch"}
17+
["sys-fs/fswatch"] {os-distribution = "gentoo"}
18+
["fswatch-mon"] {os = "freebsd"}
19+
["fswatch"] {os = "macos" & os-distribution = "homebrew"}
20+
]
21+
22+
synopsis: "Virtual package relying on libfswatch installation"
23+
description: "This package can install only if the libfswatch is available on the system"
24+
25+
extra-files: [
26+
"test.c" "md5=76de29f84e4438235abc7ce83423b545"
27+
]
28+
29+
flags: [conf]
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
opam-version: "2.0"
2+
maintainer: "[email protected]"
3+
authors: [ "ZAN DoYe" ]
4+
homepage: "https://github.com/kandu/ocaml-fswatch/"
5+
bug-reports: "https://github.com/kandu/ocaml-fswatch/issues"
6+
license: "MIT"
7+
dev-repo: "git+https://github.com/kandu/ocaml-fswatch"
8+
build: [
9+
["sh" "-exec" "echo \\(-I/usr/local/include/libfswatch/c -I/usr/include/libfswatch/c\\) > fswatch/src/inc_cflags"] { !(os-distribution = "homebrew" & arch = "arm64") }
10+
["sh" "-exec" "echo -lfswatch > fswatch/src/inc_libs"] { !(os-distribution = "homebrew" & arch = "arm64") }
11+
12+
["sh" "-exec" "echo -I$(brew --prefix)/include/libfswatch/c > fswatch/src/inc_cflags"] { os-distribution = "homebrew" & arch = "arm64" }
13+
["sh" "-exec" "echo \\(-L$(brew --prefix)/lib -lfswatch\\) > fswatch/src/inc_libs"] { os-distribution = "homebrew" & arch = "arm64" }
14+
15+
["dune" "build" "-p" name "-j" jobs]
16+
]
17+
depends: [
18+
"ocaml" {>= "4.03.0"}
19+
"conf-fswatch"
20+
"dune" {>= "1.4"}
21+
]
22+
23+
synopsis: "Bindings for libfswatch -- file change monitor"
24+
description: """fswatch is a file change monitor that receives notifications when the contents of the specified files or directories are modified."""
25+
26+
url {
27+
src: "https://github.com/kandu/ocaml-fswatch/archive/11-0.1.3.tar.gz"
28+
checksum: "md5=10ff6b35632fde8057e93552d35e831a"
29+
}

0 commit comments

Comments
 (0)