From 7ba73be58ccc257a1ddacdd18fe32e90f3b59f2a Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 8 Feb 2017 16:23:59 +0000 Subject: ocaml-findlib: update to 1.7.1 --- abs/extra/ocaml-findlib/PKGBUILD | 47 ++++++++++++++++++++-------------- abs/extra/ocaml-findlib/makefile.patch | 13 ++++++++++ 2 files changed, 41 insertions(+), 19 deletions(-) create mode 100644 abs/extra/ocaml-findlib/makefile.patch diff --git a/abs/extra/ocaml-findlib/PKGBUILD b/abs/extra/ocaml-findlib/PKGBUILD index ce5bdff..efe122f 100644 --- a/abs/extra/ocaml-findlib/PKGBUILD +++ b/abs/extra/ocaml-findlib/PKGBUILD @@ -1,37 +1,46 @@ -# Maintainer: Lukas Fleischer -# Contributor: Thomas S Hatch -# Contributor: Sebastian Wiesner -# Contributor: Benjamin Andresen -# Contributor: scj +# $Id$ +# Maintainer: Alexander F Rødseth +# Contributor: Lukas Fleischer +# Contributor: Thomas S Hatch +# Contributor: Sebastian Wiesner +# Contributor: Benjamin Andresen +# Contributor: scj +# Contributor: Alif pkgname=ocaml-findlib -pkgver=1.5.5 -pkgrel=3 -license=('MIT') -arch=('i686' 'x86_64') -pkgdesc='Objective Caml (OCaml) package manager' +pkgver=1.7.1 +pkgrel=1 +pkgdesc='OCaml package manager' +arch=('x86_64' 'i686') url='http://projects.camlcity.org/projects/findlib.html' +license=('MIT') depends=('ocaml') +makedepends=('setconf') source=("http://download.camlcity.org/download/findlib-$pkgver.tar.gz") -md5sums=('703eae112f9e912507c3a2f8d8c48498') -options=('staticlibs' '!strip' 'zipman' '!makeflags') # otherwise the bytecode gets broken +sha256sums=('5d4b9a79e9abf8be0b509f6b8cf5696221cbe14fa2fbb2bb352342755fd15eef') +options=('staticlibs' '!strip' 'zipman' '!makeflags') build() { - cd "$srcdir/findlib-$pkgver" + cd "findlib-$pkgver" + + ./configure \ + -sitelib /usr/lib/ocaml \ + -config /etc/findlib.conf \ + -mandir /usr/share/man - ./configure -config /etc/findlib.conf -sitelib /usr/lib/ocaml -mandir /usr/share/man make all opt } package () { - cd "$srcdir/findlib-$pkgver" + cd "findlib-$pkgver" - make prefix="$pkgdir" install + make prefix="$pkgdir" install - # add the old site-lib to the path to maintain compatibility with old style packages - sed -i 's/path=\"\/usr\/lib\/ocaml\"/path="\/usr\/lib\/ocaml:\/usr\/lib\/ocaml\/site-lib"/' \ - "${pkgdir}/etc/findlib.conf" + # Add a directory to the path for compatibility with old-style packages + #setconf "$pkgdir/etc/findlib.conf" path='"/usr/lib/ocaml:/usr/lib/ocaml-site-lib"' install -m755 src/findlib/ocamlfind_opt "$pkgdir/usr/bin/" install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } + +# vim:set ts=2 sw=2 et: diff --git a/abs/extra/ocaml-findlib/makefile.patch b/abs/extra/ocaml-findlib/makefile.patch new file mode 100644 index 0000000..0e21a2d --- /dev/null +++ b/abs/extra/ocaml-findlib/makefile.patch @@ -0,0 +1,13 @@ +Index: b/Makefile +=================================================================== +--- a/Makefile ++++ b/Makefile +@@ -71,7 +71,7 @@ findlib.conf: findlib.conf.in + + .PHONY: install-doc + install-doc: +- mkdir -p "$(prefix)$(OCAMLFIND_MAN)/man1" "$(prefix)$(OCAMLFIND_MAN)/man3 $(prefix)$(OCAMLFIND_MAN)/man5" ++ mkdir -p "$(prefix)$(OCAMLFIND_MAN)/man1" "$(prefix)$(OCAMLFIND_MAN)/man3" "$(prefix)$(OCAMLFIND_MAN)/man5" + -cp doc/ref-man/ocamlfind.1 "$(prefix)$(OCAMLFIND_MAN)/man1" + -cp doc/ref-man/META.5 doc/ref-man/site-lib.5 doc/ref-man/findlib.conf.5 "$(prefix)$(OCAMLFIND_MAN)/man5" + -- cgit v0.12