diff options
Diffstat (limited to 'homebrew/ocamlnum')
-rw-r--r-- | homebrew/ocamlnum/.beer | 34 | ||||
-rw-r--r-- | homebrew/ocamlnum/.make.sh-auto | 10 | ||||
-rw-r--r-- | homebrew/ocamlnum/_metadata/description | 1 | ||||
-rw-r--r-- | homebrew/ocamlnum/_metadata/homepage | 1 | ||||
-rw-r--r-- | homebrew/ocamlnum/_metadata/name | 1 | ||||
-rw-r--r-- | homebrew/ocamlnum/_metadata/version | 1 | ||||
-rwxr-xr-x | homebrew/ocamlnum/download.sh | 1 |
7 files changed, 49 insertions, 0 deletions
diff --git a/homebrew/ocamlnum/.beer b/homebrew/ocamlnum/.beer new file mode 100644 index 000000000..d29d7a41d --- /dev/null +++ b/homebrew/ocamlnum/.beer @@ -0,0 +1,34 @@ +{ + "name": "OcamlNum", + "description": "OCaml legacy Num library for arbitrary-precision arithmetic", + "url": "https://github.com/ocaml/num/archive/v1.1.tar.gz", + "mirror": null, + "homepage": "https://github.com/ocaml/num", + "depends": [ + { + "depend": "ocaml-findlib", + "build-depend": true + }, + { + "depend": "ocaml", + "build-depend": false + } + ], + "resource": [], + "conflicts": [], + "patches": [], + "install": [ + "ENV[\"OCAMLFIND_DESTDIR\"] = lib/\"ocaml\"", + "(lib/\"ocaml\").mkpath", + "cp Formula[\"ocaml\"].opt_lib/\"ocaml/Makefile.config\", lib/\"ocaml\"", + "inreplace lib/\"ocaml/Makefile.config\", /^PREFIX=#{HOMEBREW_PREFIX}$/,", + "\"PREFIX=#{prefix}\"", + "system \"make\"", + "(lib/\"ocaml/stublibs\").mkpath ", + "system \"make\", \"install\", \"STDLIBDIR=#{lib}/ocaml\"", + "pkgshare.install \"test\"", + "rm lib/\"ocaml/Makefile.config\" " + ], + "version": "1.1", + "file": "ocaml-num.rb" +}
\ No newline at end of file diff --git a/homebrew/ocamlnum/.make.sh-auto b/homebrew/ocamlnum/.make.sh-auto new file mode 100644 index 000000000..5338aea97 --- /dev/null +++ b/homebrew/ocamlnum/.make.sh-auto @@ -0,0 +1,10 @@ +pkg:setup +ENV["OCAMLFIND_DESTDIR"] = lib/"ocaml" +(lib/"ocaml").mkpath +cp Formula["ocaml"].opt_lib/"ocaml/Makefile.config", lib/"ocaml" +inreplace lib/"ocaml/Makefile.config", /^PREFIX=#{HOMEBREW_PREFIX}$/, "PREFIX=#{prefix}" +make +(lib/"ocaml/stublibs").mkpath +make DESTDIR=${PKG_DEST} install STDLIBDIR=${PKG_TAPF}/lib/ocaml +pkgshare.install "test" +rm lib/"ocaml/Makefile.config" diff --git a/homebrew/ocamlnum/_metadata/description b/homebrew/ocamlnum/_metadata/description new file mode 100644 index 000000000..377f5eac8 --- /dev/null +++ b/homebrew/ocamlnum/_metadata/description @@ -0,0 +1 @@ +OCaml legacy Num library for arbitrary-precision arithmetic diff --git a/homebrew/ocamlnum/_metadata/homepage b/homebrew/ocamlnum/_metadata/homepage new file mode 100644 index 000000000..9d95d8ad4 --- /dev/null +++ b/homebrew/ocamlnum/_metadata/homepage @@ -0,0 +1 @@ +https://github.com/ocaml/num diff --git a/homebrew/ocamlnum/_metadata/name b/homebrew/ocamlnum/_metadata/name new file mode 100644 index 000000000..8468bd56c --- /dev/null +++ b/homebrew/ocamlnum/_metadata/name @@ -0,0 +1 @@ +OcamlNum diff --git a/homebrew/ocamlnum/_metadata/version b/homebrew/ocamlnum/_metadata/version new file mode 100644 index 000000000..9459d4ba2 --- /dev/null +++ b/homebrew/ocamlnum/_metadata/version @@ -0,0 +1 @@ +1.1 diff --git a/homebrew/ocamlnum/download.sh b/homebrew/ocamlnum/download.sh new file mode 100755 index 000000000..ed8e6a55f --- /dev/null +++ b/homebrew/ocamlnum/download.sh @@ -0,0 +1 @@ +wget https://github.com/ocaml/num/archive/v1.1.tar.gz
\ No newline at end of file |