diff --git a/packages/conf-libX11/conf-libX11.1/files/pkg-osx.sh b/packages/conf-libX11/conf-libX11.1/files/pkg-osx.sh new file mode 100755 index 000000000000..febd93315d1d --- /dev/null +++ b/packages/conf-libX11/conf-libX11.1/files/pkg-osx.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ -n "$PKG_CONFIG_PATH" ] ; then + PKG_CONFIG_PATH=$PKG_CONFIG_PATH: +fi + +PKG_CONFIG_PATH=$PKG_CONFIG_PATH/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig pkg-config x11 diff --git a/packages/conf-libX11/conf-libX11.1/opam b/packages/conf-libX11/conf-libX11.1/opam new file mode 100644 index 000000000000..f110749be4b7 --- /dev/null +++ b/packages/conf-libX11/conf-libX11.1/opam @@ -0,0 +1,22 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://github.com/ocaml/opam-repository/issues" +authors: ["X.Org Foundation"] +homepage: "https://www.x.org" +license: "MIT" +build: [ + ["pkg-config" "x11"] {os != "macos"} + ["./pkg-osx.sh"] {os = "macos"} +] +depends: ["conf-pkg-config" {build}] +depexts: [ + ["libx11-dev"] {os-distribution = "debian" | os-distribution = "ubuntu"} + ["libX11-devel"] {os-distribution = "centos" | os-distribution = "oraclelinux" | os-distribution = "fedora" | os-distribution = "opensuse"} + ["libx11-dev"] {os-distribution = "alpine"} + ["libx11`"] {os-distribution = "archlinux"} + ["libX11-dev"] {os-distribution = "cygwin"} +] +synopsis: "Virtual package relying on an Xlib system installation" +description: + "This package can only install if Xlib (libX11) is installed on the system." +extra-files: ["pkg-osx.sh" "md5=af634765ff5d52ee1b858b679f0e5c28"] diff --git a/packages/graphics/graphics.3.07+1/files/META b/packages/graphics/graphics.3.07+1/files/META new file mode 100644 index 000000000000..1ae154e492e7 --- /dev/null +++ b/packages/graphics/graphics.3.07+1/files/META @@ -0,0 +1,6 @@ +version = "3.07+1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.07+1/files/install.sh b/packages/graphics/graphics.3.07+1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.07+1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.07+1/opam b/packages/graphics/graphics.3.07+1/opam new file mode 100644 index 000000000000..12ba6c264e3a --- /dev/null +++ b/packages/graphics/graphics.3.07+1/opam @@ -0,0 +1,42 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.07+1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=f6e58fde0430a780b9328f930fa23e34"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.07/ocaml-3.07.tar.gz" + checksum: "md5=2dd038055f5e1350078ad81270411b78" +} +patches: ["ocaml-3.07-patch1.diffs" "PR5477.patch"] +extra-source "ocaml-3.07-patch1.diffs" { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.07/ocaml-3.07-patch1.diffs" + checksum: "md5=50e158dee599e00a4b9b93041ea9d21f" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} diff --git a/packages/graphics/graphics.3.07+2/files/META b/packages/graphics/graphics.3.07+2/files/META new file mode 100644 index 000000000000..125bdaf6f6a2 --- /dev/null +++ b/packages/graphics/graphics.3.07+2/files/META @@ -0,0 +1,6 @@ +version = "3.07+2" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.07+2/files/install.sh b/packages/graphics/graphics.3.07+2/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.07+2/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.07+2/opam b/packages/graphics/graphics.3.07+2/opam new file mode 100644 index 000000000000..f991549a47c0 --- /dev/null +++ b/packages/graphics/graphics.3.07+2/opam @@ -0,0 +1,42 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.07+2"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=1a7f3c4e05f1149a33cde0c99a825cf2"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.07/ocaml-3.07.tar.gz" + checksum: "md5=2dd038055f5e1350078ad81270411b78" +} +patches: ["ocaml-3.07-patch2.diffs" "PR5477.patch"] +extra-source "ocaml-3.07-patch2.diffs" { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.07/ocaml-3.07-patch2.diffs" + checksum: "md5=f91d1f1e531f77011bd554817dbbc12a" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} diff --git a/packages/graphics/graphics.3.07/files/META b/packages/graphics/graphics.3.07/files/META new file mode 100644 index 000000000000..6efedb1a2d51 --- /dev/null +++ b/packages/graphics/graphics.3.07/files/META @@ -0,0 +1,6 @@ +version = "3.07" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.07/files/install.sh b/packages/graphics/graphics.3.07/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.07/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.07/opam b/packages/graphics/graphics.3.07/opam new file mode 100644 index 000000000000..35f2335f467e --- /dev/null +++ b/packages/graphics/graphics.3.07/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.07"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=9eb0c8a52e8471b88e9e409a1c957e12"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.07/ocaml-3.07.tar.gz" + checksum: "md5=2dd038055f5e1350078ad81270411b78" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.08.0/files/META b/packages/graphics/graphics.3.08.0/files/META new file mode 100644 index 000000000000..1e8381298196 --- /dev/null +++ b/packages/graphics/graphics.3.08.0/files/META @@ -0,0 +1,6 @@ +version = "3.08.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.08.0/files/install.sh b/packages/graphics/graphics.3.08.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.08.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.08.0/opam b/packages/graphics/graphics.3.08.0/opam new file mode 100644 index 000000000000..a09a5aded548 --- /dev/null +++ b/packages/graphics/graphics.3.08.0/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.08.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=961fe5a2565659f760714aa612003e16"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.08/ocaml-3.08.0.tar.gz" + checksum: "md5=c6ef478362295c150101cdd2efcd38e0" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.08.1/files/META b/packages/graphics/graphics.3.08.1/files/META new file mode 100644 index 000000000000..94a1be9aca26 --- /dev/null +++ b/packages/graphics/graphics.3.08.1/files/META @@ -0,0 +1,6 @@ +version = "3.08.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.08.1/files/install.sh b/packages/graphics/graphics.3.08.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.08.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.08.1/opam b/packages/graphics/graphics.3.08.1/opam new file mode 100644 index 000000000000..0ab41d5ced76 --- /dev/null +++ b/packages/graphics/graphics.3.08.1/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.08.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=0d6d202f61796aa9508ac0311e57d945"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.08/ocaml-3.08.1.tar.gz" + checksum: "md5=8a32dd665d0d8fc08a027e1b8f68a001" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.08.2/files/META b/packages/graphics/graphics.3.08.2/files/META new file mode 100644 index 000000000000..1c5d3b876807 --- /dev/null +++ b/packages/graphics/graphics.3.08.2/files/META @@ -0,0 +1,6 @@ +version = "3.08.2" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.08.2/files/install.sh b/packages/graphics/graphics.3.08.2/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.08.2/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.08.2/opam b/packages/graphics/graphics.3.08.2/opam new file mode 100644 index 000000000000..bb01ba5014a4 --- /dev/null +++ b/packages/graphics/graphics.3.08.2/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.08.2"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=2727e5311f1a49dd8d1f97a25b5919f7"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.08/ocaml-3.08.2.tar.gz" + checksum: "md5=b79358a09884f5e679433cce284de43e" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.08.3/files/META b/packages/graphics/graphics.3.08.3/files/META new file mode 100644 index 000000000000..619f0e5f735d --- /dev/null +++ b/packages/graphics/graphics.3.08.3/files/META @@ -0,0 +1,6 @@ +version = "3.08.3" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.08.3/files/install.sh b/packages/graphics/graphics.3.08.3/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.08.3/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.08.3/opam b/packages/graphics/graphics.3.08.3/opam new file mode 100644 index 000000000000..23e4a7039343 --- /dev/null +++ b/packages/graphics/graphics.3.08.3/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.08.3"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=b50edf3568bbaf94fa4c954dd6c19cb8"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.08/ocaml-3.08.3.tar.gz" + checksum: "md5=b1fc455aca6980e02e8cce8a3cbb4c81" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.08.4/files/META b/packages/graphics/graphics.3.08.4/files/META new file mode 100644 index 000000000000..a91f59106254 --- /dev/null +++ b/packages/graphics/graphics.3.08.4/files/META @@ -0,0 +1,6 @@ +version = "3.08.4" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.08.4/files/install.sh b/packages/graphics/graphics.3.08.4/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.08.4/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.08.4/opam b/packages/graphics/graphics.3.08.4/opam new file mode 100644 index 000000000000..8cb395590a84 --- /dev/null +++ b/packages/graphics/graphics.3.08.4/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.08.4"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=e6fef7b54d6a3369acd4a45320ba39ad"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.08/ocaml-3.08.4.tar.gz" + checksum: "md5=105d192896bf945b660c4fb1ee486f57" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.09.0/files/META b/packages/graphics/graphics.3.09.0/files/META new file mode 100644 index 000000000000..942cc76aa9db --- /dev/null +++ b/packages/graphics/graphics.3.09.0/files/META @@ -0,0 +1,6 @@ +version = "3.09.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.09.0/files/install.sh b/packages/graphics/graphics.3.09.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.09.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.09.0/opam b/packages/graphics/graphics.3.09.0/opam new file mode 100644 index 000000000000..d49c1af04962 --- /dev/null +++ b/packages/graphics/graphics.3.09.0/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.09.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=8d738ec6dfd11acca9d378d7a3e4f07b"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.0.tar.gz" + checksum: "md5=5445b3fba28291fe789797d10cef3431" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.09.1/files/META b/packages/graphics/graphics.3.09.1/files/META new file mode 100644 index 000000000000..f82245890e79 --- /dev/null +++ b/packages/graphics/graphics.3.09.1/files/META @@ -0,0 +1,6 @@ +version = "3.09.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.09.1/files/install.sh b/packages/graphics/graphics.3.09.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.09.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.09.1/opam b/packages/graphics/graphics.3.09.1/opam new file mode 100644 index 000000000000..43acdcf07ab9 --- /dev/null +++ b/packages/graphics/graphics.3.09.1/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.09.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=69cd40daf367bb1a20087666dbf69bd7"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.1.tar.gz" + checksum: "md5=c73f4b093e27ba5bf13d62923f89befc" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.09.2/files/META b/packages/graphics/graphics.3.09.2/files/META new file mode 100644 index 000000000000..63e4ed1369b0 --- /dev/null +++ b/packages/graphics/graphics.3.09.2/files/META @@ -0,0 +1,6 @@ +version = "3.09.2" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.09.2/files/install.sh b/packages/graphics/graphics.3.09.2/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.09.2/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.09.2/opam b/packages/graphics/graphics.3.09.2/opam new file mode 100644 index 000000000000..0affbf366ca6 --- /dev/null +++ b/packages/graphics/graphics.3.09.2/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.09.2"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=0ce5b893ec778b7859a434771c4d1e02"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.2.tar.gz" + checksum: "md5=dc4a298cfa8c65fe4e506a06fe514ccd" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.09.3/files/META b/packages/graphics/graphics.3.09.3/files/META new file mode 100644 index 000000000000..dd545e6c0489 --- /dev/null +++ b/packages/graphics/graphics.3.09.3/files/META @@ -0,0 +1,6 @@ +version = "3.09.3" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.09.3/files/install.sh b/packages/graphics/graphics.3.09.3/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.09.3/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.09.3/opam b/packages/graphics/graphics.3.09.3/opam new file mode 100644 index 000000000000..b92268fce8d6 --- /dev/null +++ b/packages/graphics/graphics.3.09.3/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.09.3"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=86128bc99793cd2ee5fb7e135ccb83c2"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.09/ocaml-3.09.3.tar.gz" + checksum: "md5=11a91651007f70a2cb4d5ecfe20fab89" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.09.3.patch" + checksum: "md5=0431293b171ef2d09a5dd456dfe43629" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.10.0/files/META b/packages/graphics/graphics.3.10.0/files/META new file mode 100644 index 000000000000..21069bc85ac4 --- /dev/null +++ b/packages/graphics/graphics.3.10.0/files/META @@ -0,0 +1,6 @@ +version = "3.10.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.10.0/files/install.sh b/packages/graphics/graphics.3.10.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.10.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.10.0/opam b/packages/graphics/graphics.3.10.0/opam new file mode 100644 index 000000000000..8d4246eef010 --- /dev/null +++ b/packages/graphics/graphics.3.10.0/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.10.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=ac0d96fd384df78a13a76c187176b31a"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://caml.inria.fr/pub/distrib/ocaml-3.10/ocaml-3.10.0.tar.gz" + checksum: "md5=5ec0b860730925f738d91ca96d692406" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-3.10.0.patch" + checksum: "md5=4a7e7f226eb734915590e439b7a44060" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.10.1/files/META b/packages/graphics/graphics.3.10.1/files/META new file mode 100644 index 000000000000..27cc80b28f37 --- /dev/null +++ b/packages/graphics/graphics.3.10.1/files/META @@ -0,0 +1,6 @@ +version = "3.10.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.10.1/files/install.sh b/packages/graphics/graphics.3.10.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.10.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.10.1/opam b/packages/graphics/graphics.3.10.1/opam new file mode 100644 index 000000000000..47451758e2f2 --- /dev/null +++ b/packages/graphics/graphics.3.10.1/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.10.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=dc80f671a9f534fc1c71e1f0af2f466f"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-3.10/ocaml-3.10.1.tar.gz" + checksum: "md5=04fbe476b7f633a910429106e02d9948" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.10.2.patch" + checksum: "md5=a447570fb902ee514f0d35705ca45c8f" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.10.2/files/META b/packages/graphics/graphics.3.10.2/files/META new file mode 100644 index 000000000000..5cd8f9f43f3c --- /dev/null +++ b/packages/graphics/graphics.3.10.2/files/META @@ -0,0 +1,6 @@ +version = "3.10.2" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.10.2/files/install.sh b/packages/graphics/graphics.3.10.2/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.10.2/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.10.2/opam b/packages/graphics/graphics.3.10.2/opam new file mode 100644 index 000000000000..c72815fc9c97 --- /dev/null +++ b/packages/graphics/graphics.3.10.2/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.10.2"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=db69e7e01cb7736ead422c937e3bd57d"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-3.10/ocaml-3.10.2.tar.gz" + checksum: "md5=52c795592c90ecb15c2c4754f04eeff4" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.10.2.patch" + checksum: "md5=a447570fb902ee514f0d35705ca45c8f" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.11.0/files/META b/packages/graphics/graphics.3.11.0/files/META new file mode 100644 index 000000000000..63624236b1b0 --- /dev/null +++ b/packages/graphics/graphics.3.11.0/files/META @@ -0,0 +1,6 @@ +version = "3.11.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.11.0/files/install.sh b/packages/graphics/graphics.3.11.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.11.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.11.0/opam b/packages/graphics/graphics.3.11.0/opam new file mode 100644 index 000000000000..a6e435300df3 --- /dev/null +++ b/packages/graphics/graphics.3.11.0/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.11.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=83f5a2b8be7e314379d26c4d51b9d32c"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-3.11/ocaml-3.11.0.tar.gz" + checksum: "md5=be152066bdf09761ddf1c31291e5cb90" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.12.1.patch" + checksum: "md5=f81b445f189af91b18c1a6fa5bcb9ac4" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.11.1/files/META b/packages/graphics/graphics.3.11.1/files/META new file mode 100644 index 000000000000..4ec756726cca --- /dev/null +++ b/packages/graphics/graphics.3.11.1/files/META @@ -0,0 +1,6 @@ +version = "3.11.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.11.1/files/install.sh b/packages/graphics/graphics.3.11.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.11.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.11.1/opam b/packages/graphics/graphics.3.11.1/opam new file mode 100644 index 000000000000..227e4cf84e1a --- /dev/null +++ b/packages/graphics/graphics.3.11.1/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.11.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=55f6343ff2de3907060679f0f31ec910"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-3.11/ocaml-3.11.1.tar.gz" + checksum: "md5=069aa55d40e548280f92af693f6c625a" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.12.1.patch" + checksum: "md5=f81b445f189af91b18c1a6fa5bcb9ac4" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.3.11.2/files/META b/packages/graphics/graphics.3.11.2/files/META new file mode 100644 index 000000000000..cf1190d8f6d2 --- /dev/null +++ b/packages/graphics/graphics.3.11.2/files/META @@ -0,0 +1,6 @@ +version = "3.11.2" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.11.2/files/install.sh b/packages/graphics/graphics.3.11.2/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.11.2/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.11.2/opam b/packages/graphics/graphics.3.11.2/opam new file mode 100644 index 000000000000..d1cb1526991d --- /dev/null +++ b/packages/graphics/graphics.3.11.2/opam @@ -0,0 +1,42 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.11.2"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=4703dbfd3b8aec0cabec32086a4e90dd"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-3.11/ocaml-3.11.2.tar.gz" + checksum: "md5=9d0611245122ffbc8263735cae1da7fb" +} +patches: ["3.11.2_binutils.patch" "PR5477.patch"] +extra-source "3.11.2_binutils.patch" { + src: "http://www.ocamlpro.com/patches/3.11.2_binutils.patch" + checksum: "md5=041f12c823520d687a7bbbce10cd57e3" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.12.1.patch" + checksum: "md5=f81b445f189af91b18c1a6fa5bcb9ac4" +} diff --git a/packages/graphics/graphics.3.12.0/files/META b/packages/graphics/graphics.3.12.0/files/META new file mode 100644 index 000000000000..d84ab408f9b2 --- /dev/null +++ b/packages/graphics/graphics.3.12.0/files/META @@ -0,0 +1,6 @@ +version = "3.12.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.12.0/files/install.sh b/packages/graphics/graphics.3.12.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.12.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.12.0/opam b/packages/graphics/graphics.3.12.0/opam new file mode 100644 index 000000000000..02004145011a --- /dev/null +++ b/packages/graphics/graphics.3.12.0/opam @@ -0,0 +1,42 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.12.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=b1ca11d3ca48378167c67d197e8e6991"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.0.tar.gz" + checksum: "md5=3ba7cc65123c3579f14e7c726d3ee782" +} +patches: ["file_download.php?file_id=418&type=bug" "PR5477.patch"] +extra-source "file_download.php?file_id=418extra-source {type=bug" { + src: "http://caml.inria.fr/mantis/file_download.php?file_id=418&type=bug" + checksum: "md5=8c664a0a346424ea2ec6fc6f713170c6" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.12.1.patch" + checksum: "md5=f81b445f189af91b18c1a6fa5bcb9ac4" +} diff --git a/packages/graphics/graphics.3.12.1/files/META b/packages/graphics/graphics.3.12.1/files/META new file mode 100644 index 000000000000..27c3d0ee42a6 --- /dev/null +++ b/packages/graphics/graphics.3.12.1/files/META @@ -0,0 +1,6 @@ +version = "3.12.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.3.12.1/files/install.sh b/packages/graphics/graphics.3.12.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.3.12.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.3.12.1/opam b/packages/graphics/graphics.3.12.1/opam new file mode 100644 index 000000000000..583b7097d0bb --- /dev/null +++ b/packages/graphics/graphics.3.12.1/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "3.12.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=767c34b30a819f997086c71315a657d2"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-3.12/ocaml-3.12.1.tar.gz" + checksum: "md5=814a047085f0f901ab7d8e3a4b7a9e65" +} +extra-source "PR5477.patch" { + src: + "https://raw.githubusercontent.com/metastack/ocaml-legacy/master/PR5477-to-3.12.1.patch" + checksum: "md5=f81b445f189af91b18c1a6fa5bcb9ac4" +} +patches: ["PR5477.patch"] diff --git a/packages/graphics/graphics.4.00.0/files/META b/packages/graphics/graphics.4.00.0/files/META new file mode 100644 index 000000000000..573850f95b32 --- /dev/null +++ b/packages/graphics/graphics.4.00.0/files/META @@ -0,0 +1,6 @@ +version = "4.00.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.00.0/files/install.sh b/packages/graphics/graphics.4.00.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.00.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.00.0/opam b/packages/graphics/graphics.4.00.0/opam new file mode 100644 index 000000000000..05195a3bf97a --- /dev/null +++ b/packages/graphics/graphics.4.00.0/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.00.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=54cd1e08d3a25fe63c4306da64cddf63"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-4.00/ocaml-4.00.0.tar.gz" + checksum: "md5=fa11560a45793bd9fa45c1295a6f4a91" +} diff --git a/packages/graphics/graphics.4.00.1/files/META b/packages/graphics/graphics.4.00.1/files/META new file mode 100644 index 000000000000..c294d73b665a --- /dev/null +++ b/packages/graphics/graphics.4.00.1/files/META @@ -0,0 +1,6 @@ +version = "4.00.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.00.1/files/install.sh b/packages/graphics/graphics.4.00.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.00.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.00.1/opam b/packages/graphics/graphics.4.00.1/opam new file mode 100644 index 000000000000..ac09c9a75226 --- /dev/null +++ b/packages/graphics/graphics.4.00.1/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.00.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=04e7e003625ce06386922aec2eafdd19"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-4.00/ocaml-4.00.1.tar.gz" + checksum: "md5=91124a8eb12a57f1e56c02fe3db0f9e7" +} +patches: "bd7fa181cb64742c3b6cbb8ee13436554eb18cd7...fix-clang-build.diff" +extra-source "bd7fa181cb64742c3b6cbb8ee13436554eb18cd7...fix-clang-build.diff" { + src: + "https://github.com/diml/ocaml/compare/bd7fa181cb64742c3b6cbb8ee13436554eb18cd7...fix-clang-build.diff" + checksum: "md5=faccda3b3ab092fa9ac7d5d4d8beb004" +} diff --git a/packages/graphics/graphics.4.01.0/files/META b/packages/graphics/graphics.4.01.0/files/META new file mode 100644 index 000000000000..79af9967dee9 --- /dev/null +++ b/packages/graphics/graphics.4.01.0/files/META @@ -0,0 +1,6 @@ +version = "4.01.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.01.0/files/install.sh b/packages/graphics/graphics.4.01.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.01.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.01.0/opam b/packages/graphics/graphics.4.01.0/opam new file mode 100644 index 000000000000..87dc36c12bf8 --- /dev/null +++ b/packages/graphics/graphics.4.01.0/opam @@ -0,0 +1,38 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.01.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=1974c4336a8f9c6157905c053b221eaf"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-4.01/ocaml-4.01.0.tar.gz" + checksum: "md5=04dfdd7da189462a4f10ec6530359cef" +} +patches: "bd7fa181cb64742c3b6cbb8ee13436554eb18cd7...fix-clang-build.diff" +extra-source "bd7fa181cb64742c3b6cbb8ee13436554eb18cd7...fix-clang-build.diff" { + src: + "https://github.com/diml/ocaml/compare/bd7fa181cb64742c3b6cbb8ee13436554eb18cd7...fix-clang-build.diff" + checksum: "md5=faccda3b3ab092fa9ac7d5d4d8beb004" +} diff --git a/packages/graphics/graphics.4.02.0/files/META b/packages/graphics/graphics.4.02.0/files/META new file mode 100644 index 000000000000..226134cd986e --- /dev/null +++ b/packages/graphics/graphics.4.02.0/files/META @@ -0,0 +1,6 @@ +version = "4.02.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.02.0/files/install.sh b/packages/graphics/graphics.4.02.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.02.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.02.0/opam b/packages/graphics/graphics.4.02.0/opam new file mode 100644 index 000000000000..2f7021219650 --- /dev/null +++ b/packages/graphics/graphics.4.02.0/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.02.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=8943881cd051666e6c307087643d4ada"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.0.tar.gz" + checksum: "md5=8bba7e7d872083af1723dd450e07a5f4" +} diff --git a/packages/graphics/graphics.4.02.1/files/META b/packages/graphics/graphics.4.02.1/files/META new file mode 100644 index 000000000000..9cf9eac6dd3a --- /dev/null +++ b/packages/graphics/graphics.4.02.1/files/META @@ -0,0 +1,6 @@ +version = "4.02.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.02.1/files/install.sh b/packages/graphics/graphics.4.02.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.02.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.02.1/opam b/packages/graphics/graphics.4.02.1/opam new file mode 100644 index 000000000000..42ab1b1d565e --- /dev/null +++ b/packages/graphics/graphics.4.02.1/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.02.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=5c02a61527a7c0c40a98e5a7ae427ba0"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.1.tar.gz" + checksum: "md5=3c35318eefd201f96797c093c920b343" +} diff --git a/packages/graphics/graphics.4.02.2/files/META b/packages/graphics/graphics.4.02.2/files/META new file mode 100644 index 000000000000..fdb5fe5be23f --- /dev/null +++ b/packages/graphics/graphics.4.02.2/files/META @@ -0,0 +1,6 @@ +version = "4.02.2" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.02.2/files/install.sh b/packages/graphics/graphics.4.02.2/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.02.2/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.02.2/opam b/packages/graphics/graphics.4.02.2/opam new file mode 100644 index 000000000000..dcf79245717b --- /dev/null +++ b/packages/graphics/graphics.4.02.2/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.02.2"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=77bc9f43ef46792d12f2a65f54b70e11"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.2.tar.gz" + checksum: "md5=359ad0ef89717341767142f2a4d050b2" +} diff --git a/packages/graphics/graphics.4.02.3/files/META b/packages/graphics/graphics.4.02.3/files/META new file mode 100644 index 000000000000..c5124976a46f --- /dev/null +++ b/packages/graphics/graphics.4.02.3/files/META @@ -0,0 +1,6 @@ +version = "4.02.3" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.02.3/files/install.sh b/packages/graphics/graphics.4.02.3/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.02.3/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.02.3/opam b/packages/graphics/graphics.4.02.3/opam new file mode 100644 index 000000000000..68481669374d --- /dev/null +++ b/packages/graphics/graphics.4.02.3/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.02.3"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=c74f9b314f88d8582643240aa453ee06"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "http://caml.inria.fr/pub/distrib/ocaml-4.02/ocaml-4.02.3.tar.gz" + checksum: "md5=ef1a324608c97031cbd92a442d685ab7" +} diff --git a/packages/graphics/graphics.4.03.0/files/META b/packages/graphics/graphics.4.03.0/files/META new file mode 100644 index 000000000000..982fc46df28b --- /dev/null +++ b/packages/graphics/graphics.4.03.0/files/META @@ -0,0 +1,6 @@ +version = "4.03.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.03.0/files/install.sh b/packages/graphics/graphics.4.03.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.03.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.03.0/opam b/packages/graphics/graphics.4.03.0/opam new file mode 100644 index 000000000000..d3f8d76e3552 --- /dev/null +++ b/packages/graphics/graphics.4.03.0/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.03.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=791555f7f4432e51c8290ff66733dfb2"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://github.com/ocaml/ocaml/archive/4.03.0.tar.gz" + checksum: "md5=4ddf4977de7708f11adad692c63e87ec" +} diff --git a/packages/graphics/graphics.4.04.0/files/META b/packages/graphics/graphics.4.04.0/files/META new file mode 100644 index 000000000000..9e03e87e9b5d --- /dev/null +++ b/packages/graphics/graphics.4.04.0/files/META @@ -0,0 +1,6 @@ +version = "4.04.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.04.0/files/install.sh b/packages/graphics/graphics.4.04.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.04.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.04.0/opam b/packages/graphics/graphics.4.04.0/opam new file mode 100644 index 000000000000..e3244da2ee75 --- /dev/null +++ b/packages/graphics/graphics.4.04.0/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.04.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=95713ee345737b9da7718c292e6d6ef8"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://github.com/ocaml/ocaml/archive/4.04.0.tar.gz" + checksum: "md5=dbf5f869bf0621d2922547b671b36566" +} diff --git a/packages/graphics/graphics.4.04.1/files/META b/packages/graphics/graphics.4.04.1/files/META new file mode 100644 index 000000000000..9fbbb4b48932 --- /dev/null +++ b/packages/graphics/graphics.4.04.1/files/META @@ -0,0 +1,6 @@ +version = "4.04.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.04.1/files/install.sh b/packages/graphics/graphics.4.04.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.04.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.04.1/opam b/packages/graphics/graphics.4.04.1/opam new file mode 100644 index 000000000000..d317609e6513 --- /dev/null +++ b/packages/graphics/graphics.4.04.1/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.04.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=63a55d5f69cc6cc078e7ed72801dee3d"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://github.com/ocaml/ocaml/archive/4.04.1.tar.gz" + checksum: "md5=ca6f8d941c4c86c43cccb29ae2a9cd0e" +} diff --git a/packages/graphics/graphics.4.04.2/files/META b/packages/graphics/graphics.4.04.2/files/META new file mode 100644 index 000000000000..f5a1570ba67b --- /dev/null +++ b/packages/graphics/graphics.4.04.2/files/META @@ -0,0 +1,6 @@ +version = "4.04.2" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.04.2/files/install.sh b/packages/graphics/graphics.4.04.2/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.04.2/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.04.2/opam b/packages/graphics/graphics.4.04.2/opam new file mode 100644 index 000000000000..ce7e9179572d --- /dev/null +++ b/packages/graphics/graphics.4.04.2/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.04.2"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=2c3de0f5eb1b86bba95718f8b001da99"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://github.com/ocaml/ocaml/archive/4.04.2.tar.gz" + checksum: "md5=5ce661a2d8b760dc77c2facf46ccddd1" +} diff --git a/packages/graphics/graphics.4.05.0/files/META b/packages/graphics/graphics.4.05.0/files/META new file mode 100644 index 000000000000..af73d93b35e3 --- /dev/null +++ b/packages/graphics/graphics.4.05.0/files/META @@ -0,0 +1,6 @@ +version = "4.05.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.05.0/files/install.sh b/packages/graphics/graphics.4.05.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.05.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.05.0/opam b/packages/graphics/graphics.4.05.0/opam new file mode 100644 index 000000000000..5b9dbd342cdd --- /dev/null +++ b/packages/graphics/graphics.4.05.0/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.05.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=398c8af98e1dfbf0d79f77064c9e9c3e"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://github.com/ocaml/ocaml/archive/4.05.0.tar.gz" + checksum: "md5=7e0079162134336a24b9028349c756bb" +} diff --git a/packages/graphics/graphics.4.06.0/files/META b/packages/graphics/graphics.4.06.0/files/META new file mode 100644 index 000000000000..407b982ec426 --- /dev/null +++ b/packages/graphics/graphics.4.06.0/files/META @@ -0,0 +1,6 @@ +version = "4.06.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.06.0/files/install.sh b/packages/graphics/graphics.4.06.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.06.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.06.0/opam b/packages/graphics/graphics.4.06.0/opam new file mode 100644 index 000000000000..dd88d71dc622 --- /dev/null +++ b/packages/graphics/graphics.4.06.0/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.06.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=b7926af7a2d12f22444e75806fc7e4e9"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://github.com/ocaml/ocaml/archive/4.06.0.tar.gz" + checksum: "md5=4f3906e581181c5435078ffe3e485e3f" +} diff --git a/packages/graphics/graphics.4.06.1/files/META b/packages/graphics/graphics.4.06.1/files/META new file mode 100644 index 000000000000..4200747b832a --- /dev/null +++ b/packages/graphics/graphics.4.06.1/files/META @@ -0,0 +1,6 @@ +version = "4.06.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.06.1/files/install.sh b/packages/graphics/graphics.4.06.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.06.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.06.1/opam b/packages/graphics/graphics.4.06.1/opam new file mode 100644 index 000000000000..01fad124cc64 --- /dev/null +++ b/packages/graphics/graphics.4.06.1/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.06.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=3eda975bdab4a82a6fe8311fa2df031a"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://github.com/ocaml/ocaml/archive/4.06.1.tar.gz" + checksum: "md5=d02eb67b828de22c3f97d94b3c46acba" +} diff --git a/packages/graphics/graphics.4.07.0/files/META b/packages/graphics/graphics.4.07.0/files/META new file mode 100644 index 000000000000..ca3a50f4608f --- /dev/null +++ b/packages/graphics/graphics.4.07.0/files/META @@ -0,0 +1,6 @@ +version = "4.07.0" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.07.0/files/install.sh b/packages/graphics/graphics.4.07.0/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.07.0/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.07.0/opam b/packages/graphics/graphics.4.07.0/opam new file mode 100644 index 000000000000..c424c57162c8 --- /dev/null +++ b/packages/graphics/graphics.4.07.0/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.07.0"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=317bad0da80f02a9993e6bd70d3328b1"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://github.com/ocaml/ocaml/archive/4.07.0.tar.gz" + checksum: "md5=1f78bb35a2f15d5ec737ee6a8dc6890d" +} diff --git a/packages/graphics/graphics.4.07.1/files/META b/packages/graphics/graphics.4.07.1/files/META new file mode 100644 index 000000000000..01c86642b085 --- /dev/null +++ b/packages/graphics/graphics.4.07.1/files/META @@ -0,0 +1,6 @@ +version = "4.07.1" +description = "Portable drawing primitives" +archive(byte) = "graphics.cma" +archive(native) = "graphics.cmxa" +plugin(byte) = "graphics.cma" +plugin(native) = "graphics.cmxs" diff --git a/packages/graphics/graphics.4.07.1/files/install.sh b/packages/graphics/graphics.4.07.1/files/install.sh new file mode 100755 index 000000000000..84313440c9e3 --- /dev/null +++ b/packages/graphics/graphics.4.07.1/files/install.sh @@ -0,0 +1,68 @@ +#!/bin/sh + +if test -e "`ocamlopt -where 2>/dev/null || ocamlc -where`/graphics.cmi" ; then + # Graphics library already installed + exit 0 +fi + +VERSION=`ocamlopt -version 2>/dev/null || ocamlc -version` +VERSION=`echo $VERSION | sed -e 's/[+.]//g'` + +# Installation variables in the Makefile altered with 4.02.0 +if test $VERSION -ge 4020 ; then + K_LIBDIR=INSTALL_LIBDIR + K_STUBLIBDIR=INSTALL_STUBLIBDIR +else + K_LIBDIR=LIBDIR + K_STUBLIBDIR=STUBLIBDIR +fi + +if test "$1" = "build" ; then + # For system compilers, use the real OCaml LIBDIR, otherwise use the opam one + if $2 ; then + OCAML_LIBDIR="`ocamlopt -where 2>/dev/null || ocamlc -where`" + else + OCAML_LIBDIR="$3" + fi + + # Configure the source tree + if test $VERSION -ge 3090 ; then + if test $VERSION -ge 4040 ; then + # reconfigure target introduced in 4.04.0 + cp "$OCAML_LIBDIR/Makefile.config" config/Makefile + $4 reconfigure + else + # Otherwise, execute the first line from Makefile.config (which includes + # the arguments used) + `sed -ne '1s/# generated by //p' "$OCAML_LIBDIR/Makefile.config"` + fi + else + # Prior to OCaml 3.09.0, config/Makefile wasn't installed, so we just have + # to make a buest guess + ./configure -libdir "$OCAML_LIBDIR" + fi + + # Build the library + $4 -C otherlibs/graph CAMLC=ocamlc CAMLOPT=ocamlopt MKLIB=ocamlmklib all $5 + + if ! $2 ; then + # System compilers must always have META installed (since ocamlfind either + # won't have installed it, or won't create it when installed), but otherwise + # it should only be installed if ocamlfind is already installed (since a + # subsequent installation will detect the graphics library and install META) + if ! test -e "$3/topfind" ; then + rm META + fi + fi +else + if test -e META ; then + mkdir -p "$3" + cp -f META "$3/META" + fi + + if $2 ; then + $4 "$K_LIBDIR=$3" "$K_STUBLIBDIR=$5" -C otherlibs/graph install $6 + else + $4 -C otherlibs/graph install $6 + fi +fi diff --git a/packages/graphics/graphics.4.07.1/opam b/packages/graphics/graphics.4.07.1/opam new file mode 100644 index 000000000000..41e3edb8ebeb --- /dev/null +++ b/packages/graphics/graphics.4.07.1/opam @@ -0,0 +1,32 @@ +opam-version: "2.0" +maintainer: "David Allsopp " +bug-reports: "https://caml.inria.fr/mantis" +dev-repo: "git+https://github.com/ocaml/ocaml.git" +authors: [ "Xavier Leroy" + "Jun Furuse" + "J-M Geffroy" + "Jacob Navia" + "Pierre Weis" ] +homepage: "https://ocaml.org" +license: "LGPL-2.1 with OCaml linking exception" +build: [ + ["chmod" "+x" "install.sh"] + ["./install.sh" "build" "%{ocaml:preinstalled}%" "%{ocaml:lib}%" make "allopt" {ocaml:native}] +] +install: [ + ["./install.sh" "install" "%{ocaml:preinstalled}%" "%{_:lib}%" make stublibs "installopt" {ocaml:native}] +] +depends: [ + "conf-libX11" + "ocaml" {= "4.07.1"} +] +synopsis: "The OCaml graphics library" +description: + "Ensures that the OCaml graphics library is available, building it if needed." +extra-files: [ + ["META" "md5=2f8f3f6c0a50ab148492b6c50d19c1eb"] + ["install.sh" "md5=62f8421d654b8ed18b72c693bd58aef7"]] +url { + src: "https://github.com/ocaml/ocaml/archive/4.07.1.tar.gz" + checksum: "md5=352fe8d46cb238a26aa10c38bad6ecb6" +}