diff options
author | Jakob Gahde | 2018-06-28 16:10:09 +0200 |
---|---|---|
committer | Jakob Gahde | 2018-06-28 16:10:09 +0200 |
commit | 38c82f978057421ba5c229ba8157407bc511da76 (patch) | |
tree | ca304bd02a03665e529cb69f9a22447822c2b790 | |
parent | ca2d7e7b9864d1aecd8f9e81ba915ce07068fa17 (diff) | |
download | aur-38c82f978057421ba5c229ba8157407bc511da76.tar.gz |
ocaml-ppx_assert 1:0.11.0-1: New version
-rw-r--r-- | .SRCINFO | 25 | ||||
-rw-r--r-- | PKGBUILD | 33 | ||||
-rw-r--r-- | exedir.patch | 10 | ||||
-rw-r--r-- | libdir.patch | 36 |
4 files changed, 21 insertions, 83 deletions
@@ -1,33 +1,26 @@ # Generated by mksrcinfo v8 -# Tue Jun 6 12:13:48 UTC 2017 +# Thu Jun 28 14:09:41 UTC 2018 pkgbase = ocaml-ppx_assert pkgdesc = Assert-like extension nodes that raise useful errors on failure - pkgver = 113.33.03 + pkgver = 0.11.0 pkgrel = 1 + epoch = 1 url = https://github.com/janestreet/ppx_assert 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-ppx_compare - depends = ocaml-ppx_core - depends = ocaml-ppx_driver depends = ocaml-ppx_here depends = ocaml-ppx_sexp_conv - depends = ocaml-ppx_tools - depends = ocaml-ppx_type_conv - depends = ocaml-sexplib + depends = ocaml-migrate-parsetree + depends = ocaml-ppxlib options = !strip options = !emptydirs - source = https://ocaml.janestreet.com/ocaml-core/113.33/files/ppx_assert-113.33.03.tar.gz - source = libdir.patch - source = exedir.patch - md5sums = 4da98302d2827397b6330451d44cd3e2 - md5sums = 7f0a951f1ac87385272ea7a6dd58762a - md5sums = 3f9ce9a72b72a54df6c1b54cdd24b110 + source = https://ocaml.janestreet.com/ocaml-core/v0.11/files/ppx_assert-v0.11.0.tar.gz + md5sums = 0b3aed19391e9a23217a5abf022dfe10 pkgname = ocaml-ppx_assert @@ -1,38 +1,29 @@ # Maintainer: Jakob Gahde <j5lx@fmail.co.uk> pkgname=ocaml-ppx_assert -pkgver=113.33.03 +pkgver=0.11.0 pkgrel=1 +epoch=1 pkgdesc="Assert-like extension nodes that raise useful errors on failure" arch=('i686' 'x86_64') url="https://github.com/janestreet/ppx_assert" license=('Apache') -depends=('ocaml' 'ocaml-ppx_compare' 'ocaml-ppx_core' 'ocaml-ppx_driver' 'ocaml-ppx_here' 'ocaml-ppx_sexp_conv' 'ocaml-ppx_tools' 'ocaml-ppx_type_conv' 'ocaml-sexplib') -makedepends=('ocaml-findlib' 'ocaml-js-build-tools' 'opam') +depends=('ocaml' 'ocaml-base' 'ocaml-ppx_compare' 'ocaml-ppx_here' 'ocaml-ppx_sexp_conv' 'ocaml-migrate-parsetree' 'ocaml-ppxlib') +makedepends=('dune') options=('!strip' '!emptydirs') -source=("https://ocaml.janestreet.com/ocaml-core/$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/${pkgname#ocaml-}-$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+\.[0-9]+").tar.gz" - "libdir.patch" - "exedir.patch") -md5sums=('4da98302d2827397b6330451d44cd3e2' - '7f0a951f1ac87385272ea7a6dd58762a' - '3f9ce9a72b72a54df6c1b54cdd24b110') - -prepare() { - cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" - - patch -Np1 < "${srcdir}/libdir.patch" - patch -Np1 < "${srcdir}/exedir.patch" -} +source=("https://ocaml.janestreet.com/ocaml-core/v$(echo ${pkgver} | grep -Po "^[0-9]+\.[0-9]+")/files/ppx_assert-v${pkgver}.tar.gz") +md5sums=('0b3aed19391e9a23217a5abf022dfe10') build() { - cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" + cd "${srcdir}/ppx_assert-v${pkgver}" - ./configure --prefix=/usr - make + jbuilder build } package() { - cd "${srcdir}/${pkgname#ocaml-}-${pkgver}" + cd "${srcdir}/ppx_assert-v${pkgver}" - make install PREFIX="${pkgdir}/usr" 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/" } diff --git a/exedir.patch b/exedir.patch deleted file mode 100644 index 2c8acfc550c6..000000000000 --- a/exedir.patch +++ /dev/null @@ -1,10 +0,0 @@ -diff -aur package.pristine/install.ml package.new/install.ml ---- package.pristine/install.ml 2016-07-29 13:32:19.341223767 +0200 -+++ package.new/install.ml 2016-07-29 13:32:33.834459844 +0200 -@@ -7,5 +7,5 @@ - [ oasis_lib "ppx_assert" - ; oasis_lib "ppx_assert_lib" - ; file "META" ~section:"lib" -- ; oasis_exe "ppx" ~dest:"../lib/ppx_assert/ppx" -+ ; oasis_exe "ppx" ~dest:"../lib/ocaml/ppx_assert/ppx" - ] diff --git a/libdir.patch b/libdir.patch deleted file mode 100644 index 6284fcd558b0..000000000000 --- 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 - |