Skip to content

Commit 3170950

Browse files
authored
Merge pull request #3 from mseri/master
Port to jbuilder and resync with djs55 repo
2 parents 5b2eed6 + 78dee3d commit 3170950

19 files changed

+124
-8027
lines changed

.gitignore

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
setup.bin
2-
setup.data
3-
setup.log
4-
dist
5-
_build
6-
api.docdir
7-
*.native
8-
*.byte
1+
_build/
2+
.merlin
3+
*.install
4+

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: c
2+
sudo: false
3+
services:
4+
- docker
5+
install: wget https://raw.githubusercontent.com/ocaml/ocaml-travisci-skeleton/master/.travis-docker.sh
6+
script: bash -ex ./.travis-docker.sh
7+
env:
8+
global:
9+
- PACKAGE="fd-send-recv"
10+
matrix:
11+
- DISTRO="debian-testing" OCAML_VERSION="4.02.3"
12+
- DISTRO="ubuntu-14.04" OCAML_VERSION="4.02.3"
13+
- DISTRO="ubuntu-15.10" OCAML_VERSION="4.02.3"
14+
- DISTRO="centos-7" OCAML_VERSION="4.02.3"
15+
- DISTRO="centos-6" OCAML_VERSION="4.02.3"
16+
- DISTRO="fedora-23" OCAML_VERSION="4.02.3"

CHANGES

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.0.4 (2017-01-11)
2+
* add opam file
3+
* add .travis.yml
4+
* fix build on Win32
5+
16
1.0.1 (23-Apr-2013)
27
* fix the build on Mac OSX
38

Makefile

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,24 @@
1-
# OASIS_START
2-
# DO NOT EDIT (digest: a3c674b4239234cbbe53afe090018954)
1+
.PHONY: build release install uninstall clean test doc
32

4-
SETUP = ocaml setup.ml
3+
build:
4+
jbuilder build @install --dev
55

6-
build: setup.data
7-
$(SETUP) -build $(BUILDFLAGS)
6+
release:
7+
jbuilder build @install
88

9-
doc: setup.data build
10-
$(SETUP) -doc $(DOCFLAGS)
9+
install:
10+
jbuilder install
1111

12-
test: setup.data build
13-
$(SETUP) -test $(TESTFLAGS)
14-
15-
all:
16-
$(SETUP) -all $(ALLFLAGS)
17-
18-
install: setup.data
19-
$(SETUP) -install $(INSTALLFLAGS)
20-
21-
uninstall: setup.data
22-
$(SETUP) -uninstall $(UNINSTALLFLAGS)
23-
24-
reinstall: setup.data
25-
$(SETUP) -reinstall $(REINSTALLFLAGS)
12+
uninstall:
13+
jbuilder uninstall
2614

2715
clean:
28-
$(SETUP) -clean $(CLEANFLAGS)
29-
30-
distclean:
31-
$(SETUP) -distclean $(DISTCLEANFLAGS)
32-
33-
setup.data:
34-
$(SETUP) -configure $(CONFIGUREFLAGS)
16+
jbuilder clean
3517

36-
configure:
37-
$(SETUP) -configure $(CONFIGUREFLAGS)
18+
test:
19+
jbuilder runtest
3820

39-
.PHONY: build doc test all install uninstall reinstall clean distclean configure
21+
# requires odoc
22+
doc:
23+
jbuilder build @doc
4024

41-
# OASIS_STOP

_oasis

Lines changed: 0 additions & 62 deletions
This file was deleted.

_tags

Lines changed: 0 additions & 38 deletions
This file was deleted.

configure

Lines changed: 0 additions & 27 deletions
This file was deleted.

doc/api.odocl

Lines changed: 0 additions & 1 deletion
This file was deleted.

opam renamed to fd-send-recv-tuntap.opam

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ tags: [
1414
"org:mirage"
1515
"org:xapi-project"
1616
]
17-
build: make
18-
remove: [["ocamlfind" "remove" "fd-send-recv"]]
17+
build-test: [
18+
["jbuilder" "build" "-j" jobs]
19+
]
1920
depends: [
20-
"ocamlfind"
21-
"ocamlbuild" {build}
21+
"jbuilder" {build}
22+
"fd-send-recv"
23+
"tuntap"
2224
]
23-
install: [make "install"]

fd-send-recv.opam

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
opam-version: "1.2"
2+
maintainer: "[email protected]"
3+
authors: [
4+
"David Scott"
5+
"David Sheets"
6+
"Euan Harris"
7+
"Vincent Bernardoff"
8+
]
9+
homepage: "https://github.com/xapi-project/ocaml-fd-send-recv"
10+
bug-reports: "https://github.com/xapi-project/ocaml-fd-send-recv/issues"
11+
dev-repo: "https://github.com/xapi-project/ocaml-fd-send-recv.git"
12+
doc: "https://github.com/xapi-project/ocaml-fd-send-recv/blob/master/lib/fd_send_recv.mli"
13+
tags: [
14+
"org:mirage"
15+
"org:xapi-project"
16+
]
17+
build: [["jbuilder" "build" "-p" name "-j" jobs]]
18+
build-test: [["jbuilder" "runtest" "-p" name "-j" jobs]]
19+
depends: [
20+
"jbuilder" {build}
21+
]

0 commit comments

Comments
 (0)