Skip to content

Commit

Permalink
Update ocamlmod 0.0.7 — using oasis to uninstall
Browse files Browse the repository at this point in the history
See ocaml/opam#2253 for the motivation
  • Loading branch information
Chris00 committed Jul 21, 2015
1 parent 9d85da7 commit c463f64
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
7 changes: 7 additions & 0 deletions packages/ocamlmod/ocamlmod.0.0.7/files/_oasis_remove_.ml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
open Printf

let () =
let dir = Sys.argv.(1) in
(try Sys.chdir dir
with _ -> eprintf "Cannot change directory to %s\n%!" dir);
exit (Sys.command "ocaml setup.ml -uninstall")
7 changes: 6 additions & 1 deletion packages/ocamlmod/ocamlmod.0.0.7/files/ocamlmod.install
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
bin: ["_build/src/ocamlmod.byte" {"ocamlmod"}]
etc: [
"setup.ml"
"setup.data"
"setup.log"
"_oasis_remove_.ml"
]
22 changes: 18 additions & 4 deletions packages/ocamlmod/ocamlmod.0.0.7/opam
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
opam-version: "1"
maintainer: "[email protected]"
opam-version: "1.2"
maintainer: "[email protected]"
homepage: "https://forge.ocamlcore.org/projects/ocamlmod/"
bug-reports: "https://forge.ocamlcore.org/tracker/?group_id=244"
dev-repo: "https://forge.ocamlcore.org/anonscm/darcs/ocamlmod/ocamlmod"
authors: [ "Sylvain Le Gall" ]
license: "LGPL-2.1 with OCaml linking exception"
build: [
["ocaml" "setup.ml" "-configure" "--prefix" prefix]
["ocaml" "setup.ml" "-build"]
["ocaml" "setup.ml" "-install"]
]
install: ["ocaml" "setup.ml" "-install"]
remove: [
["ocaml" "%{etc}%/ocamlmod/_oasis_remove_.ml" "%{etc}%/ocamlmod"]
]
build-test: [
["ocaml" "setup.ml" "-configure" "--enable-tests"]
["ocaml" "setup.ml" "-build"]
["ocaml" "setup.ml" "-test"]
]
depends: [
"ocamlfind"
"ocamlfind" {build}
"ounit" {test & >= "2.0.0"}
]

0 comments on commit c463f64

Please sign in to comment.