[arch-commits] Commit in mlton/repos/community-i686 (PKGBUILD PKGBUILD)

Alexander Rødseth arodseth at archlinux.org
Mon Aug 7 13:51:14 UTC 2017


    Date: Monday, August 7, 2017 @ 13:51:13
  Author: arodseth
Revision: 249444

archrelease: copy trunk to community-i686

Added:
  mlton/repos/community-i686/PKGBUILD
    (from rev 249443, mlton/trunk/PKGBUILD)
Deleted:
  mlton/repos/community-i686/PKGBUILD

----------+
 PKGBUILD |   91 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 50 insertions(+), 41 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2017-08-07 13:50:16 UTC (rev 249443)
+++ PKGBUILD	2017-08-07 13:51:13 UTC (rev 249444)
@@ -1,41 +0,0 @@
-# $Id$
-# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
-# Contributor: tochiro at no.spam.mail.berlios.de
-# Contributor: Andreas W. Hauser <andy-aur at splashground.de>
-# Contributor: Brian De Wolf <arch at bldewolf.com>
-
-pkgname=mlton
-pkgver=20170725
-pkgrel=1
-pkgdesc='Whole-program, optimizing Standard ML compiler'
-arch=('x86_64' 'i686')
-url='http://mlton.org/'
-license=('BSD' 'MIT' 'LGPL')
-depends=('gmp')
-makedepends=('git' 'setconf' 'mlton')
-options=('staticlibs')
-source=("git+https://github.com/MLton/mlton#commit=159190284e1268fded189104705939fe3b691b12")
-md5sums=('SKIP')
-
-prepare() {
-  sed 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' -i mlton/runtime/cenv.h
-  find mlton -name Makefile -type f -exec setconf {} CFLAGS "$CFLAGS -fPIC" \;
-}
-
-build() {
-  # Latest master does not build on x86_64. Older releases does not build on x86_64. WIP
-
-  export CFLAGS="$CFLAGS -fPIC"
-  make -C mlton COMPILE_ARGS="-codegen c -cc-opt '-fPIC'" -j1 all-no-docs
-  #make -C mlton COMPILE_ARGS="-codegen c" all-no-docs
-}
-
-package() {
-  make -C mlton DESTDIR="$pkgdir" -j1 install-no-docs
-
-  # Copy over the handful of licenses and the README as explanation
-  install -d "$pkgdir/usr/share/licenses/$pkgname"
-  cp "mlton/doc/license/"* "$pkgdir/usr/share/licenses/$pkgname/"
-}
-
-# vim: ts=2 sw=2 et:

Copied: mlton/repos/community-i686/PKGBUILD (from rev 249443, mlton/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2017-08-07 13:51:13 UTC (rev 249444)
@@ -0,0 +1,50 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: mkoloberdin <my at aprisobal.by>
+# Contributor: tochiro at no.spam.mail.berlios.de
+# Contributor: Andreas W. Hauser <andy-aur at splashground.de>
+# Contributor: Brian De Wolf <arch at bldewolf.com>
+
+pkgname=mlton
+pkgver=20170725
+pkgrel=2
+pkgdesc='Whole-program, optimizing Standard ML compiler'
+arch=('x86_64' 'i686')
+url='http://mlton.org/'
+license=('BSD' 'MIT' 'LGPL')
+depends=('gmp')
+makedepends=('git' 'mlton')
+makedepends_x86_64=('smlnj' 'setconf')
+options=('staticlibs')
+source=("git+https://github.com/MLton/mlton#commit=159190284e1268fded189104705939fe3b691b12")
+md5sums=('SKIP')
+
+prepare() {
+  cd "$pkgname"
+
+  sed 's/_BSD_SOURCE/_DEFAULT_SOURCE/g' -i runtime/cenv.h
+  if [ $CARCH = 'x86_64' ]; then
+    find . -name Makefile -type f -exec setconf {} CFLAGS "$CFLAGS -fPIC" \;
+  fi
+}
+
+build() {
+  export CFLAGS="$CFLAGS -fPIC"
+  export COMPILE_ARGS="-codegen c -cc-opt '-fPIC'" 
+
+  if [ "$CARCH" = 'x86_64' ]; then
+    # Bootstrap with SML-NJ on x86_64
+    make -C "$pkgname" -j1 smlnj-mlton all-no-docs
+  else
+    make -C "$pkgname" -j1 all-no-docs
+  fi
+}
+
+package() {
+  make -C "$pkgname" DESTDIR="$pkgdir" install-no-docs
+  for f in "$pkgname"/doc/license/*-LICENSE; do
+    install -Dm644 "$f" "$pkgdir/usr/share/licenses/$pkgname/$f"
+  done
+}
+
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list