summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Gahde2018-06-28 21:23:52 +0200
committerJakob Gahde2018-06-28 21:23:52 +0200
commitdf63c838b8bff0c5ee63049a128e51435fa52523 (patch)
tree07896afe97dafffbab197d32b65c782433aedad4
parent264877b03e0fa325993022ef29f38b72cf5378aa (diff)
downloadaur-df63c838b8bff0c5ee63049a128e51435fa52523.tar.gz
ocaml-core_kernel 1:0.11.0-1: New version
-rw-r--r--.SRCINFO30
-rw-r--r--PKGBUILD31
-rw-r--r--libdir.patch36
3 files changed, 30 insertions, 67 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 18338acb875..10fcef79b92 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,34 +1,38 @@
# Generated by mksrcinfo v8
-# Tue Jun 6 09:26:52 UTC 2017
+# Thu Jun 28 19:23:20 UTC 2018
pkgbase = ocaml-core_kernel
pkgdesc = Industrial strength alternative to OCaml's standard library (system-independent part)
- pkgver = 113.33.03
+ pkgver = 0.11.0
pkgrel = 1
+ epoch = 1
url = https://github.com/janestreet/core_kernel
arch = i686
arch = x86_64
license = Apache
- makedepends = ocaml-findlib
- makedepends = ocaml-js-build-tools
- makedepends = opam
+ makedepends = dune
depends = ocaml
+ depends = ocaml-base
depends = ocaml-bin_prot
+ depends = ocaml-configurator
depends = ocaml-fieldslib
+ depends = ocaml-jane-street-headers
depends = ocaml-ppx_assert
- depends = ocaml-ppx_bench
- depends = ocaml-ppx_driver
- depends = ocaml-ppx_expect
+ depends = ocaml-ppx_base
+ depends = ocaml-ppx_hash
depends = ocaml-ppx_inline_test
depends = ocaml-ppx_jane
- depends = ocaml-result
+ depends = ocaml-ppx_sexp_conv
+ depends = ocaml-ppx_sexp_message
depends = ocaml-sexplib
+ depends = ocaml-splittable_random
+ depends = ocaml-stdio
depends = ocaml-typerep
depends = ocaml-variantslib
+ depends = ocaml-migrate-parsetree
+ depends = ocaml-ppxlib
options = !strip
- source = https://ocaml.janestreet.com/ocaml-core/113.33/files/core_kernel-113.33.03.tar.gz
- source = libdir.patch
- md5sums = e56da86bcb955e6d65a2da04a973b11f
- md5sums = 7f0a951f1ac87385272ea7a6dd58762a
+ source = https://ocaml.janestreet.com/ocaml-core/v0.11/files/core_kernel-v0.11.0.tar.gz
+ md5sums = ac08234f5799eba5009d04443ab35e8c
pkgname = ocaml-core_kernel
diff --git a/PKGBUILD b/PKGBUILD
index ec0016f2360..5a099ed9a49 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,35 +1,30 @@
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
pkgname=ocaml-core_kernel
-pkgver=113.33.03
+pkgver=0.11.0
pkgrel=1
+epoch=1
pkgdesc="Industrial strength alternative to OCaml's standard library (system-independent part)"
arch=('i686' 'x86_64')
url="https://github.com/janestreet/core_kernel"
license=('Apache')
-depends=('ocaml' 'ocaml-bin_prot' 'ocaml-fieldslib' 'ocaml-ppx_assert' 'ocaml-ppx_bench' 'ocaml-ppx_driver' 'ocaml-ppx_expect' 'ocaml-ppx_inline_test' 'ocaml-ppx_jane' 'ocaml-result' 'ocaml-sexplib' 'ocaml-typerep' 'ocaml-variantslib')
-makedepends=('ocaml-findlib' 'ocaml-js-build-tools' 'opam')
+depends=('ocaml' 'ocaml-base' 'ocaml-bin_prot' 'ocaml-configurator' 'ocaml-fieldslib' 'ocaml-jane-street-headers' 'ocaml-ppx_assert' 'ocaml-ppx_base' 'ocaml-ppx_hash' 'ocaml-ppx_inline_test' 'ocaml-ppx_jane' 'ocaml-ppx_sexp_conv' 'ocaml-ppx_sexp_message' 'ocaml-sexplib' 'ocaml-splittable_random' 'ocaml-stdio' 'ocaml-typerep' 'ocaml-variantslib' 'ocaml-migrate-parsetree' 'ocaml-ppxlib')
+makedepends=('dune')
options=('!strip')
-source=("https://ocaml.janestreet.com/ocaml-core/$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/${pkgname#ocaml-}-${pkgver}.tar.gz"
- "libdir.patch")
-md5sums=('e56da86bcb955e6d65a2da04a973b11f'
- '7f0a951f1ac87385272ea7a6dd58762a')
-
-prepare() {
- cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
-
- patch -Np1 < "${srcdir}/libdir.patch"
-}
+source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/core_kernel-v${pkgver}.tar.gz")
+md5sums=('ac08234f5799eba5009d04443ab35e8c')
build() {
- cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
+ cd "${srcdir}/core_kernel-v${pkgver}"
- ./configure --prefix /usr
- make
+ jbuilder build
}
package() {
- cd "${srcdir}/${pkgname#ocaml-}-${pkgver}"
+ cd "${srcdir}/core_kernel-v${pkgver}"
- make install LIBDIR="${pkgdir}$(ocamlc -where)"
+ install -dm755 "${pkgdir}$(ocamlfind -printconf destdir)" "${pkgdir}/usr/share"
+ jbuilder install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind -printconf destdir)"
+ mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
+ mv "${pkgdir}/usr/lib/ocaml/stubslibs" "${pkgdir}/usr/lib/ocaml/stublibs" # bug in opam
}
diff --git a/libdir.patch b/libdir.patch
deleted file mode 100644
index 6284fcd558b..00000000000
--- a/libdir.patch
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -aur package.pristine/Makefile package.new/Makefile
---- package.pristine/Makefile 2016-02-06 01:55:14.650150309 +0100
-+++ package.new/Makefile 2016-02-06 01:57:56.012174364 +0100
-@@ -29,26 +29,26 @@
- ocaml -I js-utils js-utils/gen_install.ml
-
- install: $(NAME).install
-- opam-installer -i --prefix $(PREFIX) $(NAME).install
-+ opam-installer -i --prefix $(PREFIX) --libdir $(LIBDIR) $(NAME).install
-
- uninstall: $(NAME).install
-- opam-installer -u --prefix $(PREFIX) $(NAME).install
-+ opam-installer -u --prefix $(PREFIX) --libdir $(LIBDIR) $(NAME).install
-
- reinstall: $(NAME).install
-- opam-installer -u --prefix $(PREFIX) $(NAME).install &> /dev/null || true
-- opam-installer -i --prefix $(PREFIX) $(NAME).install
-+ opam-installer -u --prefix $(PREFIX) --libdir $(LIBDIR) $(NAME).install &> /dev/null || true
-+ opam-installer -i --prefix $(PREFIX) --libdir $(LIBDIR) $(NAME).install
-
- bin.tar.gz: $(NAME).install
- rm -rf _install
- mkdir _install
-- opam-installer -i --prefix _install $(NAME).install
-+ opam-installer -i --prefix _install --libdir $(LIBDIR) $(NAME).install
- tar czf bin.tar.gz -C _install .
- rm -rf _install
-
- bin.lzo: $(NAME).install
- rm -rf _install
- mkdir _install
-- opam-installer -i --prefix _install $(NAME).install
-+ opam-installer -i --prefix _install --libdir $(LIBDIR) $(NAME).install
- cd _install && lzop -1 -P -o ../bin.lzo `find . -type f`
- rm -rf _install
-