Skip to content

Commit

Permalink
Merge pull request #1 from savonet/dune
Browse files Browse the repository at this point in the history
Convert to dune!
  • Loading branch information
toots authored Mar 8, 2021
2 parents 4244add + d7c18fc commit 9db7f0e
Show file tree
Hide file tree
Showing 37 changed files with 808 additions and 4,094 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build
on: [push]
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
ocaml-version: ['4.09.0']
steps:
- uses: actions/checkout@v1
- uses: avsm/setup-ocaml@master
with:
ocaml-version: ${{ matrix.ocaml-version }}
- run: opam pin add -n .
- run: opam depext -yt theora
- run: opam install -t .
26 changes: 7 additions & 19 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,19 +1,7 @@
Makefile
aclocal.m4
autom4te.cache/
config.guess
config.log
config.status
config.sub
configure
install-sh
src/META
src/Makefile
src/._bcdi/
src/._d/
src/._ncdi/
src/*.a
src/*.cm*
src/*.o
src/*.so
.*sw*
*~
_build
*.byte
*.native
_tests
.merlin
*.install
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

9 changes: 9 additions & 0 deletions .ocamlformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
profile = conventional
break-separators = after
space-around-lists = false
doc-comments = before
match-indent = 2
match-indent-nested = always
parens-ite
exp-grouping = preserve
module-item-spacing = compact
4 changes: 4 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
0.4.0 (08-03-2021)
======
* Switch to dune

0.3.1 (03-08-2015)
=====
* Changed types to match new ocaml-ogg's API.
Expand Down
32 changes: 0 additions & 32 deletions Makefile.in

This file was deleted.

39 changes: 0 additions & 39 deletions README

This file was deleted.

41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
ocaml-theora
============

This package contains an OCaml interface for the `theora` library

Please read the COPYING file before using this software.

Prerequisites:
==============

- ocaml
- libtheora
- findlib
- ocaml-ogg >= 0.7.0
- dune >= 2.0

Compilation:
============

```
$ dune build
```

This should build both the native and the byte-code version of the
extension library.

Installation:
=============

Via `opam`:

```
$ opam install theora
```

Via `dune` (for developers):
```
$ dune install
```

This should install the library file in the appropriate place.
1 change: 0 additions & 1 deletion bootstrap

This file was deleted.

37 changes: 0 additions & 37 deletions configure.ac

This file was deleted.

20 changes: 20 additions & 0 deletions dune-project
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
(lang dune 2.0)
(version 0.4.0)
(name theora)
(source (github savonet/ocaml-theora))
(license GPL-2.0)
(authors "The Savonet Team <[email protected]>")
(maintainers "The Savonet Team <[email protected]>")

(generate_opam_files true)

(package
(name theora)
(synopsis "Bindings to libtheora")
(depends
conf-libtheora
conf-pkg-config
(dune (>= 2.0))
dune-configurator
(ogg (>= 0.7.0)))
)
11 changes: 0 additions & 11 deletions examples/Makefile

This file was deleted.

13 changes: 0 additions & 13 deletions examples/Makefile.thtranscode

This file was deleted.

Loading

0 comments on commit 9db7f0e

Please sign in to comment.