From 8a56f702618cea519ef293b38c95a0a319ea6ab7 Mon Sep 17 00:00:00 2001 From: Edgar Aroutiounian Date: Thu, 28 May 2015 15:08:27 -0400 Subject: [PATCH] More build pains fixed, opam looks ready --- Makefile | 6 +++--- opam/descr | 4 ++++ opam/findlib | 1 + opam/opam | 2 ++ 4 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 opam/descr create mode 100644 opam/findlib diff --git a/Makefile b/Makefile index b7dcc11..4a3c06a 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,8 @@ native:libgit set_meta -cclib `ocamlfind query ocaml-libgit2`/$(CCLIB) -linkpkg $(SRC) -o Git_test libgit: - @echo "Updating libgit2 itself" - git submodule update --remote + # @echo "Updating libgit2 itself" + # git submodule update --remote ocamlfind install ocaml-libgit2 META # The trick is the ; since cd is done in a separate shell cd `ocamlfind query ocaml-libgit2`; \ @@ -25,7 +25,7 @@ set_meta: `ocamlfind query ocaml-libgit2`/META install: - ocamlfind install ocaml-libgit2 -add git.cmo git.cmi git.cmt git.o git.cmx + ocamlfind install ocaml-libgit2 -add git.cmi git.cmt git.o git.cmx uninstall: ocamlfind remove ocaml-libgit2 diff --git a/opam/descr b/opam/descr new file mode 100644 index 0000000..3f36c1c --- /dev/null +++ b/opam/descr @@ -0,0 +1,4 @@ +OCaml Ctypes based bindings to libgit2 along with some +helper functions for common tasks. The helper functions +let you focus on your business logic rather than dealing +with Ctypes. \ No newline at end of file diff --git a/opam/findlib b/opam/findlib new file mode 100644 index 0000000..1c94662 --- /dev/null +++ b/opam/findlib @@ -0,0 +1 @@ +ocaml-libgit2 \ No newline at end of file diff --git a/opam/opam b/opam/opam index 316796d..602a0c6 100644 --- a/opam/opam +++ b/opam/opam @@ -14,4 +14,6 @@ install: [make "install"] remove: ["ocamlfind" "remove" "ocaml-libgit2"] depends: [ "ocamlfind" {build} + "ctypes" + "uri" ]