Skip to content

Commit

Permalink
114.20+69
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremie Dimino committed Dec 15, 2016
1 parent cd14d01 commit 2410cf2
Show file tree
Hide file tree
Showing 20 changed files with 107 additions and 247 deletions.
10 changes: 3 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
_build/
/setup.data
/setup.log
/*.exe
/*.docdir
/*.native
/*.byte
_build
*.install

30 changes: 0 additions & 30 deletions META.ab

This file was deleted.

66 changes: 8 additions & 58 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,68 +1,18 @@
# Generic Makefile for oasis project

SETUP := setup.exe
NAME := sexplib
PREFIX ?= $(shell grep ^prefix= setup.data | cut -d\" -f 2)

# Default rule
default: build

setup.exe: _oasis setup.ml
ocamlfind ocamlopt -o $@ -linkpkg -package ocamlbuild,oasis.dynrun setup.ml || \
ocamlfind ocamlc -o $@ -linkpkg -package ocamlbuild,oasis.dynrun setup.ml || true
for f in setup.*; do [ $$f = $@ -o $$f = setup.ml ] || rm -f $$f; done

build: $(SETUP) setup.data
./$(SETUP) -build $(BUILDFLAGS)
$(MAKE) $(NAME).install

doc: $(SETUP) setup.data build
./$(SETUP) -doc $(DOCFLAGS)

test: $(SETUP) setup.data build
./$(SETUP) -test $(TESTFLAGS)

all: $(SETUP)
./$(SETUP) -all $(ALLFLAGS)
$(MAKE) $(NAME).install

$(NAME).install: install.ml setup.log setup.data
ocaml -I "$(OCAML_TOPLEVEL_PATH)" install.ml
default:
jbuilder build-package $(NAME)

install: $(NAME).install
install:
opam-installer -i --prefix $(PREFIX) $(NAME).install

uninstall: $(NAME).install
uninstall:
opam-installer -u --prefix $(PREFIX) $(NAME).install

reinstall: $(NAME).install
opam-installer -u --prefix $(PREFIX) $(NAME).install &> /dev/null || true
opam-installer -i --prefix $(PREFIX) $(NAME).install

bin.tar.gz: $(NAME).install
rm -rf _install
mkdir _install
opam-installer -i --prefix _install $(NAME).install
tar czf bin.tar.gz -C _install .
rm -rf _install

bin.lzo: $(NAME).install
rm -rf _install
mkdir _install
opam-installer -i --prefix _install $(NAME).install
cd _install && lzop -1 -P -o ../bin.lzo `find . -type f`
rm -rf _install

clean: $(SETUP)
./$(SETUP) -clean $(CLEANFLAGS)

distclean: $(SETUP)
./$(SETUP) -distclean $(DISTCLEANFLAGS)

configure: $(SETUP)
./$(SETUP) -configure $(CONFIGUREFLAGS)
reinstall: uninstall reinstall

setup.data: $(SETUP)
./$(SETUP) -configure $(CONFIGUREFLAGS)
clean:
rm -rf _build

.PHONY: default build doc test all install uninstall reinstall clean distclean configure
.PHONY: default install uninstall reinstall clean
62 changes: 0 additions & 62 deletions _oasis

This file was deleted.

10 changes: 0 additions & 10 deletions _tags

This file was deleted.

5 changes: 0 additions & 5 deletions configure

This file was deleted.

5 changes: 0 additions & 5 deletions descr

This file was deleted.

11 changes: 0 additions & 11 deletions install.ml

This file was deleted.

14 changes: 0 additions & 14 deletions myocamlbuild.ml

This file was deleted.

4 changes: 2 additions & 2 deletions num/lib/jbuild
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(library
((name sexplib_num)
(public_name sexplib.num)
(libraries (nums sexplib))
(preprocess ((no_preprocessing All)))))
(libraries (num sexplib))
(preprocess no_preprocessing)))
6 changes: 0 additions & 6 deletions setup.ml

This file was deleted.

17 changes: 10 additions & 7 deletions opam → sexplib.opam
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,18 @@ bug-reports: "https://github.com/janestreet/sexplib/issues"
dev-repo: "https://github.com/janestreet/sexplib.git"
license: "Apache-2.0"
build: [
["./configure" "--prefix" prefix]
[make]
["jbuilder" "build-package" "sexplib" "-j" jobs]
]
depends: [
"ocamlbuild" {build}
"oasis" {build & >= "0.4"}
"ocamlfind" {build & >= "1.3.2"}
"base"
"js-build-tools" {build}
"jbuilder"
]
available: [ ocaml-version >= "4.03.0" ]
conflicts: [ "oasis" {= "0.4.7"} ]
descr: "
Library for serializing OCaml values to and from S-expressions

Part of Jane Street\226\128\153s Core library
The Core suite of libraries is an industrial strength alternative to
OCaml's standard library that was developed by Jane Street, the
largest industrial user of OCaml.
"
5 changes: 3 additions & 2 deletions src/conv.ml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
open Printf
open Bigarray

module Sexplib = Base.Exported_for_specific_uses.Sexplib
module String = Bytes
include (Base0.Sexplib.Conv : module type of Base0.Sexplib.Conv
with module Sexp := Base0.Sexplib.Conv.Sexp)
include Sexplib.Conv
open Sexp

type bigstring = (char, int8_unsigned_elt, c_layout) Array1.t
Expand Down
3 changes: 1 addition & 2 deletions src/conv.mli
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
(** Utility Module for S-expression Conversions *)

open Bigarray
include (module type of Base0.Sexplib.Conv with module Sexp := Base0.Sexplib.Conv.Sexp)

include module type of Base.Exported_for_specific_uses.Sexplib.Conv

(** {6 Type aliases} *)

Expand Down
2 changes: 1 addition & 1 deletion src/conv_error.ml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include Base0.Sexplib.Conv_error
include Base.Exported_for_specific_uses.Sexplib.Conv_error
2 changes: 1 addition & 1 deletion src/jbuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
((name sexplib)
(libraries (bigarray base))
(public_name sexplib)
(preprocess (((command ${PA_CPP}) (List (pre_sexp)))))
(preprocess (per_file ((command ${PA_CPP}) (pre_sexp))))
(js_of_ocaml ())))

(ocamllex (lexer))
Expand Down
Loading

0 comments on commit 2410cf2

Please sign in to comment.