Date: Friday, August 16, 2019 @ 05:36:09 Author: juergen Revision: 359863
archrelease: copy trunk to extra-x86_64 Added: ocaml/repos/extra-x86_64/PKGBUILD (from rev 359862, ocaml/trunk/PKGBUILD) ocaml/repos/extra-x86_64/ocaml-4.08.0.patch (from rev 359862, ocaml/trunk/ocaml-4.08.0.patch) Deleted: ocaml/repos/extra-x86_64/PKGBUILD --------------------+ PKGBUILD | 131 ++++++++++++++++++++++++++------------------------- ocaml-4.08.0.patch | 13 +++++ 2 files changed, 81 insertions(+), 63 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2019-08-16 05:35:38 UTC (rev 359862) +++ PKGBUILD 2019-08-16 05:36:09 UTC (rev 359863) @@ -1,63 +0,0 @@ -# Maintainer: Tobias Powalowski <tp...@archlinux.org> - -pkgbase='ocaml' -pkgname=('ocaml' 'ocaml-compiler-libs') -pkgver=4.07.1 -pkgrel=1 -pkgdesc="A functional language with OO extensions" -arch=('x86_64') -license=('LGPL2.1' 'custom: QPL-1.0') -url="http://caml.inria.fr/" -depends=('gdbm') -makedepends=('tk>=8.6.0' 'ncurses>=5.6-7' 'libx11') -optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features') -source=(http://caml.inria.fr/distrib/ocaml-${pkgver%.*}/${pkgname}-${pkgver}.tar.xz) -sha1sums=('4f6457627a034e3b58c88a5ee6cc69aebd306746') -options=('!makeflags' '!emptydirs' 'staticlibs') - -build() { - cd "${srcdir}/${pkgname}-${pkgver}" - ./configure -prefix /usr -x11include /usr/include - make world.opt -} - -package_ocaml() { - cd "${srcdir}/${pkgbase}-${pkgver}" - make PREFIX="${pkgdir}/usr" MANDIR="${pkgdir}/usr/share/man" install - - # Save >10MB with this one, makepkg only strips debug symbols. - #find "${pkgdir}/usr/lib" -type f -name '*.so.*' -exec strip --strip-unneeded {} \; - - # install license - install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" - install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" - - # remove compiler libs - rm -rf "${pkgdir}/usr/lib/ocaml/compiler-libs" -} - -package_ocaml-compiler-libs() { -pkgdesc="Several modules used internally by the OCaml compiler" -license=('custom: QPL-1.0') -depends=('ocaml') -optdepends=() - - cd "${srcdir}/${pkgbase}-${pkgver}" - # from Makefile - BYTESTART=driver/main.cmo - TOPLEVELSTART=toplevel/topstart.cmo - mkdir -p "${pkgdir}/usr/lib/ocaml/compiler-libs" - cp utils/*.cmi utils/*.cmt utils/*.cmti utils/*.mli \ - parsing/*.cmi parsing/*.cmt parsing/*.cmti parsing/*.mli \ - typing/*.cmi typing/*.cmt typing/*.cmti typing/*.mli \ - bytecomp/*.cmi bytecomp/*.cmt bytecomp/*.cmti bytecomp/*.mli \ - driver/*.cmi driver/*.cmt driver/*.cmti driver/*.mli \ - toplevel/*.cmi toplevel/*.cmt toplevel/*.cmti toplevel/*.mli \ - "${pkgdir}/usr/lib/ocaml/compiler-libs" - cp compilerlibs/* ${BYTESTART} ${TOPLEVELSTART} \ - "${pkgdir}/usr/lib/ocaml/compiler-libs" - - # install license - install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" - install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" -} Copied: ocaml/repos/extra-x86_64/PKGBUILD (from rev 359862, ocaml/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2019-08-16 05:36:09 UTC (rev 359863) @@ -0,0 +1,68 @@ +# Maintainer: Jürgen Hötzel <juer...@archlinux.org> + +pkgbase='ocaml' +pkgname=('ocaml' 'ocaml-compiler-libs') +pkgver=4.08.0 +pkgrel=2 +pkgdesc="A functional language with OO extensions" +arch=('x86_64') +license=('LGPL2.1' 'custom: QPL-1.0') +url="https://caml.inria.fr/" +makedepends=('ncurses>=5.6-7') +optdepends=('ncurses: advanced ncurses features' 'tk: advanced tk features') +source=(https://caml.inria.fr/distrib/ocaml-${pkgver%.*}/${pkgname}-${pkgver}.tar.xz ocaml-${pkgver}.patch) +sha1sums=('7af535a715f13f666134a57c492984febd9327ba' + 'edac6453b1aef6e97367af447f08dd3e8a3e2909') +options=('!makeflags' '!emptydirs' 'staticlibs') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + patch -i "${srcdir}/ocaml-${pkgver}.patch" +} + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix /usr --mandir /usr/share/man + make --debug=v world.opt +} + +package_ocaml() { + cd "${srcdir}/${pkgbase}-${pkgver}" + make DESTDIR="${pkgdir}" install + + # Save >10MB with this one, makepkg only strips debug symbols. + #find "${pkgdir}/usr/lib" -type f -name '*.so.*' -exec strip --strip-unneeded {} \; + + # install license + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" + + # remove compiler libs + rm -rf "${pkgdir}/usr/lib/ocaml/compiler-libs" +} + +package_ocaml-compiler-libs() { +pkgdesc="Several modules used internally by the OCaml compiler" +license=('custom: QPL-1.0') +depends=('ocaml') +optdepends=() + + cd "${srcdir}/${pkgbase}-${pkgver}" + # from Makefile + BYTESTART=driver/main.cmo + TOPLEVELSTART=toplevel/topstart.cmo + mkdir -p "${pkgdir}/usr/lib/ocaml/compiler-libs" + cp utils/*.cmi utils/*.cmt utils/*.cmti utils/*.mli \ + parsing/*.cmi parsing/*.cmt parsing/*.cmti parsing/*.mli \ + typing/*.cmi typing/*.cmt typing/*.cmti typing/*.mli \ + bytecomp/*.cmi bytecomp/*.cmt bytecomp/*.cmti bytecomp/*.mli \ + driver/*.cmi driver/*.cmt driver/*.cmti driver/*.mli \ + toplevel/*.cmi toplevel/*.cmt toplevel/*.cmti toplevel/*.mli \ + "${pkgdir}/usr/lib/ocaml/compiler-libs" + cp compilerlibs/* ${BYTESTART} ${TOPLEVELSTART} \ + "${pkgdir}/usr/lib/ocaml/compiler-libs" + + # install license + install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}" + install -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/" +} Copied: ocaml/repos/extra-x86_64/ocaml-4.08.0.patch (from rev 359862, ocaml/trunk/ocaml-4.08.0.patch) =================================================================== --- ocaml-4.08.0.patch (rev 0) +++ ocaml-4.08.0.patch 2019-08-16 05:36:09 UTC (rev 359863) @@ -0,0 +1,13 @@ +diff --git a/Makefile b/Makefile +index 2a9413a97..a0f7ac4b7 100644 +--- a/Makefile ++++ b/Makefile +@@ -1285,7 +1285,5 @@ SOURCE_FILES=$(shell git ls-files '*.ml' '*.mli' | grep -v boot/menhir/parser) + + AST_FILES=$(addsuffix .ast,$(SOURCE_FILES)) + +-build-all-asts: $(AST_FILES) +- + CAMLC_DPARSETREE := \ + $(CAMLRUN) ./ocamlc -nostdlib -nopervasives \ + -stop-after parsing -dparsetree \ No newline at end of file