Skip to content

Commit 5b078ca

Browse files
committed
Generate opam file using dune-project
1 parent d5de6b4 commit 5b078ca

File tree

2 files changed

+54
-16
lines changed

2 files changed

+54
-16
lines changed

dune-project

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,26 @@
11
(lang dune 3.17)
2+
(name gobject-introspection)
3+
(formatting disabled)
4+
(generate_opam_files true)
5+
(source (github cedlemo/OCaml-GObject-Introspection))
6+
(authors "Cédric Le Moigne <[email protected]>")
7+
(maintainers "Cédric Le Moigne <[email protected]>")
8+
(license "GPL-3.0-or-later")
9+
(documentation https://github.com/cedlemo/OCaml-GObject-Introspection/wiki)
10+
(package
11+
(name gobject-introspection)
12+
(synopsis "OCaml bindings for the GObject-Introspection library (https://gi.readthedocs.io/en/latest/)")
13+
(description "This library provides bindings based on Ctypes for the libgirepository API (see https://developer.gnome.org/gi/stable/)")
14+
(depends
15+
(ocaml (>= 4.08))
16+
ctypes
17+
ctypes-foreign
18+
(dune-configurator :build)
19+
(base :build)
20+
(stdio (and :build :with-test))
21+
(conf-pkg-config :build)
22+
(conf-gobject-introspection :build)
23+
(conf-glib-2 :build)
24+
(conf-gtk3 :build)
25+
(ounit2 :with-test)
26+
))

gobject-introspection.opam

Lines changed: 29 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
1+
# This file is generated by dune, edit dune-project instead
12
opam-version: "2.0"
2-
name: "OCaml-GObject-Introspection"
3-
version: "0.2"
4-
maintainer: "Cédric Le Moigne <[email protected]>"
5-
authors: "Cédric Le Moigne <[email protected]>"
3+
synopsis:
4+
"OCaml bindings for the GObject-Introspection library (https://gi.readthedocs.io/en/latest/)"
5+
description:
6+
"This library provides bindings based on Ctypes for the libgirepository API (see https://developer.gnome.org/gi/stable/)"
7+
maintainer: ["Cédric Le Moigne <[email protected]>"]
8+
authors: ["Cédric Le Moigne <[email protected]>"]
9+
license: "GPL-3.0-or-later"
610
homepage: "https://github.com/cedlemo/OCaml-GObject-Introspection"
11+
doc: "https://github.com/cedlemo/OCaml-GObject-Introspection/wiki"
712
bug-reports: "https://github.com/cedlemo/OCaml-GObject-Introspection/issues"
8-
license: "GPL3"
9-
dev-repo: "git+https://github.com/cedlemo/OCaml-GObject-Introspection.git"
10-
synopsis: "OCaml bindings for the GObject-Introspection library (https://gi.readthedocs.io/en/latest/)"
11-
description: "This library provides bindings based on Ctypes for the libgirepository API (see https://developer.gnome.org/gi/stable/)"
12-
build: [
13-
["dune" "build" "-p" name "-j" jobs]
14-
["dune" "runtest" "-p" name "-j" jobs] {with-test}
15-
]
1613
depends: [
17-
"ocaml"
1814
"dune" {>= "3.17"}
15+
"ocaml" {>= "4.08"}
1916
"ctypes"
2017
"ctypes-foreign"
21-
"ounit2" {with-test}
22-
"base"
23-
"stdio"
2418
"dune-configurator" {build}
19+
"base" {build}
20+
"stdio" {build & with-test}
2521
"conf-pkg-config" {build}
2622
"conf-gobject-introspection" {build}
2723
"conf-glib-2" {build}
2824
"conf-gtk3" {build}
25+
"ounit2" {with-test}
26+
"odoc" {with-doc}
27+
]
28+
build: [
29+
["dune" "subst"] {dev}
30+
[
31+
"dune"
32+
"build"
33+
"-p"
34+
name
35+
"-j"
36+
jobs
37+
"@install"
38+
"@runtest" {with-test}
39+
"@doc" {with-doc}
40+
]
2941
]
42+
dev-repo: "git+https://github.com/cedlemo/OCaml-GObject-Introspection.git"

0 commit comments

Comments
 (0)