Skip to content

Commit 24dbb72

Browse files
authored
Merge pull request #28918 from dra27/msys2-lablgtk3
Hotfixes for labgtk3 for Windows
2 parents e1c6225 + be3803d commit 24dbb72

File tree

1 file changed

+49
-0
lines changed
  • packages/lablgtk3/lablgtk3.3.1.5-1

1 file changed

+49
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
opam-version: "2.0"
2+
3+
synopsis: "OCaml interface to GTK+3"
4+
description: """
5+
OCaml interface to GTK+3
6+
7+
See https://garrigue.github.io/lablgtk/ for more information.
8+
"""
9+
10+
maintainer: "[email protected]"
11+
authors: ["Jacques Garrigue et al., Nagoya University"]
12+
homepage: "https://github.com/garrigue/lablgtk"
13+
bug-reports: "https://github.com/garrigue/lablgtk/issues"
14+
dev-repo: "git+https://github.com/garrigue/lablgtk.git"
15+
license: "LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception"
16+
doc: "https://garrigue.github.io/lablgtk/lablgtk3/lablgtk3"
17+
18+
depends: [
19+
"ocaml" { >= "4.09.0" }
20+
"camlp-streams" { >= "5.0" & build }
21+
"dune" { >= "1.8.0" }
22+
"cairo2" { >= "0.6" }
23+
"conf-gtk3" { >= "18" }
24+
"ocamlfind" { dev }
25+
"camlp5" { dev }
26+
]
27+
depopts: [
28+
"host-system-msvc"
29+
"host-system-mingw"
30+
]
31+
32+
build: [
33+
[ "sed" "-i" "-e" "/c_flags/s/-Wno-deprecated-declarations//" "src/dune" ] {host-system-msvc:installed}
34+
[ "sed" "-i" "-e" "/c_flags/s/-W/-Wno-error=incompatible-pointer-types -W/" "src/dune" ] {host-system-mingw:installed}
35+
[ "dune" "subst"] {dev}
36+
[ "dune" "build" "-p" name "-j" jobs ]
37+
]
38+
run-test: [
39+
[ "dune" "build" "-p" name "-j" jobs "examples/buttons.exe" ]
40+
]
41+
url {
42+
src:
43+
"https://github.com/garrigue/lablgtk/releases/download/3.1.5/lablgtk3-3.1.5.tbz"
44+
checksum: [
45+
"sha256=d4821cdbecf3ae374f20317d63e43fe58030c3ba9657b51a2e83e652197e8eac"
46+
"sha512=83f0be38a1e21737de93f88b0adac15cdcc50cf712d773720b9bc1e8d8ffdb2c660d35840f25d326a42a9d4e6537e6cef466099bf72494196b2cc79977e703e3"
47+
]
48+
}
49+
x-commit-hash: "afbd6d2ee90b98cb0ea49cba34659e15b00cbfe3"

0 commit comments

Comments
 (0)