forked from ocaml/opam-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ocamlmod 0.0.7 — using oasis to uninstall
See ocaml/opam#2253 for the motivation
- Loading branch information
Showing
3 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"} | ||
] |