-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbytepdf.opam
40 lines (35 loc) · 1.18 KB
/
bytepdf.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
28
29
30
31
32
33
34
35
36
37
38
39
40
opam-version: "2.0"
version: "dev"
maintainer: "Drup <[email protected]>"
authors: "Drup <[email protected]>"
license: "ISC"
homepage: "https://github.com/Drup/bytepdf"
bug-reports: "https://github.com/Drup/bytepdf/issues"
dev-repo: "git+https://github.com/Drup/bytepdf.git"
synopsis: "Tool to create PDFs that are also OCaml bytecodes"
description: """\
The `bytepdf` tool allows you to take a PDF `foo.pdf` and an OCaml bytecode `foo.byte` and merges them into a file that is both a valid PDF and a valid bytecode.
```
bytepdf --bc foo.byte --pdf foo.pdf -o bar.pdf
```
The resulting file can both be read as a pdf and executed by the ocaml interpreter:
```
open bar.pdf
ocamlrun bar.pdf
```
Furthermore, if you open the PDF with Acrobat Reader, the PDF will contain the OCaml bytecode as a file attachment. For more details, you can read the help.
The only current limitation is that the bytecode should not
have been statically linked with C code."""
depends: [
"ocaml" {>= "4.10" & < "5.0" }
"dune" {>= "1.1"}
"containers" {>= "0.12"}
"bos"
"cmdliner"
"obytelib" {>= "1.6"}
"camlpdf" {>= "2.6"}
]
build: [
["dune" "subst"] {dev}
["dune" "build" "-p" name "-j" jobs]
]