forked from felix-lang/dypgen
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgrain_dypgen.opam
28 lines (27 loc) · 1.21 KB
/
grain_dypgen.opam
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
opam-version: "2.0"
maintainer: "https://github.com/ocaml/opam-repository/issues"
authors: ["Emmanuel Onzo" "Philip Blair"]
homepage: "https://github.com/grain-lang/dypgen"
dev-repo: "git+https://github.com/grain-lang/dypgen.git"
license: "CeCILL-B"
build: make
depends: [
"ocaml" {>= "4.07.0"}
"ocamlfind" {build}
]
patches: ["install-bsd-compatible.patch"]
install: [
[make "install" "DYPGENLIBDIR=%{lib}%" "BINDIR=%{bin}%" "MANDIR=%{man}%/man1"]
["sh.exe" "-c" "if [ -f '%{bin}%/dypgen' ] && [ ! -f '%{bin}%/dypgen.exe' ] ; then mv '%{bin}%/dypgen' '%{bin}%/dypgen.exe' ; fi" ] { os = "win32" }
["sh.exe" "-c" "if [ -f '%{bin}%/dypgen.opt' ] && [ ! -f '%{bin}%/dypgen.opt.exe' ] ; then mv '%{bin}%/dypgen.opt' '%{bin}%/dypgen.opt.exe' ; fi" ] { os = "win32" }
]
synopsis: "Self-extensible parsers and lexers for OCaml"
description: """
dypgen is a GLR parser generator for OCaml, it is able to
generate self-extensible parsers (also called adaptive parsers) as
well as extensible lexers for the parsers it produces.
(fork of pre-4.06 dypgen: http://dypgen.free.fr/)"""
extra-files: [
["install-bsd-compatible.patch" "md5=f4885881bb9e16bae3f9e88ebb54c582"]
["dypgen.install" "md5=3af2bc7343588caf1a6de8af49a3b1b5"]
]